30
30
31
31
defined ('MOODLE_INTERNAL ' ) || die ();
32
32
33
+ /**
34
+ * [Description manager]
35
+ */
33
36
class manager {
34
37
35
38
/**
36
- * @param $config
39
+ * set_objectfs_config
40
+ * @param stdClass $config
41
+ * @return void
37
42
*/
38
43
public static function set_objectfs_config ($ config ) {
39
44
foreach ($ config as $ key => $ value ) {
@@ -42,6 +47,7 @@ public static function set_objectfs_config($config) {
42
47
}
43
48
44
49
/**
50
+ * get_objectfs_config
45
51
* @return stdClass
46
52
* @throws \dml_exception
47
53
*/
@@ -114,8 +120,9 @@ public static function get_objectfs_config() {
114
120
}
115
121
116
122
/**
117
- * @param $config
118
- * @return bool
123
+ * get_client
124
+ * @param stdClass $config
125
+ * @return mixed|bool
119
126
*/
120
127
public static function get_client ($ config ) {
121
128
$ clientclass = self ::get_client_classname_from_fs ($ config ->filesystem );
@@ -128,8 +135,9 @@ public static function get_client($config) {
128
135
}
129
136
130
137
/**
131
- * @param $contenthash
132
- * @param $newlocation
138
+ * update_object_by_hash
139
+ * @param string $contenthash
140
+ * @param string $newlocation
133
141
* @param int|null $filesize Size of the file in bytes. Falls back to stored value if not provided.
134
142
* @return mixed|stdClass
135
143
* @throws \dml_exception
@@ -172,8 +180,9 @@ public static function update_object_by_hash($contenthash, $newlocation, $filesi
172
180
}
173
181
174
182
/**
183
+ * update_object
175
184
* @param stdClass $object
176
- * @param $newlocation
185
+ * @param string $newlocation
177
186
* @return stdClass
178
187
* @throws \dml_exception
179
188
*/
@@ -192,6 +201,7 @@ public static function update_object(stdClass $object, $newlocation) {
192
201
}
193
202
194
203
/**
204
+ * cloudfront_pem_exists
195
205
* @return string
196
206
* @throws \coding_exception
197
207
* @throws \dml_exception
0 commit comments