public function getToolbar()
    {
        $view = $this->_template->getView();
        $toolbar = $view->getState()->toolbar;
        if (!$toolbar) {
            $controller = $this->getController($view->getName());
            $toolbar = $controller->getIdentifier()->name;
            if ($controller->hasToolbar($toolbar)) {
                $toolbar = $controller->getToolbar($toolbar);
            }
            $controller->toolbar = $toolbar;
        }

        return $view->getState()->toolbar;
    }
public function getToolbar()
    {
        $view = $this->_template->getView();
        $toolbar = $view->getState()->toolbar;
        if (!$toolbar) {
            $controller = $this->getController($view->getName());
            $toolbar = $controller->getIdentifier()->name;
            if ($controller->hasToolbar($toolbar)) {
                $toolbar = $controller->getToolbar($toolbar);
            }
            $controller->toolbar = $toolbar;
        }

        return $view->getState()->toolbar;
    }
public function getToolbar ( ) { $ view = $ this -> _template -> getView ( ) ; $ toolbar = $ view -> getState ( ) -> toolbar ; if ( ! $ toolbar ) { $ controller = $ this -> getController ( $ view -> getName ( ) ) ; $ toolbar = $ controller -> getIdentifier ( ) -> name ; if ( $ controller -> hasToolbar ( $ toolbar ) ) { $ toolbar = $ controller -> getToolbar ( $ toolbar ) ; } $ controller -> toolbar = $ toolbar ; } return $ view -> getState ( ) -> toolbar ; }
Returns a toolbar object of a view.

@return AnControllerToolbarAbstract|null If no toolbar found then null is returned
Returns a toolbar object of a view .