本文整理汇总了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);
}
}