@@ -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); |
@@ -98,6 +98,9 @@ |
||
98 | 98 | Utilities: |
99 | 99 | -------------------------------------------------------------------------*/ |
100 | 100 | |
101 | + /** |
|
102 | + * @param string $field |
|
103 | + */ |
|
101 | 104 | public function set($field, $value) |
102 | 105 | { |
103 | 106 | if ($field === 'author_types' && !is_array($value)) { |
@@ -519,6 +519,9 @@ discard block |
||
519 | 519 | return self::__OK__; |
520 | 520 | } |
521 | 521 | |
522 | + /** |
|
523 | + * @param integer $entry_id |
|
524 | + */ |
|
522 | 525 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
523 | 526 | { |
524 | 527 | $status = self::__OK__; |
@@ -696,6 +699,10 @@ discard block |
||
696 | 699 | Filtering: |
697 | 700 | -------------------------------------------------------------------------*/ |
698 | 701 | |
702 | + /** |
|
703 | + * @param string $joins |
|
704 | + * @param string $where |
|
705 | + */ |
|
699 | 706 | public function buildDSRetrievalSQL($data, &$joins, &$where, $andOperation = false) |
700 | 707 | { |
701 | 708 | if (self::isFilterRegex($data[0])) { |
@@ -78,6 +78,9 @@ discard block |
||
78 | 78 | return ($rule ? General::validateString($data, $rule) : true); |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param string $value |
|
83 | + */ |
|
81 | 84 | private function __replaceAmpersands($value) |
82 | 85 | { |
83 | 86 | return preg_replace('/&(?!(#[0-9]+|#x[0-9a-f]+|amp|lt|gt);)/i', '&', trim($value)); |
@@ -169,6 +172,9 @@ discard block |
||
169 | 172 | return self::__OK__; |
170 | 173 | } |
171 | 174 | |
175 | + /** |
|
176 | + * @param integer $entry_id |
|
177 | + */ |
|
172 | 178 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
173 | 179 | { |
174 | 180 | $status = self::__OK__; |