本文整理汇总了PHP中PMF_Category::getMissingCategories方法的典型用法代码示例。如果您正苦于以下问题:PHP PMF_Category::getMissingCategories方法的具体用法?PHP PMF_Category::getMissingCategories怎么用?PHP PMF_Category::getMissingCategories使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PMF_Category
的用法示例。
在下文中一共展示了PMF_Category::getMissingCategories方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
* @category phpMyFAQ
* @package Administration
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @author Rudi Ferrari <bookcrossers@gmx.de>
* @copyright 2006-2011 phpMyFAQ Team
* @license http://www.mozilla.org/MPL/MPL-1.1.html Mozilla Public License Version 1.1
* @link http://www.phpmyfaq.de
* @since 2006-09-10
*/
if (!defined('IS_VALID_PHPMYFAQ')) {
header('Location: http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
exit;
}
if ($permission["editcateg"]) {
$category = new PMF_Category($current_admin_user, $current_admin_groups, false);
$category->getMissingCategories();
$id = PMF_Filter::filterInput(INPUT_GET, 'cat', FILTER_VALIDATE_INT);
$header = sprintf('%s %s: <em>%s</em>', $PMF_LANG['ad_categ_trans_1'], $PMF_LANG['ad_categ_trans_2'], $category->categoryName[$id]['name']);
$selected_lang = PMF_Filter::filterInput(INPUT_POST, 'trlang', FILTER_SANITIZE_STRING, $LANGCODE);
if ($selected_lang != $LANGCODE) {
$action = "showcategory";
$showcat = "yes";
} else {
$action = "updatecategory";
$showcat = "no";
}
$user_permission = $category->getPermissions('user', array($id));
$group_permission = $category->getPermissions('group', array($id));
?>
<header>
<h2><?php