本文整理匯總了PHP中kekezu::get_tag方法的典型用法代碼示例。如果您正苦於以下問題:PHP kekezu::get_tag方法的具體用法?PHP kekezu::get_tag怎麽用?PHP kekezu::get_tag使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類kekezu
的用法示例。
在下文中一共展示了kekezu::get_tag方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: defined
<?php
defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(29);
$tag_list = kekezu::get_tag();
$tag_obj = new Keke_witkey_tag_class();
$t = max($t, 0);
$slt_page_size and $slt_page_size = intval($slt_page_size) or $slt_page_size = 10;
$page and $page = intval($page) or $page = 1;
$url = "index.php?do={$do}&view={$view}&slt_page_size={$slt_page_size}&page={$page}&ord={$ord}&tag_type={$tag_type}&tpl_type={$tpl_type}&type={$type}&txt_title={$txt_title}";
if ($op == 'del') {
$delid = $delid ? $delid : kekezu::admin_show_msg($_lang['wrong_parameters'], $url, 3, '', 'warning');
$tag_obj->setWhere("tag_id='{$delid}'");
$tag_obj->del_keke_witkey_tag();
$kekezu->_cache_obj->del('tag_list_cache');
kekezu::admin_system_log($_lang['delete_tag'] . "{$delid}");
kekezu::admin_show_msg($_lang['operate_success'], $url, 3, '', 'success');
} elseif (isset($sbt_action)) {
if (is_array($ckb)) {
$ids = implode(',', array_filter($ckb));
}
if (count($ids)) {
$tag_obj->setWhere(' tag_id in (' . $ids . ') ');
$tag_obj->del_keke_witkey_tag();
$kekezu->_cache_obj->del('tag_list_cache');
kekezu::admin_system_log($_lang['delete_tag'] . "{$ids}");
kekezu::admin_show_msg($_lang['mulit_operate_success'], $url, 3, '', 'success');
} else {
kekezu::admin_show_msg($_lang['choose_operate_item'], $url, 3, '', 'warning');
}
} else {
示例2: define
<?php
$tpl_mode = 1;
define('ADMIN_KEKE', TRUE);
require '../app_comm.php';
define('ADMIN_ROOT', S_ROOT . '/' . ADMIN_DIRECTORY . '/');
$_K['admin_tpl_path'] = S_ROOT . '/' . ADMIN_DIRECTORY . '/tpl/';
if ($do == 'previewtag') {
$tagid = intval($tagid);
if (!$tagid) {
die;
}
$taglist = kekezu::get_tag(1);
$tag_info = $taglist[$tagid];
if ($tag_info['tag_type'] == 9) {
keke_loaddata_class::preview_addgroup($tag_info['tagname'], $tag_info['loadcount']);
} else {
keke_loaddata_class::previewtag($tag_info);
}
}