/** * Initializes the default configuration for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param ObjectConfig $config An optional ObjectConfig object with configuration options. * @return void */ protected function _initialize(ObjectConfig $config) { $toolbars = array(); if ($config->dispatched && $config->user->isAuthentic()) { $toolbars[] = $this->getIdentifier()->name; } $config->append(array('toolbars' => $toolbars, 'model' => $this->getIdentifier()->name)); parent::_initialize($config); }
/** * Initializes the default configuration for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param ObjectConfig $config Configuration options * @return void */ protected function _initialize(ObjectConfig $config) { $config->append(array('toolbars' => array($this->getIdentifier()->name), 'model' => $this->getIdentifier()->name)); parent::_initialize($config); }