本文整理汇总了PHP中Menu::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Menu::__construct方法的具体用法?PHP Menu::__construct怎么用?PHP Menu::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Menu
的用法示例。
在下文中一共展示了Menu::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function __construct($out, Profile $profile)
{
parent::__construct($out);
$this->profile = $profile;
$user = common_current_user();
$this->lists = $profile->getLists($user);
}
示例2: __construct
/**
* @desc Build a LinksMenuElement object
* @param $title
* @param $url
* @param $image
* @param int $id The Menu's id in the database
*/
public function __construct($title, $url, $image = '')
{
parent::__construct($title);
$this->set_url($url);
$this->set_image($image);
$this->uid = AppContext::get_uid();
}
示例3: __construct
public function __construct($title, $module_id, $category = 0, $name = Feed::DEFAULT_FEED_NAME, $number = 10, $begin_at = 0)
{
parent::__construct($title);
$this->module_id = $module_id;
$this->category = $category;
$this->name = $name;
$this->number = $number;
$this->begin_at = $begin_at;
}
示例4:
/**
* Construction
*
* @param Action $action current action, used for output
* @param User $user Current user or NULL if "guest"
*/
function __construct(Action $action = null, User $user = null)
{
parent::__construct($action);
$this->user = $user;
}
示例5:
/**
* Construction
*
* @param Action $action current action, used for output
*/
function __construct($action = null, $profile = null)
{
parent::__construct($action);
$this->profile = $profile;
}
示例6:
function __construct($out, $user, $searches)
{
parent::__construct($out);
$this->user = $user;
$this->searches = $searches;
}
示例7: array
function __construct($id = 0, $tableData = array(), Desk $desk)
{
parent::__construct($id, $tableData);
$this->desk = $desk;
}
示例8: __construct
/**
* constructor
*/
public function __construct($p_aRechten)
{
parent::__construct('Bezoeker', $p_aRechten);
}
示例9:
function __construct($action, $user)
{
parent::__construct($action);
$this->user = $user;
$this->groups = $user->getGroups();
}
示例10: SupportingMenu
function __construct($val, &$page)
{
parent::__construct($val, $page);
$this->supportingMenu = new SupportingMenu($val, $page);
}
示例11: __construct
/**
* @desc Build a ModuleMiniMenu element.
*/
public function __construct()
{
parent::__construct($this->get_formated_title());
}
示例12:
/**
* Construction
*
* @param Action $action current action, used for output
*/
function __construct($action = null, $q = null)
{
parent::__construct($action);
$this->q = $q;
}
示例13: __construct
public function __construct($title)
{
parent::__construct($title);
}
示例14:
function __construct($out, $user, $tags)
{
parent::__construct($out);
$this->user = $user;
$this->tags = $tags;
}
示例15:
function __construct()
{
parent::__construct();
}