ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
ilWebDAVDIC Class Reference
+ Inheritance diagram for ilWebDAVDIC:
+ Collaboration diagram for ilWebDAVDIC:

Public Member Functions

 initWithoutDIC ()
 
 init (ILIASContainer $DIC)
 
 dav_settings ()
 
 dav_factory ()
 
 mountinstructions ()
 
 mountinstructions_upload ()
 
 authplugin ()
 
 locksbackend ()
 
 locksplugin ()
 
 browserplugin ()
 

Detailed Description

Definition at line 28 of file class.ilWebDAVDIC.php.

Member Function Documentation

◆ authplugin()

ilWebDAVDIC::authplugin ( )

Definition at line 150 of file class.ilWebDAVDIC.php.

150 : AuthPlugin
151 {
152 return $this['sabre.authplugin'];
153 }

◆ browserplugin()

ilWebDAVDIC::browserplugin ( )

Definition at line 165 of file class.ilWebDAVDIC.php.

165 : BrowserPlugin
166 {
167 return $this['sabre.browserplugin'];
168 }

◆ dav_factory()

ilWebDAVDIC::dav_factory ( )

Definition at line 135 of file class.ilWebDAVDIC.php.

136 {
137 return $this['davobj.factory'];
138 }

◆ dav_settings()

ilWebDAVDIC::dav_settings ( )

Definition at line 130 of file class.ilWebDAVDIC.php.

130 : ilSetting
131 {
132 return $this['dav_settings'];
133 }
ILIAS Setting Class.

◆ init()

ilWebDAVDIC::init ( ILIASContainer  $DIC)

Definition at line 36 of file class.ilWebDAVDIC.php.

36 : void
37 {
38 $this['dav_settings'] = fn($c): ilSetting => new ilSetting('webdav');
39
40 $this['locks.repository'] = fn($c): ilWebDAVLocksRepository => new ilWebDAVLocksRepository($DIC->database());
41
42 $this['repository.helper'] = fn($c): ilWebDAVRepositoryHelper => new ilWebDAVRepositoryHelper(
43 $DIC->access(),
45 new ilRepUtil(),
46 $c['locks.repository'],
48 );
49
50 $this['uriresolver'] = fn($c): ilWebDAVLockUriPathResolver => new ilWebDAVLockUriPathResolver(
51 $c['repository.helper']
52 );
53
54 $this['davobj.factory'] = fn($c): ilWebDAVObjFactory => new ilWebDAVObjFactory(
55 $c['repository.helper'],
56 $DIC->user(),
58 $DIC->http()->request(),
59 $DIC->language(),
60 $DIC['ilias']->getClientId(),
61 (bool) $c['dav_settings']->get('webdav_versioning_enabled', 'true')
62 );
63
64 $this['locks.backend'] = fn($c): ilWebDAVLocksBackend => new ilWebDAVLocksBackend(
65 $c['locks.repository'],
66 $c['repository.helper'],
67 $c['davobj.factory'],
68 $c['uriresolver'],
69 $DIC->user()
70 );
71
72 $this['mountinstructions.repository'] = fn(
73 $c
75
76 $this['mountinstructions.facory'] = fn(
77 $c
79 $c['mountinstructions.repository'],
80 $DIC->http()->request(),
81 $DIC->user()
82 );
83
84 $this['mountinstructions.gui'] = fn($c): ilWebDAVMountInstructionsGUI => new ilWebDAVMountInstructionsGUI(
85 $c['mountinstructions.facory']->getMountInstructionsObject(),
86 $DIC->language(),
87 $DIC->ui(),
88 $DIC->http()
89 );
90
91 $this['mountinstructions.uploadgui'] = fn(
92 $c
94 $DIC->ui()->mainTemplate(),
95 $DIC->user(),
96 $DIC->ctrl(),
97 $DIC->language(),
98 $DIC->rbac()->system(),
99 $DIC["ilErr"],
100 $DIC->toolbar(),
101 $DIC->http(),
102 $DIC->refinery(),
103 $DIC->ui(),
104 $DIC->filesystem(),
105 $DIC->upload(),
106 $c['mountinstructions.repository']
107 );
108
109 $this['sabre.authplugin'] = function ($c) use ($DIC): AuthPlugin {
110 $webdav_auth = new ilWebDAVAuthentication(
111 $DIC->user(),
112 $DIC['ilAuthSession'],
114 );
115 $auth_callback_class = new BasicCallBack(
116 fn($username, $password): bool => $webdav_auth->authenticate($username, $password)
117 );
118
119 return new AuthPlugin($auth_callback_class);
120 };
121
122 $this['sabre.locksplugin'] = fn($c): LocksPlugin => new LocksPlugin($c['locks.backend']);
123
124 $this['sabre.browserplugin'] = fn($c): ilWebDAVSabreBrowserPlugin => new ilWebDAVSabreBrowserPlugin(
125 $DIC->ctrl(),
126 $DIC->http()->request()->getUri()
127 );
128 }
mainTemplate()
static getLogger(string $a_component_id)
Get component logger.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
The only purpose for this class is to redirect a browsers WebDAV-Request to the mount-instructions pa...
$c
Definition: deliver.php:25
static http()
Fetches the global http state from ILIAS.
get(string $class_name)
global $DIC
Definition: shib_login.php:26

References $c, $DIC, and ilLoggerFactory\getLogger().

Referenced by initWithoutDIC().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initWithoutDIC()

ilWebDAVDIC::initWithoutDIC ( )

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

30 : void
31 {
32 global $DIC;
33 $this->init($DIC);
34 }
init(ILIASContainer $DIC)

References $DIC, and init().

+ Here is the call graph for this function:

◆ locksbackend()

ilWebDAVDIC::locksbackend ( )

Definition at line 155 of file class.ilWebDAVDIC.php.

156 {
157 return $this['locks.backend'];
158 }

◆ locksplugin()

ilWebDAVDIC::locksplugin ( )

Definition at line 160 of file class.ilWebDAVDIC.php.

160 : LocksPlugin
161 {
162 return $this['sabre.locksplugin'];
163 }

◆ mountinstructions()

ilWebDAVDIC::mountinstructions ( )

Definition at line 140 of file class.ilWebDAVDIC.php.

141 {
142 return $this['mountinstructions.gui'];
143 }

◆ mountinstructions_upload()

ilWebDAVDIC::mountinstructions_upload ( )

Definition at line 145 of file class.ilWebDAVDIC.php.

146 {
147 return $this['mountinstructions.uploadgui'];
148 }

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