Exemple #1
0
 public function __construct(\k1lib\crudlexs\controller_base $controller_object, array $user_levels_allowed = [])
 {
     parent::__construct($controller_object, $user_levels_allowed);
     if ($this->is_enabled) {
         $this->search_object = new \k1lib\crudlexs\search_helper($this->controller_object->db_table);
         $this->data_loaded = $this->search_object->load_db_table_data(TRUE);
     }
 }
Exemple #2
0
 public function __construct(\k1lib\crudlexs\controller_base $controller_object, array $user_levels_allowed = [])
 {
     parent::__construct($controller_object, $user_levels_allowed);
     if ($this->is_enabled) {
         $this->show_rule_to_apply = "show-create";
         $this->create_object = new \k1lib\crudlexs\creating($this->controller_object->db_table, FALSE);
     }
 }
Exemple #3
0
 public function __construct(\k1lib\crudlexs\controller_base $controller_object, array $user_levels_allowed = [])
 {
     parent::__construct($controller_object, $user_levels_allowed);
     if ($this->is_enabled) {
         $this->show_rule_to_apply = "show-list";
         $this->list_object = new \k1lib\crudlexs\listing($this->controller_object->db_table, FALSE);
         $this->list_object->set_do_table_field_name_encrypt(TRUE);
     }
 }
Exemple #4
0
 public function __construct(\k1lib\crudlexs\controller_base $controller_object, array $user_levels_allowed = [])
 {
     parent::__construct($controller_object, $user_levels_allowed);
     $this->redirect_url = isset($_GET['back-url']) ? \k1lib\urlrewrite\get_back_url() : "{$controller_object->get_controller_root_dir()}{$this->controller_object->get_board_list_url_name()}/";
     if ($this->is_enabled) {
         $this->row_keys_text = url::set_url_rewrite_var(url::get_url_level_count(), 'row-keys-text', FALSE);
         $this->read_object = new \k1lib\crudlexs\reading($this->controller_object->db_table, $this->row_keys_text);
     }
 }
Exemple #5
0
 public function __construct(\k1lib\crudlexs\controller_base $controller_object, array $user_levels_allowed = [])
 {
     parent::__construct($controller_object, $user_levels_allowed);
     if ($this->is_enabled) {
         $this->show_rule_to_apply = "show-update";
         $this->row_keys_text = url::set_url_rewrite_var(url::get_url_level_count(), 'row-keys-text', FALSE);
         $this->update_object = new \k1lib\crudlexs\updating($this->controller_object->db_table, $this->row_keys_text);
     }
 }