예제 #1
0
 public function addException($error, $level = null)
 {
     $e = new Varien_Convert_Exception($error);
     $e->setLevel(!is_null($level) ? $level : Varien_Convert_Exception::NOTICE);
     $e->setContainer($this);
     $e->setPosition($this->getPosition());
     if ($this->getProfile()) {
         $this->getProfile()->addException($e);
     }
     return $e;
 }
예제 #2
0
 public function run()
 {
     if (!$this->_actions) {
         $e = new Varien_Convert_Exception("Could not find any actions for this profile");
         $e->setLevel(Varien_Convert_Exception::FATAL);
         $this->addException($e);
         return;
     }
     foreach ($this->_actions as $action) {
         $action->run();
     }
     return $this;
 }
예제 #3
0
 public function addException($error, $level = null)
 {
     $exception = new Varien_Convert_Exception($error);
     $exception->setLevel(!is_null($level) ? $level : Varien_Convert_Exception::NOTICE);
     $exception->setContainer($this);
     $exception->setPosition($this->getPosition());
     return $exception;
 }