original_string: public function toZendNavigation(\Zend_Controller_Request_Abstract $request, $actionController = null)
      {
          if ($this->_onlyActiveBranchVisible) {
              $activePath = $this->_findPath($request);
  
              // \MUtil_Echo::r($activePath);
              $this->setBranchVisible($activePath);
          }
  
          $parameterSources = func_get_args();
  
          if ($this->_menuParameters) {
              $parameterSources[] = $this->_menuParameters;
          }
  
          $source = new \Gems_Menu_ParameterCollector($parameterSources);
          // self::$verbose = true;
  
          $nav = new \Zend_Navigation($this->_toNavigationArray($source));
  
          // \MUtil_Echo::track($this->_toNavigationArray($source), $nav);
  
          return $nav;
      }
code: public function toZendNavigation(\Zend_Controller_Request_Abstract $request, $actionController = null)
      {
          if ($this->_onlyActiveBranchVisible) {
              $activePath = $this->_findPath($request);
  
              // \MUtil_Echo::r($activePath);
              $this->setBranchVisible($activePath);
          }
  
          $parameterSources = func_get_args();
  
          if ($this->_menuParameters) {
              $parameterSources[] = $this->_menuParameters;
          }
  
          $source = new \Gems_Menu_ParameterCollector($parameterSources);
          // self::$verbose = true;
  
          $nav = new \Zend_Navigation($this->_toNavigationArray($source));
  
          // \MUtil_Echo::track($this->_toNavigationArray($source), $nav);
  
          return $nav;
      }
code_tokens: public function toZendNavigation ( \ Zend_Controller_Request_Abstract $ request , $ actionController = null ) { if ( $ this -> _onlyActiveBranchVisible ) { $ activePath = $ this -> _findPath ( $ request ) ; // \MUtil_Echo::r($activePath); $ this -> setBranchVisible ( $ activePath ) ; } $ parameterSources = func_get_args ( ) ; if ( $ this -> _menuParameters ) { $ parameterSources [ ] = $ this -> _menuParameters ; } $ source = new \ Gems_Menu_ParameterCollector ( $ parameterSources ) ; // self::$verbose = true; $ nav = new \ Zend_Navigation ( $ this -> _toNavigationArray ( $ source ) ) ; // \MUtil_Echo::track($this->_toNavigationArray($source), $nav); return $ nav ; }
docstring: Generates a \Zend_Navigation object from the current menu
  
  @param \Zend_Controller_Request_Abstract $request
  @param mixed $actionController
  @return \Zend_Navigation
docstring_tokens: Generates a \ Zend_Navigation object from the current menu