. * * @filesource categorie.php * @package controllers * Controleur de gestion des catégories de dépences et recettes. */ include ('./application/libraries/Gvv_Controller.php'); class Categorie extends Gvv_Controller { protected $controller = 'categorie'; protected $model = 'categorie_model'; protected $modification_level = 'tresorier'; protected $rules = array (); /** * Génération des éléments à passer au formulaire en cas de création, * modification ou réaffichage après erreur. */ function form_static_element($action) { parent::form_static_element($action); $this->gvvmetadata->set_selector('parent_selector', $this->gvv_model->selector_with_null()); } /** * Test unitaire */ function test($format = "html") { // parent::test($format); $this->unit_test = TRUE; $this->load->library('unit_test'); $this->unit->run(true, true, "Tests $this->controller"); $this->tests_results($format); } }