Definition at line 37 of file ApacheAuthSettingsForm.php.
◆ __construct()
ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm::__construct |
( |
private int |
$ref_id, |
|
|
private object |
$parentObject, |
|
|
private string |
$show_command, |
|
|
private string |
$save_command, |
|
|
private array |
$values = [] , |
|
|
?UIFactory |
$ui_factory = null , |
|
|
?ilLanguage |
$lng = null , |
|
|
?ilRbacSystem |
$rbac_system = null , |
|
|
?ilRbacReview |
$rbac_review = null , |
|
|
?ilCtrlInterface |
$ctrl = null |
|
) |
| |
◆ buildAuthEnableOverrideLoginPageInput()
ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm::buildAuthEnableOverrideLoginPageInput |
( |
| ) |
|
|
private |
◆ buildAuthUsernameConfigTypeInput()
ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm::buildAuthUsernameConfigTypeInput |
( |
| ) |
|
|
private |
◆ buildEnableAuthInput()
ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm::buildEnableAuthInput |
( |
| ) |
|
|
private |
◆ buildForm()
ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm::buildForm |
( |
| ) |
|
Definition at line 74 of file ApacheAuthSettingsForm.php.
References ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm\buildAuthEnableOverrideLoginPageInput(), ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm\buildAuthUsernameConfigTypeInput(), ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm\buildEnableAuthInput(), ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm\buildLdapEnableInput(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\UI\Implementation\Component\Input\withValue().
76 $access = $this->rbac_system->checkAccess(
'write', $this->ref_id);
78 $form = $this->ui_factory->input()->container()->form()->standard(
79 $this->
ctrl->getFormAction($this->parentObject, $access ? $this->save_command : $this->show_command),
82 'apache_enable_local' => $this->ui_field->checkbox($this->
lng->txt(
'apache_enable_local'))
83 ->
withValue((
bool) ($this->values[
'apache_enable_local'] ??
true)),
85 'apache_auth_indicator_name' => $this->ui_field->text($this->
lng->txt(
'apache_auth_indicator_name'))
87 ->withValue($this->values[
'apache_auth_indicator_name'] ??
''),
88 'apache_auth_indicator_value' => $this->ui_field->text($this->
lng->txt(
'apache_auth_indicator_value'))
90 ->withValue($this->values[
'apache_auth_indicator_value'] ??
''),
92 'apache_auth_authenticate_on_login_page' => $this->ui_field->checkbox($this->
lng->txt(
'apache_auth_authenticate_on_login_page'))
93 ->
withValue((
bool) ($this->values[
'apache_auth_authenticate_on_login_page'] ??
true)),
94 'apache_auth_username_config' => $this->ui_field->section([
96 ], $this->
lng->txt(
'apache_auth_username_config')),
97 'apache_auth_security' => $this->ui_field->section([
98 'apache_auth_domains' => $this->ui_field->textarea(
99 $this->lng->txt(
'apache_auth_domains'),
100 $this->
lng->txt(
'apache_auth_domains_description')
101 )->
withValue($this->values[
'apache_auth_domains'] ??
'')
102 ], $this->
lng->txt(
'apache_auth_security'))
107 $form = $form->withSubmitLabel($this->
lng->txt(
'refresh'));
◆ buildLdapEnableInput()
ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm::buildLdapEnableInput |
( |
| ) |
|
|
private |
Definition at line 145 of file ApacheAuthSettingsForm.php.
References ilAuthUtils\AUTH_APACHE, ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm\checkGroupEnabled(), ilLDAPServer\getDataSource(), ilLDAPServer\getServerIds(), ILIAS\Repository\lng(), null, and ILIAS\UI\Implementation\Component\Input\withValue().
Referenced by ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm\buildForm().
149 if ($servers !== []) {
150 $options[0] = $this->
lng->txt(
'select_one');
151 foreach ($servers as $server_id) {
153 $options[$server_id] = $ldap_server->getName();
156 $apache_enable_ldap = $this->ui_field->optionalGroup([
157 'apache_ldap_sid' => $this->ui_field->select($this->lng->txt(
'auth_ldap_server_ds'), $options)
159 ], $this->
lng->txt(
'apache_enable_ldap'), $this->
lng->txt(
'apache_ldap_hint_ldap_must_be_configured'))
168 $apache_enable_ldap = $this->ui_field->checkbox(
169 $this->
lng->txt(
'apache_enable_ldap'),
170 $this->
lng->txt(
'apache_ldap_hint_ldap_must_be_configured')
171 )->
withValue((
bool) ($this->values[
'apache_enable_ldap'] ??
true));
174 return $apache_enable_ldap;
static getDataSource(int $a_auth_mode)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static getServerIds()
Get all server ids.
◆ checkGroupEnabled()
ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm::checkGroupEnabled |
( |
string |
$post_var | ) |
|
|
private |
◆ $ctrl
ilCtrlInterface ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm::$ctrl |
|
private |
◆ $lng
ilLanguage ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm::$lng |
|
private |
◆ $rbac_review
ilRbacReview ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm::$rbac_review |
|
private |
◆ $rbac_system
ilRbacSystem ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm::$rbac_system |
|
private |
◆ $ui_factory
UIFactory ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm::$ui_factory |
|
private |
◆ $ui_field
FieldFactory ILIAS\UI\Implementation\Component\Input\Container\Form\ApacheAuthSettingsForm::$ui_field |
|
private |
The documentation for this class was generated from the following file: