ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilDAVUtils Class Reference

WebDAV utility functions. More...

+ Collaboration diagram for ilDAVUtils:

Public Member Functions

 isLocalPasswordInstructionRequired ()
 

Static Public Member Functions

static getInstance ()
 Get singleton instance. More...
 

Private Member Functions

 __construct ()
 Singleton constructor. More...
 

Private Attributes

 $pwd_instruction = null
 

Static Private Attributes

static $instance = null
 

Detailed Description

WebDAV utility functions.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 13 of file class.ilDAVUtils.php.

Constructor & Destructor Documentation

◆ __construct()

ilDAVUtils::__construct ( )
private

Singleton constructor.

Returns

Definition at line 23 of file class.ilDAVUtils.php.

24  {
25  }

Member Function Documentation

◆ getInstance()

static ilDAVUtils::getInstance ( )
static

Get singleton instance.

Returns
object ilDAVUtils

Definition at line 31 of file class.ilDAVUtils.php.

Referenced by ilObjCategoryAccess\_getCommands(), ilObjFolderAccess\_getCommands(), ilObjGroupAccess\_getCommands(), and ilObjCourseAccess\_getCommands().

32  {
33  if (self::$instance) {
34  return self::$instance;
35  }
36  return self::$instance = new ilDAVUtils();
37  }
WebDAV utility functions.
+ Here is the caller graph for this function:

◆ isLocalPasswordInstructionRequired()

ilDAVUtils::isLocalPasswordInstructionRequired ( )
Returns

Definition at line 43 of file class.ilDAVUtils.php.

References $DIC, $ilUser, $pwd_instruction, ilAuthUtils\LOCAL_PWV_USER, and ilAuthUtils\supportsLocalPasswordValidation().

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  }
global $DIC
Definition: saml.php:7
static supportsLocalPasswordValidation($a_authmode)
Check if local password validation is supported.
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

Field Documentation

◆ $instance

ilDAVUtils::$instance = null
staticprivate

Definition at line 15 of file class.ilDAVUtils.php.

◆ $pwd_instruction

ilDAVUtils::$pwd_instruction = null
private

Definition at line 17 of file class.ilDAVUtils.php.

Referenced by isLocalPasswordInstructionRequired().


The documentation for this class was generated from the following file: