ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilSamlSettings.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
26 {
27  protected static ?self $instance = null;
28  protected ilSetting $settings;
29 
30  protected function __construct()
31  {
32  $this->settings = new ilSetting('auth_saml');
33  }
34 
35  public static function getInstance(): self
36  {
37  if (null === self::$instance) {
38  self::$instance = new self();
39  }
40 
41  return self::$instance;
42  }
43 
44  public function isDisplayedOnLoginPage(): bool
45  {
46  return (bool) $this->settings->get('login_form', '0');
47  }
48 
49  public function setLoginFormStatus(bool $displayed_on_login_page): void
50  {
51  $this->settings->set('login_form', (string) ((int) $displayed_on_login_page));
52  }
53 }
Class ilSamlSettings.
setLoginFormStatus(bool $displayed_on_login_page)