/** * Initializes the default configuration for the object. * * Called from {@link __construct()} as a first step of object instantiation. * * @param KConfig $config An optional KConfig object with configuration options. */ protected function _initialize(KConfig $config) { $config->append(array('can_register' => (bool) get_config_value('people.allowUserRegistration', true))); $this->_viewer = get_viewer(); parent::_initialize($config); }
/** * Initializes the default configuration for the object * * Called from {@link __construct()} as a first step of object instantiation. * * @param KConfig $config An optional KConfig object with configuration options. * * @return void */ protected function _initialize(KConfig $config) { $config->append(array('activation_required' => get_config_value('users.useractivation'), 'can_register' => (bool) get_config_value('users.allowUserRegistration', true))); parent::_initialize($config); }