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; }
public function createItem(array $itemArray) { return Item::create($itemArray); }