ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  }
27 
32  public static function getInstance()
33  {
34  if(self::$instance)
35  {
36  return self::$instance;
37  }
38  return self::$instance = new ilDAVUtils();
39  }
40 
46  {
47  global $DIC;
48  $ilUser = $DIC['ilUser'];
49 
50  if($this->pwd_instruction !== NULL)
51  {
53  }
54  include_once './Services/Authentication/classes/class.ilAuthUtils.php';
55  $status = ilAuthUtils::supportsLocalPasswordValidation($ilUser->getAuthMode(true));
56  if($status != ilAuthUtils::LOCAL_PWV_USER)
57  {
58  return $this->pwd_instruction = false;
59  }
60  // Check if user has local password
61  return $this->pwd_instruction = (bool) !strlen($ilUser->getPasswd());
62  }
63 
64 }
65 ?>
WebDAV utility functions.
static supportsLocalPasswordValidation($a_authmode)
Check if local password validation is supported.
__construct()
Singleton constructor.
$ilUser
Definition: imgupload.php:18
isLocalPasswordInstructionRequired()
global $DIC
static getInstance()
Get singleton instance.