/** * 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; } }
/** * 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); }
/** * 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; }
/** * 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); }