예제 #1
0
 /**
  * Set the route to the stats custom provider
  * @param array $link
  * @param string $route
  * @param boolean $reset
  * @return X_Page_Item_Statistic
  * @throws Exception if $link isn't an array
  */
 public function setLink($link = array(), $route = 'default', $reset = false)
 {
     if (is_array($link)) {
         parent::setLink($link, $route, $reset);
         return $this;
     } else {
         throw new Exception('Only routes are allowed inside Statistic');
     }
 }