當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Menu::__construct方法代碼示例

本文整理匯總了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);
 }
開發者ID:harriewang,項目名稱:InnertieWebsite,代碼行數:7,代碼來源:listsnav.php

示例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();
 }
開發者ID:AroundPBT,項目名稱:PHPBoost,代碼行數:14,代碼來源:LinksMenuElement.class.php

示例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;
 }
開發者ID:AroundPBT,項目名稱:PHPBoost,代碼行數:9,代碼來源:FeedMenu.class.php

示例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;
 }
開發者ID:bashrc,項目名稱:gnusocial-debian,代碼行數:11,代碼來源:subgroupnav.php

示例5:

 /**
  * Construction
  *
  * @param Action $action current action, used for output
  */
 function __construct($action = null, $profile = null)
 {
     parent::__construct($action);
     $this->profile = $profile;
 }
開發者ID:bashrc,項目名稱:gnusocial-debian,代碼行數:10,代碼來源:peopletagnav.php

示例6:

 function __construct($out, $user, $searches)
 {
     parent::__construct($out);
     $this->user = $user;
     $this->searches = $searches;
 }
開發者ID:harriewang,項目名稱:InnertieWebsite,代碼行數:6,代碼來源:searchsubmenu.php

示例7: array

 function __construct($id = 0, $tableData = array(), Desk $desk)
 {
     parent::__construct($id, $tableData);
     $this->desk = $desk;
 }
開發者ID:virutmath,項目名稱:crm_local,代碼行數:5,代碼來源:MenuInDesk.php

示例8: __construct

 /**
  * constructor
  */
 public function __construct($p_aRechten)
 {
     parent::__construct('Bezoeker', $p_aRechten);
 }
開發者ID:Pieem105,項目名稱:BC-Rianto-mvc,代碼行數:7,代碼來源:BezoekerMenu.class.php

示例9:

 function __construct($action, $user)
 {
     parent::__construct($action);
     $this->user = $user;
     $this->groups = $user->getGroups();
 }
開發者ID:harriewang,項目名稱:InnertieWebsite,代碼行數:6,代碼來源:groupsnav.php

示例10: SupportingMenu

 function __construct($val, &$page)
 {
     parent::__construct($val, $page);
     $this->supportingMenu = new SupportingMenu($val, $page);
 }
開發者ID:homberghp,項目名稱:peerweb,代碼行數:5,代碼來源:screenutils.php

示例11: __construct

 /**
  * @desc Build a ModuleMiniMenu element.
  */
 public function __construct()
 {
     parent::__construct($this->get_formated_title());
 }
開發者ID:AroundPBT,項目名稱:PHPBoost,代碼行數:7,代碼來源:ModuleMiniMenu.class.php

示例12:

 /**
  * Construction
  *
  * @param Action $action current action, used for output
  */
 function __construct($action = null, $q = null)
 {
     parent::__construct($action);
     $this->q = $q;
 }
開發者ID:Grasia,項目名稱:bolotweet,代碼行數:10,代碼來源:searchgroupnav.php

示例13: __construct

 public function __construct($title)
 {
     parent::__construct($title);
 }
開發者ID:AroundPBT,項目名稱:PHPBoost,代碼行數:4,代碼來源:ContentMenu.class.php

示例14:

 function __construct($out, $user, $tags)
 {
     parent::__construct($out);
     $this->user = $user;
     $this->tags = $tags;
 }
開發者ID:harriewang,項目名稱:InnertieWebsite,代碼行數:6,代碼來源:tagsubmenu.php

示例15:

 function __construct()
 {
     parent::__construct();
 }
開發者ID:Batit,項目名稱:CadaverAldea,代碼行數:4,代碼來源:MenuHTML.class.php


注:本文中的Menu::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。