original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: 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
docstring_tokens: Detects if the URL matches current page .