ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilDAVUtils.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
14{
15 private static $instance = null;
16
17 private $pwd_instruction = null;
18
23 private function __construct()
24 {
25 }
26
31 public static function getInstance()
32 {
33 if (self::$instance) {
34 return self::$instance;
35 }
36 return self::$instance = new ilDAVUtils();
37 }
38
44 {
45 global $DIC;
46 $ilUser = $DIC['ilUser'];
47
48 if ($this->pwd_instruction !== null) {
50 }
51 include_once './Services/Authentication/classes/class.ilAuthUtils.php';
52 $status = ilAuthUtils::supportsLocalPasswordValidation($ilUser->getAuthMode(true));
53 if ($status != ilAuthUtils::LOCAL_PWV_USER) {
54 return $this->pwd_instruction = false;
55 }
56 // Check if user has local password
57 return $this->pwd_instruction = (bool) !strlen($ilUser->getPasswd());
58 }
59}
An exception for terminatinating execution or to throw for unit testing.
static supportsLocalPasswordValidation($a_authmode)
Check if local password validation is supported.
WebDAV utility functions.
static getInstance()
Get singleton instance.
isLocalPasswordInstructionRequired()
__construct()
Singleton constructor.
global $DIC
Definition: saml.php:7
$ilUser
Definition: imgupload.php:18