filters['empr_location_id'] = 0; } } protected function init_default_selected_filters() { global $pmb_lecteurs_localises; $this->add_selected_filter('simple_search'); if($pmb_lecteurs_localises) { $this->add_selected_filter('location'); } } protected function get_display_cell($object, $property) { $attributes = array( 'onclick' => "document.location=\"".static::get_controller_url_base()."&id_empr=".$object->id."&suite=acces\";" ); $content = $this->get_cell_content($object, $property); $display = $this->get_display_format_cell($content, $property, $attributes); return $display; } protected function init_default_columns() { $this->add_column('cb'); $this->add_column('empr_name'); $this->add_column('categ_libelle'); } protected function init_default_settings() { parent::init_default_settings(); $this->set_setting_display('search_form', 'export_icons', false); $this->set_setting_column('default', 'align', 'left'); } protected function _get_query_order() { $this->applied_sort_type = 'SQL'; return " group by id_empr ".parent::_get_query_order(); } public function get_error_message_empty_list() { global $msg; return $msg['dsi_lect_aucun_trouve']; } protected function get_selection_actions() { if(!isset($this->selection_actions)) { $this->selection_actions = array(); } return $this->selection_actions; } }