function update_global_index($id) { global $dbh; global $include_path; $p_perso = new custom_parametres_perso("authperso", "authperso", $this->id); $mots_perso = $p_perso->get_fields_recherche($id); if ($mots_perso) { $infos_global .= $mots_perso . ' '; $infos_global_index .= strip_empty_words($mots_perso) . ' '; } $req = "update authperso_authorities set authperso_infos_global='" . addslashes($infos_global) . "', authperso_index_infos_global='" . addslashes(' ' . $infos_global_index) . "' where id_authperso_authority={$id}"; pmb_mysql_query($req, $dbh); $indexation_authority = new indexation_authperso($include_path . "/indexation/authorities/authperso/champs_base.xml", "authorities", AUT_TABLE_AUTHPERSO, $this->id); $indexation_authority->maj($id); }
function update_global_index($id) { global $dbh; $p_perso = new custom_parametres_perso("authperso", "authperso", $this->id); $mots_perso = $p_perso->get_fields_recherche($id); if ($mots_perso) { $infos_global .= $mots_perso . ' '; $infos_global_index .= strip_empty_words($mots_perso) . ' '; } $req = "update authperso_authorities set authperso_infos_global='" . addslashes($infos_global) . "', authperso_index_infos_global='" . addslashes(' ' . $infos_global_index) . "' where id_authperso_authority={$id}"; pmb_mysql_query($req, $dbh); }