public function addToolbar($toolbar, $config = array(), $priority = AnEvent::PRIORITY_NORMAL)
    {
        if (! ($toolbar instanceof AnControllerToolbarInterface)) {
            $toolbar = $this->_mixer->getToolbar($toolbar, $config);
        }

        //Add the toolbars
        $this->_toolbars[$toolbar->getIdentifier()->name] = $toolbar;

        //Add the toolbar
        if ($this->inherits('AnMixinEvent')) {
            $this->addEventSubscriber($toolbar, $priority);
        }

        return $this->getMixer();
    }
public function addToolbar($toolbar, $config = array(), $priority = AnEvent::PRIORITY_NORMAL)
    {
        if (! ($toolbar instanceof AnControllerToolbarInterface)) {
            $toolbar = $this->_mixer->getToolbar($toolbar, $config);
        }

        //Add the toolbars
        $this->_toolbars[$toolbar->getIdentifier()->name] = $toolbar;

        //Add the toolbar
        if ($this->inherits('AnMixinEvent')) {
            $this->addEventSubscriber($toolbar, $priority);
        }

        return $this->getMixer();
    }
public function addToolbar ( $ toolbar , $ config = array ( ) , $ priority = AnEvent :: PRIORITY_NORMAL ) { if ( ! ( $ toolbar instanceof AnControllerToolbarInterface ) ) { $ toolbar = $ this -> _mixer -> getToolbar ( $ toolbar , $ config ) ; } //Add the toolbars $ this -> _toolbars [ $ toolbar -> getIdentifier ( ) -> name ] = $ toolbar ; //Add the toolbar if ( $ this -> inherits ( 'AnMixinEvent' ) ) { $ this -> addEventSubscriber ( $ toolbar , $ priority ) ; } return $ this -> getMixer ( ) ; }
Add one or more toolbars

@param   mixed	An object that implements AnObjectServiceable, AnServiceIdentifier object
or valid identifier string
@return  AnObject	The mixer object
Add one or more toolbars