ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
26  }

Member Function Documentation

◆ getInstance()

static ilDAVUtils::getInstance ( )
static

Get singleton instance.

Returns
object ilDAVUtils

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

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

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

◆ isLocalPasswordInstructionRequired()

ilDAVUtils::isLocalPasswordInstructionRequired ( )
Returns

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

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

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