當前位置: 首頁>>代碼示例>>PHP>>正文


PHP categories::process_categ_index方法代碼示例

本文整理匯總了PHP中categories::process_categ_index方法的典型用法代碼示例。如果您正苦於以下問題:PHP categories::process_categ_index方法的具體用法?PHP categories::process_categ_index怎麽用?PHP categories::process_categ_index使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在categories的用法示例。


在下文中一共展示了categories::process_categ_index方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: cleanCategoriesPath

 function cleanCategoriesPath()
 {
     global $msg, $charset, $PMBusername;
     if (SESSrights & ADMINISTRATION_AUTH) {
         // Pour tous les thésaurus, on parcours les childs
         $list_thesaurus = thesaurus::getThesaurusList();
         foreach ($list_thesaurus as $id_thesaurus => $libelle_thesaurus) {
             $thes = new thesaurus($id_thesaurus);
             $noeud_rac = $thes->num_noeud_racine;
             $r = noeuds::listChilds($noeud_rac, 0);
             while ($row = mysql_fetch_object($r)) {
                 noeuds::process_categ_path($row->id_noeud);
             }
         }
         if ($thesaurus_auto_postage_search) {
             categories::process_categ_index();
         }
         $result .= htmlentities($msg["clean_categories_path_end"], ENT_QUOTES, $charset);
     } else {
         $result .= sprintf($msg["planificateur_rights_bad_user_rights"], $PMBusername);
     }
     return $result;
 }
開發者ID:bouchra012,項目名稱:PMB,代碼行數:23,代碼來源:pmbesClean.class.php

示例2: foreach

//	}
//	$req="update noeuds set path='$path' where id_noeud=$id_noeud";
//	pmb_mysql_query($req,$dbh);
//}
//function process_categ_index() {
//	global $dbh;
//
//	$q = "select * from categories ";
//	$r = pmb_mysql_query($q, $dbh);
//	while ($obj = pmb_mysql_fetch_object($r)) {
//		$thes = new categories($obj->num_noeud,$obj->langue);
//		$thes->update_index_path_word();
//	}
//}
// Pour tous les thésaurus, on parcours les childs
$list_thesaurus = thesaurus::getThesaurusList();
foreach ($list_thesaurus as $id_thesaurus => $libelle_thesaurus) {
    $thes = new thesaurus($id_thesaurus);
    $noeud_rac = $thes->num_noeud_racine;
    $r = noeuds::listChilds($noeud_rac, 0);
    while ($row = pmb_mysql_fetch_object($r)) {
        noeuds::process_categ_path($row->id_noeud);
    }
}
if ($thesaurus_auto_postage_search) {
    categories::process_categ_index();
}
$spec = $spec - CLEAN_CATEGORIES_PATH;
$v_state = urldecode($v_state);
$v_state .= "<br /><img src=../../images/d.gif hspace=3>" . htmlentities($msg["clean_categories_path_end"], ENT_QUOTES, $charset) . ".";
print "<form class='form-{$current_module}' name='process_state' action='./clean.php' method='post'>\n\t\t\t<input type='hidden' name='v_state' value=\"" . urlencode($v_state) . "\">\n\t\t\t<input type='hidden' name='spec' value=\"{$spec}\">\n\t\t</form>\n\t\t<script type=\"text/javascript\"><!--\n\t\t\tdocument.forms['process_state'].submit();\n\t\t\t-->\n\t\t</script>";
開發者ID:noble82,項目名稱:proyectos-ULS,代碼行數:31,代碼來源:clean_categories_path.inc.php


注:本文中的categories::process_categ_index方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。