Exemple #1
0
 public function __construct($filePath, $filters = array())
 {
     // default
     parent::__construct($filters);
     $this->initialised = false;
     $this->srcFile = $filePath;
 }
 /**
  * @param $assets
  * @param array $filters
  */
 public function __construct($assets, $filters = array())
 {
     // default
     parent::__construct($filters);
     // Default to an empty list
     $this->assets = array();
     // Find all the assets in the array passed in, and keep them
     if (is_array($assets)) {
         foreach ($assets as $asset) {
             if ($asset instanceof AssetInterface) {
                 $this->assets[] = $asset;
             }
         }
     }
 }