本文整理匯總了PHP中Menu::Menu方法的典型用法代碼示例。如果您正苦於以下問題:PHP Menu::Menu方法的具體用法?PHP Menu::Menu怎麽用?PHP Menu::Menu使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Menu
的用法示例。
在下文中一共展示了Menu::Menu方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: LinksMenuElement
function LinksMenuElement($title, $url, $image = '')
{
parent::Menu($title);
$this->set_url($url);
$this->set_image($image);
$this->uid = get_uid();
}
示例2: FeedMenu
function FeedMenu($title, $module_id, $category = 0, $name = DEFAULT_FEED_NAME, $number = 10, $begin_at = 0)
{
parent::Menu($title);
$this->module_id = $module_id;
$this->category = $category;
$this->name = $name;
$this->number = $number;
$this->begin_at = $begin_at;
}
示例3: Authorizer
function Authorizer()
{
parent::Menu();
session_start();
}
示例4: ModuleMiniMenu
function ModuleMiniMenu($module, $filename)
{
parent::Menu($module);
$this->filename = strprotect($filename);
}
示例5: SMA_Menu
/**
* Standard constructor. Set $parent=null, if you want to initialize manually with
* pageId and variation.
* @param object Reference to the parent container
* @param integer pageId of a page to set as menu start node
* @param integer Id of the variation to set as default
* @param integer Id of the current level
*/
function SMA_Menu($parent, $pageId=0, $variation=0, $level=0) {
Menu::Menu($parent, $pageId, $variation, $level);
}
示例6: MiniMenu
function MiniMenu($title, $filename)
{
$this->function_name = 'menu_' . strtolower($title) . '_' . strtolower($filename);
parent::Menu($title . '/' . $filename);
}
示例7: ContentMenu
function ContentMenu($title)
{
parent::Menu($title);
}