示例#1
0
 /**
  * @param string name
  * @param array $source
  * @param array $options
  */
 public function __construct($name, array $source, array $options = array())
 {
     parent::__construct($name, $source, $options);
     $resolver = new OptionsResolver();
     $this->setDefaultOptions($resolver);
     $this->options = $resolver->resolve($options);
     $this->imageData = null;
     $this->imagesStorage = null;
 }
 /**
  * Podaj tablicę adresów URL do zasobów
  * 
  * @return array
  */
 public function getUrl()
 {
     if (!$this->isCombine || empty($this->combine)) {
         return parent::getUrl();
     }
     // generuj listę tylko jeden raz
     if ($this->urls === null) {
         $this->combine->combine();
         $this->urls = array($this->urlManager->url($this->combine->getPath(true), false));
     }
     return $this->urls;
 }