ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilSamlSettings.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9{
11 protected static $instance = null;
13 protected $settings;
14
18 protected function __construct()
19 {
20 $this->settings = new ilSetting('auth_saml');
21 }
22
26 public static function getInstance() : self
27 {
28 if (null === self::$instance) {
29 self::$instance = new self();
30 }
31
32 return self::$instance;
33 }
34
38 public function isDisplayedOnLoginPage() : bool
39 {
40 return (bool) $this->settings->get('login_form', 0);
41 }
42
46 public function setLoginFormStatus(bool $displayed_on_login_page) : void
47 {
48 $this->settings->set('login_form', (int) $displayed_on_login_page);
49 }
50}
An exception for terminatinating execution or to throw for unit testing.
Class ilSamlSettings.
setLoginFormStatus(bool $displayed_on_login_page)
__construct()
ilSamlSettings constructor.
ILIAS Setting Class.
settings()
Definition: settings.php:2