ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilSamlSettings.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
9 {
13  protected static $instance = null;
14 
18  protected $settings;
19 
23  protected function __construct()
24  {
25  $this->settings = new ilSetting('auth_saml');
26  }
27 
31  public static function getInstance()
32  {
33  if (null === self::$instance) {
34  self::$instance = new self();
35  }
36 
37  return self::$instance;
38  }
39 
43  public function isDisplayedOnLoginPage()
44  {
45  return (bool) $this->settings->get('login_form', 0);
46  }
47 
51  public function setLoginFormStatus($displayed_on_login_page)
52  {
53  $this->settings->set('login_form', (int) $displayed_on_login_page);
54  }
55 }
settings()
Definition: settings.php:2
Class ilSamlSettings.
__construct()
ilSamlSettings constructor.
setLoginFormStatus($displayed_on_login_page)