protected function listeners() { parent::listeners(); Event::listen($this, Event::BEFORE_LIST, array($this, 'handle_content_before_list')); Event::listen($this, Event::BEFORE_LIST_RENDER, array($this, 'handle_content_before_list_render')); Event::listen($this, Event::BEFORE_CREATE, array($this, 'handle_content_before_create')); }
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')); }
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')); }