Beispiel #1
0
 /**
  * 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;
 }
 /**
  * {@inheritdoc}
  */
 public function __construct($name, $assetPath)
 {
     parent::__construct($name, $assetPath);
     if ($this->moduleName === null) {
         $this->moduleName = preg_replace('/_js$/', '', $name);
     }
 }
Beispiel #3
0
 /**
  * Constructor.
  *
  * @param string $string
  * @param array  $options
  */
 public function __construct($string, $options = array())
 {
     parent::__construct($options);
     $this->type = 'String';
     $this->string = $string;
 }
Beispiel #4
0
 function __construct($path, array $options = array())
 {
     parent::__construct($path, $options);
     $options = array_merge($this->defaults, $options);
     $this->media = $options['media'];
 }
Beispiel #5
0
 function __construct($path, array $options = array())
 {
     parent::__construct($path, $options);
 }
 /**
  * {@inheritdoc}
  */
 public function __construct($name, $assetPath, $filters = [])
 {
     parent::__construct($name, $assetPath);
     $this->filters = $filters;
 }