Exemplo n.º 1
0
 public function applyFilterChain(Item $file, $fileSavePath)
 {
     $loadFrom = $file->getServerSource();
     foreach (StorageFilterChain::find()->where(['filter_id' => $this->id])->joinWith('effect')->all() as $chain) {
         $response = $chain->applyFilter($loadFrom, $fileSavePath);
         $loadFrom = $fileSavePath;
     }
     return true;
 }
Exemplo n.º 2
0
 public function createItem(array $itemArray)
 {
     return Item::create($itemArray);
 }