@@ -287,7 +287,7 @@ |
||
287 | 287 | * it is also possible to override the default filters on the resulting string. |
288 | 288 | * |
289 | 289 | * @link http://php.net/manual/en/filter.filters.php |
290 | - * @param array $exclude |
|
290 | + * @param string[] $exclude |
|
291 | 291 | * A simple array with the keys that should be omitted in the resulting |
292 | 292 | * query string. |
293 | 293 | * @param integer $filters |
@@ -537,7 +537,7 @@ |
||
537 | 537 | * @since Symphony 2.3 |
538 | 538 | * @param string $string |
539 | 539 | * The string that should be cleaned-up |
540 | - * @return mixed |
|
540 | + * @return string |
|
541 | 541 | * Returns the transliterated string |
542 | 542 | */ |
543 | 543 | private static function applyTransliterations($string) |
@@ -22,6 +22,7 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * Constructor takes a message and an associative array to set to |
24 | 24 | * `$_error`. The message is passed to the default Exception constructor |
25 | + * @param string $message |
|
25 | 26 | */ |
26 | 27 | public function __construct($message, array $error = null) |
27 | 28 | { |
@@ -310,7 +311,7 @@ discard block |
||
310 | 311 | * Called when the script has finished executing, this closes the MySQL |
311 | 312 | * connection |
312 | 313 | * |
313 | - * @return boolean |
|
314 | + * @return boolean|null |
|
314 | 315 | */ |
315 | 316 | public function close() |
316 | 317 | { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * |
44 | 44 | * @param string $handle |
45 | 45 | * The handle of the page |
46 | - * @return integer |
|
46 | + * @return string|null |
|
47 | 47 | * The Page title |
48 | 48 | */ |
49 | 49 | public static function fetchTitleFromHandle($handle) |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @param string $handle |
64 | 64 | * The handle of the page |
65 | - * @return integer |
|
65 | + * @return string|null |
|
66 | 66 | * The Page ID |
67 | 67 | */ |
68 | 68 | public static function fetchIDFromHandle($handle) |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * |
118 | 118 | * @param string $name |
119 | 119 | * Name of the template |
120 | - * @return mixed |
|
120 | + * @return string|false |
|
121 | 121 | * String, which is the path to the template if the template is found, |
122 | 122 | * false otherwise |
123 | 123 | */ |
@@ -513,10 +513,10 @@ discard block |
||
513 | 513 | * |
514 | 514 | * @param integer|array $page_id |
515 | 515 | * The ID of the Page, or an array of ID's |
516 | - * @param array $select (optional) |
|
516 | + * @param string[] $select (optional) |
|
517 | 517 | * Accepts an array of columns to return from `tbl_pages`. If omitted, |
518 | 518 | * all columns from the table will be returned. |
519 | - * @return array|null |
|
519 | + * @return integer|null |
|
520 | 520 | * An associative array of Page information with the key being the column |
521 | 521 | * name from `tbl_pages` and the value being the data. If multiple Pages |
522 | 522 | * are found, an array of Pages will be returned. If no Pages are found |
@@ -418,7 +418,7 @@ |
||
418 | 418 | * |
419 | 419 | * @param string $name |
420 | 420 | * Name of the template |
421 | - * @return mixed |
|
421 | + * @return string|false |
|
422 | 422 | * String, which is the path to the template if the template is found, |
423 | 423 | * false otherwise |
424 | 424 | */ |
@@ -289,7 +289,7 @@ |
||
289 | 289 | * function. |
290 | 290 | * |
291 | 291 | * @see toolkit.Field#commit() |
292 | - * @return boolean |
|
292 | + * @return boolean|null |
|
293 | 293 | * true if the commit was successful, false otherwise. |
294 | 294 | */ |
295 | 295 | public function commit() |
@@ -192,7 +192,7 @@ |
||
192 | 192 | * |
193 | 193 | * @param string $handle |
194 | 194 | * The handle of the section |
195 | - * @return integer |
|
195 | + * @return string|null |
|
196 | 196 | * The Section ID |
197 | 197 | */ |
198 | 198 | public static function fetchIDFromHandle($handle) |
@@ -140,7 +140,7 @@ |
||
140 | 140 | /** |
141 | 141 | * Accessor for `$_value` |
142 | 142 | * |
143 | - * @return string|XMLElement |
|
143 | + * @return string |
|
144 | 144 | */ |
145 | 145 | public function getValue() |
146 | 146 | { |
@@ -20,6 +20,9 @@ |
||
20 | 20 | return (is_array($parent_paths) && !empty($parent_paths) ? " AND p.`path` IN ('".implode("', '", $parent_paths)."')" : null); |
21 | 21 | } |
22 | 22 | |
23 | + /** |
|
24 | + * @param integer $filter_type |
|
25 | + */ |
|
23 | 26 | public function __processNavigationTypeFilter($filter, $filter_type = Datasource::FILTER_OR) |
24 | 27 | { |
25 | 28 | $types = preg_split('/'.($filter_type == Datasource::FILTER_AND ? '\+' : '(?<!\\\\),').'\s*/', $filter, -1, PREG_SPLIT_NO_EMPTY); |