Esempio n. 1
0
 public function beforeProcess()
 {
     parent::beforeProcess();
     if (!$this->isProxyExist()) {
         throw new LogicException('Before proxy should be defined earlier than after Action is performed.');
     }
     if ($this->getProductId() <= 0) {
         throw new LogicException('Product ID should be defined for "after save" event.');
     }
     $this->reloadProduct();
 }
Esempio n. 2
0
 public function afterProcess()
 {
     parent::afterProcess();
     $this->storeProxy();
 }