/** * Get a toolbar by identifier. * * @return KControllerToolbarAbstract */ public function getToolbar($toolbar, $config = array()) { if (is_string($toolbar)) { //if actorbar or menu alawys default to the base if (in_array($toolbar, array('actorbar'))) { $identifier = clone $this->getIdentifier(); $identifier->path = array('controller', 'toolbar'); $identifier->name = $toolbar; register_default(array('identifier' => $identifier, 'default' => 'ComActorsControllerToolbar' . ucfirst($toolbar))); $toolbar = $identifier; } } return parent::getToolbar($toolbar, $config); }