public static function add(AbstractAsset $asset, $depends = '') { if ($depends) { $asset->addParent(self::find($depends)); } return self::$items[] = $asset; }
/** * Constructor. * * @param string $url * @param string $path * @param array $options */ public function __construct($url, $path, $options = array()) { parent::__construct($options); $this->type = 'File'; $this->url = $url; $this->path = $path; }
/** * Constructor. * * @param string $string * @param array $options */ public function __construct($string, $options = array()) { parent::__construct($options); $this->type = 'String'; $this->string = $string; }
function __construct($path, array $options = array()) { parent::__construct($path, $options); $options = array_merge($this->defaults, $options); $this->media = $options['media']; }
function __construct($path, array $options = array()) { parent::__construct($path, $options); }
/** * {@inheritdoc} */ public function get_defaults() { return parent::get_defaults() + array('media' => 'all'); }
public function init() { $this->sourcePath = '@liuxy/themes/frontend/' . \Yii::$app->getView()->theme->template; parent::init(); // TODO: Change the autogenerated stub }
/** * {@inheritdoc} */ public function unserialize($serialized) { list($this->filters, $parentSerialized) = unserialize($serialized); parent::unserialize($parentSerialized); }
/** * {@inheritdoc} */ public function get_defaults() { return parent::get_defaults() + array('localize' => false, 'footer' => false); }
/** * {@inheritdoc} */ public function unserialize($serialized) { list($this->cdn, $this->moduleName, $this->dependencies, $this->exports, $this->init, $this->jqueryPlugins, $parentSerialized) = unserialize($serialized); parent::unserialize($parentSerialized); }