protected function listeners()
 {
     Event::listen($this, Event::AFTER_CREATE_FORM, array($this, 'handle_branch_after_create_form'));
     Event::listen($this, Event::AFTER_UPDATE_FORM, array($this, 'handle_branch_after_update_form'));
     Event::listen($this, Event::BEFORE_CREATE_FORM_PARSE, array($this, 'handle_branch_before_create_form_parse'));
     parent::listeners();
 }
 protected function listeners()
 {
     parent::listeners();
     Event::listen($this, Event::BEFORE_UPDATE_FORM_PARSE, array($this, 'handle_widget_before_form_parse'));
     Event::listen($this, Event::BEFORE_CREATE, array($this, 'handle_widget_before_update'));
     Event::listen($this, Event::BEFORE_UPDATE, array($this, 'handle_widget_before_update'));
 }
 protected function listeners()
 {
     parent::listeners();
     Event::listen($this, Event::BEFORE_LIST, array($this, 'handle_user_before_list'), TRUE);
     Event::listen($this, Event::AFTER_CREATE_FORM, array($this, 'handle_user_after_create_form'));
     Event::listen($this, Event::BEFORE_UPDATE_FORM_PARSE, array($this, 'handle_user_before_update_form_parse'));
     Event::listen($this, Event::BEFORE_CREATE, array($this, 'handle_user_before_create'));
     Event::listen($this, Event::BEFORE_UPDATE, array($this, 'handle_user_before_update'));
 }
 /**
  * Check if list action should be fowarded to create action
  */
 public function action_list()
 {
     // get type
     $type = $this->argument('type', '__none__');
     // check if this type is listable
     if ($type !== '__none__' && !in_array($type, $this->_settings->get('list.list'))) {
         // if not listable: go to create with this type as viewport item
         $this->redirect(URL::to($this->_controller . '@create:' . $type, array('viewport' => 'item')));
         exit;
     } else {
         // go ahead
         parent::action_list();
     }
 }
 protected function listeners()
 {
     Event::listen($this, Event::AFTER_CREATE_FORM, array($this, 'handle_form_after_form'));
     Event::listen($this, Event::AFTER_UPDATE_FORM, array($this, 'handle_form_after_form'));
     parent::listeners();
 }
 /**
  * Controller_Default_File::listeners()
  * set listeners
  * 
  * @return void
  */
 protected function listeners()
 {
     parent::listeners();
     Event::listen($this, Event::AFTER_DELETE, array($this, 'handle_file_after_delete'));
 }