コード例 #1
0
ファイル: person.php プロジェクト: stonyyi/anahita
 /**
  * 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);
 }
コード例 #2
0
ファイル: person.php プロジェクト: walteraries/anahita
 /**
  * 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);
 }