예제 #1
0
 public function push($data)
 {
     if (is_array($data) && (!isset($data['name']) || !isset($data['route'])) || !is_array($data) && !$data instanceof Zend_Controller_Router_Route) {
         throw new Centurion_Exception('Parameter must be a instance of Zend_Controller_Router_Route');
     }
     parent::push($data);
 }
예제 #2
0
파일: Queue.php 프로젝트: rom1git/Centurion
 public function push($trait)
 {
     if (!$trait instanceof Centurion_Traits_Abstract) {
         throw new Centurion_Traits_Exception('Centurion_Trait_Queue can only handle trait object');
     }
     parent::push($trait);
     try {
         $trait->init();
     } catch (Centurion_Traits_Exception $e) {
         parent::offsetUnset(parent::count() - 1);
         throw $e;
     }
 }