public function isCurrent($inc_parent = false, $inc_args = false)
    {
        // strict match with arguments
        if ($inc_args) {
            return $this->app->url()->getURL() == $this->getURL();
        }

        // match current page or parent page without arguments
        return $this->_current || ($inc_parent && $this->_current_sub);
    }
public function isCurrent($inc_parent = false, $inc_args = false)
    {
        // strict match with arguments
        if ($inc_args) {
            return $this->app->url()->getURL() == $this->getURL();
        }

        // match current page or parent page without arguments
        return $this->_current || ($inc_parent && $this->_current_sub);
    }
public function isCurrent ( $ inc_parent = false , $ inc_args = false ) { // strict match with arguments if ( $ inc_args ) { return $ this -> app -> url ( ) -> getURL ( ) == $ this -> getURL ( ) ; } // match current page or parent page without arguments return $ this -> _current || ( $ inc_parent && $ this -> _current_sub ) ; }
Detects if the URL matches current page.

If $inc_parent is set to true, then it will also try to match sub-pages.
If $inc_args is set to true then it will also try to match arguments.

@param bool $inc_parent
@param bool $inc_args

@return bool
Detects if the URL matches current page .