コード例 #1
0
 /**
  * Create a new X_Page_Item_News
  * @param string $key item key in the list
  * @param string $label item label
  * @param string $title
  */
 function __construct($key, $label, $tab = null)
 {
     parent::__construct($key, $label);
     $this->setTab($tab);
 }
コード例 #2
0
 /**
  * Create a new X_Page_Item
  * @param string $key item key in the list
  * @param string $label item label
  * @param array|string $link an array of Route params
  * @param string $route route name
  * @param boolean $reset if route reset is needed
  */
 function __construct($key, $label, $link = array(), $route = 'default', $reset = false)
 {
     parent::__construct($key, $label);
     $this->setLink($link, $route, $reset);
 }
コード例 #3
0
 /**
  * Create a new X_Page_Item_Message
  * @param string $key item key in the list
  * @param string $label item label
  * @param array|string $link an array of Route params
  */
 function __construct($key, $label, $type = self::TYPE_INFO)
 {
     parent::__construct($key, $label);
     $this->setType($type);
 }