set_setting_display('search_form', 'visible', false);
$this->set_setting_display('search_form', 'export_icons', false);
$this->set_setting_display('query', 'human', false);
$this->set_setting_column('default', 'align', 'left');
}
protected function init_no_sortable_columns() {
$this->no_sortable_columns = array(
'expl_cb', 'record_header', 'sur_loc_libelle', 'location_libelle', 'section_libelle',
'expl_cote', 'statut_libelle', 'main_item', 'pointed'
);
$this->no_sortable_columns[] = 'raz';
$this->no_sortable_columns[] = 'del_expl';
}
protected function init_available_columns() {
parent::init_available_columns();
$this->available_columns['main_fields']['main_item'] = 'groupexpl_form_resp_expl';
$this->available_columns['main_fields']['pointed'] = 'groupexpl_see_form_checked_title';
$this->available_columns['main_fields']['raz'] = 'groupexpl_form_raz_button';
$this->available_columns['main_fields']['del_expl'] = '';
}
public function get_display_search_form() {
//Ne pas retourner le formulaire car déjà inclu dans un autre
return '';
}
protected function pager() {
return '';
}
protected function get_cell_content($object, $property) {
$content = '';
switch ($property) {
case 'main_item':
$content .= "groupexpl_expl_num == $object->groupexpl_resp_expl_num ? "checked='checked'" : "")." name='resp_expl_num'>";
break;
case 'pointed':
if($object->groupexpl_checked) {
$content .= "x";
}
break;
case 'raz':
$content .= "id_groupexpl."&form_cb_expl=".rawurlencode($object->expl_cb)."'; \" />";
break;
case 'del_expl':
$content .= "id_groupexpl."&form_cb_expl=".rawurlencode($object->expl_cb)."'; \" />";
break;
default :
$content .= parent::get_cell_content($object, $property);
break;
}
return $content;
}
public static function get_controller_url_base() {
global $base_path;
global $categ;
return $base_path.'/circ.php?categ='.$categ;
}
}