public function isActive($mode = null)
    {
        if ($mode !== null && isset($_GET[$this->name])) {
            return $_GET[$this->name] == $mode;
        }

        return isset($_GET[$this->name]) ? $_GET[$this->name] : false;
    }
public function isActive($mode = null)
    {
        if ($mode !== null && isset($_GET[$this->name])) {
            return $_GET[$this->name] == $mode;
        }

        return isset($_GET[$this->name]) ? $_GET[$this->name] : false;
    }
public function isActive ( $ mode = null ) { if ( $ mode !== null && isset ( $ _GET [ $ this -> name ] ) ) { return $ _GET [ $ this -> name ] == $ mode ; } return isset ( $ _GET [ $ this -> name ] ) ? $ _GET [ $ this -> name ] : false ; }
Returns true if the URL is requesting the page to be shown.
If no parameter is passed, then return active page mode.

@param string $mode Optionally ask for specific mode

@return bool|string
Returns true if the URL is requesting the page to be shown . If no parameter is passed then return active page mode .