ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilWebDAVUtil.php
Go to the documentation of this file.
1<?php
2
13{
14 private static $instance = null;
15
16 private $pwd_instruction = null;
17
22 private function __construct()
23 {
24 }
25
30 public static function getInstance()
31 {
32 if (self::$instance) {
33 return self::$instance;
34 }
35 return self::$instance = new ilWebDAVUtil();
36 }
37
44 {
45 global $DIC;
46 $ilUser = $DIC->user();
47
48 if ($this->pwd_instruction !== null) {
50 }
51 $status = ilAuthUtils::supportsLocalPasswordValidation($ilUser->getAuthMode(true));
52 if ($status != ilAuthUtils::LOCAL_PWV_USER) {
53 return $this->pwd_instruction = false;
54 }
55 // Check if user has local password
56 return $this->pwd_instruction = (bool) !strlen($ilUser->getPasswd());
57 }
58}
An exception for terminatinating execution or to throw for unit testing.
static supportsLocalPasswordValidation($a_authmode)
Check if local password validation is supported.
This class contains some functions from the old ilDAVServer.
isLocalPasswordInstructionRequired()
--> deleting this method depends on the "local password" discussion
static getInstance()
Get singleton instance.
__construct()
Singleton constructor.
global $DIC
Definition: goto.php:24
$ilUser
Definition: imgupload.php:18