示例#1
0
 public function __construct($filePath, $filters = array())
 {
     // default
     parent::__construct($filters);
     $this->initialised = false;
     $this->srcFile = $filePath;
 }
示例#2
0
 /**
  * @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;
             }
         }
     }
 }