authority_type = AUT_TABLE_INDEXINT; parent::__construct($user_query); $this->object_table = "indexint"; $this->object_table_key = "indexint_id"; } public function _get_search_type(){ return parent::_get_search_type()."_indexint"; } protected function _get_authorities_filters(){ global $thesaurus_classement_mode_pmb, $thesaurus_classement_defaut, $id_pclass; $filters = parent::_get_authorities_filters(); if ($thesaurus_classement_mode_pmb) { if ($id_pclass){ $filters[] = 'num_pclass = "'.$id_pclass.'"'; }else{ // dans tous les classements return $filters; } } else { $filters[] = 'num_pclass = "'.$thesaurus_classement_defaut.'"'; } return $filters; } protected function _get_sign_elements($sorted=false) { global $thesaurus_classement_mode_pmb, $thesaurus_classement_defaut, $id_pclass; $str_to_hash = parent::_get_sign_elements($sorted); if ($thesaurus_classement_mode_pmb) { $str_to_hash .= "&num_pclass=".$id_pclass; } else { $str_to_hash .= "&num_pclass=".$thesaurus_classement_defaut; } return $str_to_hash; } public function get_authority_tri() { return 'indexint_name'; } protected function _get_human_queries() { global $msg; global $thesaurus_classement_mode_pmb, $thesaurus_classement_defaut, $id_pclass;; $human_queries = parent::_get_human_queries(); if ($thesaurus_classement_mode_pmb) { if ($id_pclass){ $human_queries[] = array( 'name' => $msg['search_extended_indexint_pclassement'], 'value' => pmb_mysql_result(pmb_mysql_query('select name_pclass from pclassement where id_pclass = '.$id_pclass), 0, 0) ); }else{ // dans tous les classements return $human_queries; } } else { $human_queries[] = array( 'name' => $msg['search_extended_indexint_pclassement'], 'value' => pmb_mysql_result(pmb_mysql_query('select name_pclass from pclassement where id_pclass = '.$thesaurus_classement_defaut), 0, 0) ); } return $human_queries; } }