ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
ILIAS\WebDAV\Config Class Reference
+ Collaboration diagram for ILIAS\WebDAV\Config:

Public Member Functions

 enableDebugging ()
 
 isActive ()
 
 getMountInstructionsQuery ()
 
 prependClientName ()
 
 getEndpoint ()
 
 getClientId ()
 
 getRefIdPrefix ()
 
 getInvalidStartCharacters ()
 
 getIncompatibleCharacters ()
 
 getSupportedObjectTypes ()
 
 getDeletedObjectsRetentionPeriod ()
 

Private Attributes

const string REF_PREFIX = 'ref_'
 
const string WEBDAV_ENDPOINT = 'webdav.php'
 
const string MOUNT_INSTRUCTIONS_QUERY = 'mount-instructions'
 
bool $is_enabed = null
 

Detailed Description

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s

Definition at line 26 of file Config.php.

Member Function Documentation

◆ enableDebugging()

ILIAS\WebDAV\Config::enableDebugging ( )

Definition at line 33 of file Config.php.

33 : bool
34 {
35 return false;
36 }

◆ getClientId()

ILIAS\WebDAV\Config::getClientId ( )

Definition at line 58 of file Config.php.

58 : string
59 {
60 return defined('CLIENT_ID') ? (string) CLIENT_ID : '';
61 }
const CLIENT_ID
Definition: constants.php:41

References CLIENT_ID.

◆ getDeletedObjectsRetentionPeriod()

ILIAS\WebDAV\Config::getDeletedObjectsRetentionPeriod ( )

Definition at line 94 of file Config.php.

94 : int
95 {
96 return 30;
97 }

◆ getEndpoint()

ILIAS\WebDAV\Config::getEndpoint ( )

Definition at line 53 of file Config.php.

53 : string
54 {
56 }
const string WEBDAV_ENDPOINT
Definition: Config.php:29

References ILIAS\WebDAV\Config\WEBDAV_ENDPOINT.

◆ getIncompatibleCharacters()

ILIAS\WebDAV\Config::getIncompatibleCharacters ( )

Definition at line 73 of file Config.php.

73 : array
74 {
75 return [
76 '\\',
77 '<',
78 '>',
79 '/',
80 ':',
81 '*',
82 '?',
83 '"',
84 '|',
85 '#'
86 ];
87 }

◆ getInvalidStartCharacters()

ILIAS\WebDAV\Config::getInvalidStartCharacters ( )

Definition at line 68 of file Config.php.

68 : array
69 {
70 return ['.', '_', '~', '$', '/'];
71 }

◆ getMountInstructionsQuery()

ILIAS\WebDAV\Config::getMountInstructionsQuery ( )

Definition at line 43 of file Config.php.

43 : string
44 {
46 }
const string MOUNT_INSTRUCTIONS_QUERY
Definition: Config.php:30

References ILIAS\WebDAV\Config\MOUNT_INSTRUCTIONS_QUERY.

◆ getRefIdPrefix()

ILIAS\WebDAV\Config::getRefIdPrefix ( )

Definition at line 63 of file Config.php.

63 : string
64 {
65 return self::REF_PREFIX;
66 }
const string REF_PREFIX
Definition: Config.php:28

References ILIAS\WebDAV\Config\REF_PREFIX.

◆ getSupportedObjectTypes()

ILIAS\WebDAV\Config::getSupportedObjectTypes ( )

Definition at line 89 of file Config.php.

89 : array
90 {
91 return ['cat', 'fold', 'grp', 'file'];
92 }

◆ isActive()

ILIAS\WebDAV\Config::isActive ( )

Definition at line 38 of file Config.php.

38 : bool
39 {
40 return $this->is_enabed ?? $this->is_enabed = (new \ilSetting('webdav'))->get('webdav_enabled', '0') === '1';
41 }

◆ prependClientName()

ILIAS\WebDAV\Config::prependClientName ( )

Definition at line 48 of file Config.php.

48 : bool
49 {
50 return true; // currently true for legacy reasons
51 }

Field Documentation

◆ $is_enabed

bool ILIAS\WebDAV\Config::$is_enabed = null
private

Definition at line 31 of file Config.php.

◆ MOUNT_INSTRUCTIONS_QUERY

const string ILIAS\WebDAV\Config::MOUNT_INSTRUCTIONS_QUERY = 'mount-instructions'
private

Definition at line 30 of file Config.php.

Referenced by ILIAS\WebDAV\Config\getMountInstructionsQuery().

◆ REF_PREFIX

const string ILIAS\WebDAV\Config::REF_PREFIX = 'ref_'
private

Definition at line 28 of file Config.php.

Referenced by ILIAS\WebDAV\Config\getRefIdPrefix().

◆ WEBDAV_ENDPOINT

const string ILIAS\WebDAV\Config::WEBDAV_ENDPOINT = 'webdav.php'
private

Definition at line 29 of file Config.php.

Referenced by ILIAS\WebDAV\Config\getEndpoint().


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