ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilWebDAVUtil Class Reference

This class contains some functions from the old ilDAVServer. More...

+ Collaboration diagram for ilWebDAVUtil:

Public Member Functions

 isLocalPasswordInstructionRequired ()
 –> deleting this method depends on the "local password" discussion More...
 

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

This class contains some functions from the old ilDAVServer.

Sadly I wasn't able to refactor all of it. Some functions are still used in other classes. Will be refactored

Author
Raphael Heer rapha.nosp@m.el.h.nosp@m.eer@h.nosp@m.slu..nosp@m.ch $Id$

TODO: Check for refactoring potential

Definition at line 12 of file class.ilWebDAVUtil.php.

Constructor & Destructor Documentation

◆ __construct()

ilWebDAVUtil::__construct ( )
private

Singleton constructor.

Returns

Definition at line 22 of file class.ilWebDAVUtil.php.

23  {
24  }

Member Function Documentation

◆ getInstance()

static ilWebDAVUtil::getInstance ( )
static

Get singleton instance.

Returns
object ilDAVUtils

Definition at line 30 of file class.ilWebDAVUtil.php.

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

31  {
32  if (self::$instance) {
33  return self::$instance;
34  }
35  return self::$instance = new ilWebDAVUtil();
36  }
This class contains some functions from the old ilDAVServer.
+ Here is the caller graph for this function:

◆ isLocalPasswordInstructionRequired()

ilWebDAVUtil::isLocalPasswordInstructionRequired ( )

–> deleting this method depends on the "local password" discussion

Returns

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

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

44  {
45  global $DIC;
46  $ilUser = $DIC->user();
47 
48  if ($this->pwd_instruction !== null) {
50  }
51  $status = ilAuthUtils::supportsLocalPasswordValidation($ilUser->getAuthMode(true));
52  if ($status != ilAuthUtils::LOCAL_PWV_USER) {
53  return $this->pwd_instruction = false;
54  }
55  // Check if user has local password
56  return $this->pwd_instruction = (bool) !strlen($ilUser->getPasswd());
57  }
static supportsLocalPasswordValidation($a_authmode)
Check if local password validation is supported.
global $DIC
Definition: goto.php:24
$ilUser
Definition: imgupload.php:18
+ Here is the call graph for this function:

Field Documentation

◆ $instance

ilWebDAVUtil::$instance = null
staticprivate

Definition at line 14 of file class.ilWebDAVUtil.php.

◆ $pwd_instruction

ilWebDAVUtil::$pwd_instruction = null
private

Definition at line 16 of file class.ilWebDAVUtil.php.

Referenced by isLocalPasswordInstructionRequired().


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