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;
    }
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;
    }
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 ; }
Generates a \Zend_Navigation object from the current menu

@param \Zend_Controller_Request_Abstract $request
@param mixed $actionController
@return \Zend_Navigation
Generates a \ Zend_Navigation object from the current menu