ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
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 $ilUser, $pwd_instruction, ilAuthUtils\LOCAL_PWV_USER, and ilAuthUtils\supportsLocalPasswordValidation().

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