Ejemplo n.º 1
0
 /**
  * Get the route params for the stats provider or NULL if not setted
  * @return array|null
  */
 public function getLink()
 {
     $link = parent::getLink();
     if (count($link) <= 0) {
         return null;
     } else {
         return $link;
     }
 }
Ejemplo n.º 2
0
 /**
  * Create a new X_Page_Item_StatusLink
  * @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_LABEL, $link = array(), $route = 'default', $reset = false)
 {
     parent::__construct($key, $label, $link, $route, $reset);
     $this->setType($type);
 }
Ejemplo n.º 3
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
  */
 function __construct($key, $label, $link = array(), $route = 'default', $reset = false)
 {
     parent::__construct($key, $label, $link, $route, $reset);
     $this->type = self::TYPE_CONTAINER;
 }
Ejemplo n.º 4
0
 /**
  * Create a new X_Page_Item_ActionLink
  * @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, $link = array(), $route = 'default', $reset = false)
 {
     parent::__construct($key, $label, $link, $route, $reset);
 }