本文整理汇总了PHP中categories::update_index方法的典型用法代码示例。如果您正苦于以下问题:PHP categories::update_index方法的具体用法?PHP categories::update_index怎么用?PHP categories::update_index使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类categories
的用法示例。
在下文中一共展示了categories::update_index方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: save
function save()
{
global $dbh;
$no = new noeuds($this->num_noeud);
$num_thesaurus = $no->num_thesaurus;
$q = "update categories set ";
$q .= "num_thesaurus = '" . $num_thesaurus . "', ";
$q .= "libelle_categorie = '" . addslashes($this->libelle_categorie) . "', ";
$q .= "note_application = '" . addslashes($this->note_application) . "', ";
$q .= "comment_public = '" . addslashes($this->comment_public) . "', ";
$q .= "comment_voir = '" . addslashes($this->comment_voir) . "', ";
$q .= "index_categorie = ' " . addslashes(strip_empty_words($this->libelle_categorie, $this->langue)) . " ' ";
$q .= "where num_noeud = '" . $this->num_noeud . "' and langue = '" . $this->langue . "' ";
$r = pmb_mysql_query($q, $dbh);
categories::update_index($this->num_noeud);
}
示例2: save
function save()
{
global $dbh;
global $msg;
$no = new noeuds($this->num_noeud);
$num_thesaurus = $no->num_thesaurus;
//On teste si la categorie existe à ce niveau
//$categ_exist = $this->searchLibelle($this->libelle_categorie,$num_thesaurus,$this->langue,$no->num_parent);
//if ($categ_exist != 0) {
//require_once("$include_path/user_error.inc.php");
//warning($msg['create_category'],$msg['create_category_double']);
//on supprime les relations dans la base
//$this->delete($this->num_noeud,$this->langue);
//$no->delete($this->num_noeud);
//return FALSE;
//} else {
$q = "update categories set ";
$q .= "num_thesaurus = '" . $num_thesaurus . "', ";
$q .= "libelle_categorie = '" . addslashes($this->libelle_categorie) . "', ";
$q .= "note_application = '" . addslashes($this->note_application) . "', ";
$q .= "comment_public = '" . addslashes($this->comment_public) . "', ";
$q .= "comment_voir = '" . addslashes($this->comment_voir) . "', ";
$q .= "index_categorie = ' " . addslashes(strip_empty_words($this->libelle_categorie, $this->langue)) . " ' ";
$q .= "where num_noeud = '" . $this->num_noeud . "' and langue = '" . $this->langue . "' ";
$r = pmb_mysql_query($q, $dbh);
categories::update_index($this->num_noeud);
$this->update_index_path_word();
// Mise à jour des vedettes composées contenant cette autorité
vedette_composee::update_vedettes_built_with_element($this->num_noeud, "category");
//}
}