/** */ function __construct() { $config = isset(\jApp::config()->jcommunity) ? \jApp::config()->jcommunity : null; if ($config) { if (isset($config['loginResponse'])) { $this->responseType = $config['loginResponse']; } } if (class_exists('jPref')) { $pref = \jPref::get('jcommunity_registrationEnabled'); if ($pref !== null) { $this->registrationEnabled = $pref; } $pref = \jPref::get('jcommunity_resetPasswordEnabled'); if ($pref !== null) { $this->resetPasswordEnabled = $pref; } } else { if ($config) { if (isset($config['registrationEnabled'])) { $this->registrationEnabled = !!$config['registrationEnabled']; } if (isset($config['resetPasswordEnabled'])) { $this->resetPasswordEnabled = !!$config['resetPasswordEnabled']; } } } }
public function loadValue() { $this->value = jPref::get($this->id); }