@@ -32,6 +32,9 @@ |
||
32 | 32 | return MODULE_SECURITY_CHECK_EXTENDED_EXT_DIRECTORY_LISTING_HTTP_200; |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $url |
|
37 | + */ |
|
35 | 38 | function getHttpRequest($url) { |
36 | 39 | $server = parse_url($url); |
37 | 40 |
@@ -54,6 +54,9 @@ discard block |
||
54 | 54 | } |
55 | 55 | } |
56 | 56 | |
57 | + /** |
|
58 | + * @param integer $parent_id |
|
59 | + */ |
|
57 | 60 | protected function _buildBranch($parent_id, $level = 0) { |
58 | 61 | $result = ((($level === 0) && ($this->parent_group_apply_to_root === true)) || ($level > 0)) ? $this->parent_group_start_string : null; |
59 | 62 | |
@@ -278,6 +281,10 @@ discard block |
||
278 | 281 | $this->parent_end_string = $parent_end_string; |
279 | 282 | } |
280 | 283 | |
284 | + /** |
|
285 | + * @param string $parent_group_start_string |
|
286 | + * @param string $parent_group_end_string |
|
287 | + */ |
|
281 | 288 | function setParentGroupString($parent_group_start_string, $parent_group_end_string, $apply_to_root = false) { |
282 | 289 | $this->parent_group_start_string = $parent_group_start_string; |
283 | 290 | $this->parent_group_end_string = $parent_group_end_string; |
@@ -301,6 +308,9 @@ discard block |
||
301 | 308 | } |
302 | 309 | } |
303 | 310 | |
311 | + /** |
|
312 | + * @param string $spacer_string |
|
313 | + */ |
|
304 | 314 | function setSpacerString($spacer_string, $spacer_multiplier = 2) { |
305 | 315 | $this->spacer_string = $spacer_string; |
306 | 316 | $this->spacer_multiplier = $spacer_multiplier; |
@@ -71,6 +71,9 @@ |
||
71 | 71 | return $result; |
72 | 72 | } |
73 | 73 | |
74 | + /** |
|
75 | + * @param string $pathname |
|
76 | + */ |
|
74 | 77 | public static function displayPath($pathname) |
75 | 78 | { |
76 | 79 | return str_replace(['/', '\\'], DIRECTORY_SEPARATOR, $pathname); |
@@ -32,6 +32,9 @@ discard block |
||
32 | 32 | ErrorHandler::initialize(); |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @return string |
|
37 | + */ |
|
35 | 38 | public static function getVersion() |
36 | 39 | { |
37 | 40 | if (!isset(static::$version)) { |
@@ -117,6 +120,9 @@ discard block |
||
117 | 120 | return $OSCOM_Site->hasPage() && $OSCOM_Site->getPage()->isRPC(); |
118 | 121 | } |
119 | 122 | |
123 | + /** |
|
124 | + * @param string $parameters |
|
125 | + */ |
|
120 | 126 | public static function link($page, $parameters = null, $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) |
121 | 127 | { |
122 | 128 | global $request_type; |
@@ -324,6 +330,10 @@ discard block |
||
324 | 330 | } |
325 | 331 | } |
326 | 332 | |
333 | + /** |
|
334 | + * @param string $file |
|
335 | + * @param string $group |
|
336 | + */ |
|
327 | 337 | public static function loadConfigFile($file, $group) |
328 | 338 | { |
329 | 339 | $cfg = []; |
@@ -354,6 +364,9 @@ discard block |
||
354 | 364 | return static::$cfg['global'][$key]; |
355 | 365 | } |
356 | 366 | |
367 | + /** |
|
368 | + * @param string $key |
|
369 | + */ |
|
357 | 370 | public static function configExists($key, $group = null) |
358 | 371 | { |
359 | 372 | if (!isset($group)) { |
@@ -32,6 +32,9 @@ |
||
32 | 32 | return MODULE_SECURITY_CHECK_EXTENDED_EXT_DIRECTORY_LISTING_HTTP_200; |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $url |
|
37 | + */ |
|
35 | 38 | function getHttpRequest($url) { |
36 | 39 | $server = parse_url($url); |
37 | 40 |
@@ -32,6 +32,9 @@ |
||
32 | 32 | return MODULE_SECURITY_CHECK_EXTENDED_EXT_DIRECTORY_LISTING_HTTP_200; |
33 | 33 | } |
34 | 34 | |
35 | + /** |
|
36 | + * @param string $url |
|
37 | + */ |
|
35 | 38 | function getHttpRequest($url) { |
36 | 39 | $server = parse_url($url); |
37 | 40 |
@@ -103,6 +103,10 @@ discard block |
||
103 | 103 | return $image; |
104 | 104 | } |
105 | 105 | |
106 | + /** |
|
107 | + * @param string $name |
|
108 | + * @param string $action |
|
109 | + */ |
|
106 | 110 | public static function form($name, $action, $method = 'post', $parameters = '', array $flags = []) |
107 | 111 | { |
108 | 112 | if (!isset($flags['tokenize']) || !is_bool($flags['tokenize'])) { |
@@ -175,6 +179,9 @@ discard block |
||
175 | 179 | return static::inputField($name, null, $parameters, 'file', false); |
176 | 180 | } |
177 | 181 | |
182 | + /** |
|
183 | + * @param string $type |
|
184 | + */ |
|
178 | 185 | protected static function selectionField($name, $type, $value = '', $checked = false, $parameters = '') |
179 | 186 | { |
180 | 187 | $selection = '<input type="' . static::output($type) . '" name="' . static::output($name) . '"'; |
@@ -196,6 +203,9 @@ discard block |
||
196 | 203 | return $selection; |
197 | 204 | } |
198 | 205 | |
206 | + /** |
|
207 | + * @param string $name |
|
208 | + */ |
|
199 | 209 | public static function checkboxField($name, $value = '', $checked = false, $parameters = '') |
200 | 210 | { |
201 | 211 | return static::selectionField($name, 'checkbox', $value, $checked, $parameters); |
@@ -206,6 +216,11 @@ discard block |
||
206 | 216 | return static::selectionField($name, 'radio', $value, $checked, $parameters); |
207 | 217 | } |
208 | 218 | |
219 | + /** |
|
220 | + * @param string $name |
|
221 | + * @param integer $width |
|
222 | + * @param integer $height |
|
223 | + */ |
|
209 | 224 | public static function textareaField($name, $width, $height, $text = '', $parameters = '', $reinsert_value = true, $class = 'form-control') |
210 | 225 | { |
211 | 226 | $field = '<textarea name="' . static::output($name) . '" cols="' . static::output($width) . '" rows="' . static::output($height) . '"'; |
@@ -325,6 +340,11 @@ discard block |
||
325 | 340 | return $field; |
326 | 341 | } |
327 | 342 | |
343 | + /** |
|
344 | + * @param string $title |
|
345 | + * @param string $icon |
|
346 | + * @param string $link |
|
347 | + */ |
|
328 | 348 | public static function button($title = null, $icon = null, $link = null, $params = null, $class = null) |
329 | 349 | { |
330 | 350 | $types = ['submit', 'button', 'reset']; |
@@ -121,6 +121,9 @@ discard block |
||
121 | 121 | } |
122 | 122 | } |
123 | 123 | |
124 | + /** |
|
125 | + * @param string $data |
|
126 | + */ |
|
124 | 127 | public function get($data = null, $language_code = null) |
125 | 128 | { |
126 | 129 | if (!isset($data)) { |
@@ -246,6 +249,9 @@ discard block |
||
246 | 249 | $this->injectDefinitions($defs, $scope); |
247 | 250 | } |
248 | 251 | |
252 | + /** |
|
253 | + * @param string $pathname |
|
254 | + */ |
|
249 | 255 | public function getDefinitions($group, $language_code, $pathname) |
250 | 256 | { |
251 | 257 | $defs = []; |
@@ -331,6 +337,9 @@ discard block |
||
331 | 337 | } |
332 | 338 | } |
333 | 339 | |
340 | + /** |
|
341 | + * @param boolean $flag |
|
342 | + */ |
|
334 | 343 | public function setUseCache($flag) |
335 | 344 | { |
336 | 345 | $this->use_cache = ($flag === true); |
@@ -50,6 +50,9 @@ discard block |
||
50 | 50 | return false; |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @param integer $expire |
|
55 | + */ |
|
53 | 56 | public function exists($expire = null) |
54 | 57 | { |
55 | 58 | $filename = static::$path . $this->key . '.cache'; |
@@ -139,6 +142,9 @@ discard block |
||
139 | 142 | return static::$path; |
140 | 143 | } |
141 | 144 | |
145 | + /** |
|
146 | + * @param string $key |
|
147 | + */ |
|
142 | 148 | public static function clear($key) |
143 | 149 | { |
144 | 150 | if (!static::hasSafeName($key)) { |