ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilWebDAVTestHelper.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
27 protected string $client_id = 'my_client';
28 protected array $tree = [
29 '1' => [
30 'title' => 'Root Folder',
31 'children' => [2, 7, 22, 23356343],
32 'type' => 'fold',
33 'access' => 'read'
34 ],
35 '2' => [
36 'title' => 'First Child',
37 'children' => [],
38 'type' => 'file',
39 'access' => 'write'
40 ],
41 '7' => [
42 'title' => 'Second Child',
43 'children' => [70, 72, 77, 78, 722, 7221, 723356343],
44 'type' => 'fold',
45 'access' => 'write'
46 ],
47 '70' => [
48 'title' => 'Second First Child',
49 'children' => [],
50 'type' => 'file',
51 'access' => 'read'
52 ],
53 '72' => [
54 'title' => 'Second First Child',
55 'children' => [],
56 'type' => 'file',
57 'access' => 'read'
58 ],
59 '77' => [
60 'title' => 'Second Second Child',
61 'children' => [],
62 'type' => 'tst',
63 'access' => 'read'
64 ],
65 '78' => [
66 'title' => 'Second Second Child',
67 'children' => [],
68 'type' => 'file',
69 'access' => 'read'
70 ],
71 '722' => [
72 'title' => 'Second Third Child',
73 'children' => [],
74 'type' => 'file',
75 'access' => 'none'
76 ],
77 '7221' => [
78 'title' => 'Second Fourth Child',
79 'children' => [],
80 'type' => 'fold',
81 'access' => 'write'
82 ],
83 '723356343' => [
84 'title' => 'Second Last Child',
85 'children' => [],
86 'type' => 'exc',
87 'access' => 'write'
88 ],
89 '22' => [
90 'title' => 'Third Child With Non Davable Content',
91 'children' => [221, 222, 223, 224, 225, 226, 227, 228, 229, 2210, 2211],
92 'type' => 'fold',
93 'access' => 'read'
94 ],
95 '221' => [
96 'title' => 'Third \ Child',
97 'children' => [],
98 'type' => 'fold',
99 'access' => 'read'
100 ],
101 '222' => [
102 'title' => 'Third \ Child',
103 'children' => [],
104 'type' => 'fold',
105 'access' => 'read'
106 ],
107 '223' => [
108 'title' => 'Third < Child',
109 'children' => [],
110 'type' => 'fold',
111 'access' => 'read'
112 ],
113 '224' => [
114 'title' => 'Third / Child',
115 'children' => [],
116 'type' => 'file',
117 'access' => 'read'
118 ],
119 '225' => [
120 'title' => 'Third : Child',
121 'children' => [],
122 'type' => 'file',
123 'access' => 'read'
124 ],
125 '226' => [
126 'title' => 'Third * Child',
127 'children' => [],
128 'type' => 'file',
129 'access' => 'read'
130 ],
131 '227' => [
132 'title' => 'Third ? Child',
133 'children' => [],
134 'type' => 'file',
135 'access' => 'read'
136 ],
137 '228' => [
138 'title' => 'Third " Child',
139 'children' => [],
140 'type' => 'file',
141 'access' => 'read'
142 ],
143 '229' => [
144 'title' => 'Third | Child',
145 'children' => [],
146 'type' => 'file',
147 'access' => 'read'
148 ],
149 '2210' => [
150 'title' => 'Third # Child',
151 'children' => [],
152 'type' => 'file',
153 'access' => 'read'
154 ],
155 '2211' => [
156 'title' => '.Third Child',
157 'children' => [],
158 'type' => 'file',
159 'access' => 'read'
160 ],
161 '23356343' => [
162 'title' => 'Last Child',
163 'children' => [233563432, 233563437, 2335634322, 2335634323356343],
164 'type' => 'fold',
165 'access' => 'read'
166 ],
167 '233563432' => [
168 'title' => 'Last First Child',
169 'children' => [],
170 'type' => 'fold',
171 'access' => 'read'
172 ],
173 '233563437' => [
174 'title' => 'Last Second Child',
175 'children' => [],
176 'type' => 'tst',
177 'access' => 'read'
178 ],
179 '2335634322' => [
180 'title' => 'Last Third Child',
181 'children' => [],
182 'type' => 'fold',
183 'access' => 'none'
184 ],
185 '2335634323356343' => [
186 'title' => 'Last Last Child',
187 'children' => [],
188 'type' => 'file',
189 'access' => 'read'
190 ]
191 ];
192
193 public function getTree(): array
194 {
195 return $this->tree;
196 }
197
198 public function getClientId(): string
199 {
200 return $this->client_id;
201 }
202}