本文整理匯總了PHP中menu::get_list方法的典型用法代碼示例。如果您正苦於以下問題:PHP menu::get_list方法的具體用法?PHP menu::get_list怎麽用?PHP menu::get_list使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類menu
的用法示例。
在下文中一共展示了menu::get_list方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: get_power_arr
function get_power_arr()
{
$arr = array();
$obj = new menu();
$obj->set_where('');
$obj->set_where("left(men_type,6) = 'admin_'");
$list = $obj->get_list();
for ($i = 0; $i < count($list); $i++) {
$arr[$i]['name'] = $list[$i]['men_name'];
$arr[$i]['url'] = '/' . $list[$i]['men_url'];
$arr[$i]['set'] = 0;
}
return $arr;
}
示例2: module_footer
function module_footer()
{
global $smarty;
$obj = new menu();
$obj->set_where("men_type = 'footer'");
$smarty->assign('footer_nav', $obj->get_list());
$obj = new varia();
$site['domain'] = $obj->get_value('site_domain');
$site['record'] = $obj->get_value('site_record');
$site['record_url'] = $obj->get_value('site_record_url');
$site['tech'] = $obj->get_value('site_tech');
$site['tech_url'] = $obj->get_value('site_tech_url');
$site['statistical_code'] = im_filter($obj->get_value('statistical_code', true));
$smarty->assign('site', $site);
}
示例3: module_left
function module_left()
{
global $global, $smarty;
if ($global['channel'] == 'about' || $global['channel'] == 'recruit' || $global['channel'] == 'download') {
$type = 'article';
} else {
$type = $global['channel'];
}
$obj = new menu();
$obj->set_field('men_name,men_url');
$obj->set_where('');
$obj->set_where("men_lang = 'none'");
$obj->set_where("men_type = 'admin_" . $type . "'");
$obj->set_where("men_show = 1");
$smarty->assign('nav_left', $obj->get_list());
}
示例4: module_nav_list
function module_nav_list()
{
global $smarty;
$obj = new varia();
$obj->set_where("left(var_name,10) = 'nav_stage_'");
$arr = $obj->get_list();
for ($i = 0; $i < count($arr); $i++) {
$name = substr($arr[$i]['var_name'], 10);
$obj = new menu();
$obj->set_where("men_type = '{$name}'");
$list[$name] = $obj->get_list();
$nav[$i]['type'] = $name;
$nav[$i]['name'] = $arr[$i]['var_value'];
}
$smarty->assign('nav', $nav);
$smarty->assign('list', $list);
}
示例5: module_header
function module_header()
{
global $smarty;
$obj = new varia();
$obj->set_where("var_name = 'languages'");
$list = $obj->get_list();
for ($i = 0; $i < count($list); $i++) {
$arr = explode('{v}', $list[$i]['var_value']);
$list[$i]['pack_name'] = $arr[0];
$list[$i]['index_entrance'] = $arr[1];
$list[$i]['admin_entrance'] = $arr[2];
$list[$i]['chinese_name'] = $arr[3];
$list[$i]['foreign_name'] = $arr[4];
}
$smarty->assign('lang_pack', $list);
$obj = new menu();
$obj->set_where("men_type = 'header'");
$obj->set_field('men_name,men_url');
$smarty->assign('nav', $obj->get_list());
}