ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 $ilUser;
48 
49  if($this->pwd_instruction !== NULL)
50  {
52  }
53  include_once './Services/Authentication/classes/class.ilAuthUtils.php';
54  $status = ilAuthUtils::supportsLocalPasswordValidation($ilUser->getAuthMode(true));
55  if($status != ilAuthUtils::LOCAL_PWV_USER)
56  {
57  return $this->pwd_instruction = false;
58  }
59  // Check if user has local password
60  return $this->pwd_instruction = (bool) !strlen($ilUser->getPasswd());
61  }
62 
63 }
64 ?>