Register a stylesheet for the library.

@param string $name   Library name.
@param string $source The stylesheet source.
@param string $type   Resource type.

@return $this
168500
public function registerStylesheet($name, $source, $type = Assets::TYPE_FILE)
    {
        $this->stylesheets[$name][] = array($source, $type);

        return $this;
    }
1010458
protected function addColumn($type, $name, array $parameters = array())
    {
        $attributes = array_merge(compact('type', 'name'), $parameters);

        $this->columns[] = $column = new Fluent($attributes);

        return $column;
    }
1337569
public static function durable(string $name, Type $type): self
    {
        $self = new self($name, $type);
        $self->durable = true;

        return $self;
    }
390115
public static function addIndex($table, $type, $columns, $name)
    {
        $cols = static::buildIndexDeclare($name, $columns, $table);

        return static::build(
            'CREATE',
            strtoupper($type),
            $cols
        );
    }
1213787
public static function setStyleDefinition($name, TableStyle $style)
    {
        if (!self::$styles) {
            self::$styles = self::initStyles();
        }

        self::$styles[$name] = $style;
    }
58358
public function addLocalStylesheet($name, $src, array $depends = array(), $version = false, $footer = false) {
			$n = $this->getOptionPrefix() . $name;
			$s = $this->getPluginUrlRoot() . $src;

			return $this->addStylesheet($n, $s, $depends, $version, $footer);
		}
1307099
public function register(string $name, Type $type) : void
    {
        if (isset($this->instances[$name])) {
            throw DBALException::typeExists($name);
        }

        if ($this->findTypeName($type) !== null) {
            throw DBALException::typeAlreadyRegistered($type);
        }

        $this->instances[$name] = $type;
    }
5250
public function addVariable($type, $name, CompilationContext $compilationContext)
    {
        $currentBranch = $compilationContext->branchManager->getCurrentBranch();
        $branchId = $currentBranch->getUniqueId();
        if ($this->globalsManager->isSuperGlobal($name) || 'zephir_fcall_cache_entry' == $type) {
            $branchId = 1;
        }

        $varName = $name;
        if ($branchId > 1 && Branch::TYPE_ROOT != $currentBranch->getType()) {
            $varName = $name.Variable::BRANCH_MAGIC.$branchId;
        }

        $variable = new Variable($type, $varName, $currentBranch);

        /*
         * Checks whether a variable can be optimized to be static or not
         */
        if ('variable' == $type && $this->localContext && $this->localContext->shouldBeLocal($name)) {
            $variable->setLocalOnly(true);
        }

        if (!isset($this->branchVariables[$branchId])) {
            $this->branchVariables[$branchId] = [];
        }

        $this->branchVariables[$branchId][$name] = $variable;

        return $variable;
    }
1113459
public function override(string $name, Type $type) : void
    {
        if (! isset($this->instances[$name])) {
            throw DBALException::typeNotFound($name);
        }

        if (! in_array($this->findTypeName($type), [$name, null], true)) {
            throw DBALException::typeAlreadyRegistered($type);
        }

        $this->instances[$name] = $type;
    }
152804
public function addColumn($name, $type, array $attributes = [])
    {
        if ($this->scope == 'alter') {
            $command = 'ADD COLUMN';
        } else {
            $command = null;
        }

        $this->sqls[] = $this->composeAddColumn(
            trim($name, '`'),
            compact('name', 'type', 'attributes', 'command')
        );

        return $this;
    }
713705
public static function code( $type, $name = null ) 
	{
		$buffer = "";
		
		foreach( static::holder( $name )->get( $type ) as $item )
		{
			$buffer .= call_user_func( array( '\\CCAsset', $type ), $item, $name );
		}
		
		return $buffer;
	}
169836
public function add_data_source( \Serializable $source, $name = '' ) {

		if ( $name ) {
			$this->data_sources[ $name ] = $source;
		} else {
			$this->data_sources[] = $source;
		}

		$this->regenerate();

		return $this;
	}
765912
protected function loadThemedCSS($name)
    {
        if ($this->isDevServerActive()) {
            Requirements::css($this->getDevServerURL($this->ext($name, 'css')));
        } else {
            Requirements::themedCSS($name);
        }
    }
1046991
public function register(Type $type): self
    {
        $this->types[$type->name] = $type;

        return $this;
    }
1289262
public function addParam($name, $type = null)
    {
        $this->params[(string)$name] = $type;
        return $this;
    }
576557
public function isAdded($type, $name) {
        $widget = $this->getWidgetBoxManager()->findPublishedByTypeAndName($type, $name);
        return $widget;
    }
373828
protected function write($name, $type, $source, $dependencies = array())
    {
        $types = array(
            'script' => 'script',
            'style'  => 'style',
            'js'     => 'script',
            'css'    => 'style'
        );

        if (array_key_exists($type, $types))
        {
            $type = $types[$type];

            $this->register($type, $name, $source, $dependencies, array());
        }

        return $this;
    }