@@ -452,7 +452,7 @@ |
||
452 | 452 | * |
453 | 453 | * @param string $name |
454 | 454 | * Name of the template |
455 | - * @return mixed |
|
455 | + * @return string|false |
|
456 | 456 | * String, which is the path to the template if the template is found, |
457 | 457 | * false otherwise |
458 | 458 | */ |
@@ -293,7 +293,7 @@ |
||
293 | 293 | * function. |
294 | 294 | * |
295 | 295 | * @see toolkit.Field#commit() |
296 | - * @return boolean |
|
296 | + * @return boolean|null |
|
297 | 297 | * true if the commit was successful, false otherwise. |
298 | 298 | */ |
299 | 299 | public function commit() |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * An associative of settings for a section with the key being |
31 | 31 | * a column name from `tbl_sections` |
32 | 32 | * @throws DatabaseException |
33 | - * @return integer |
|
33 | + * @return false|string |
|
34 | 34 | * The newly created Section's ID |
35 | 35 | */ |
36 | 36 | public static function add(array $settings) |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | * |
195 | 195 | * @param string $handle |
196 | 196 | * The handle of the section |
197 | - * @return integer |
|
197 | + * @return string |
|
198 | 198 | * The Section ID |
199 | 199 | */ |
200 | 200 | public static function fetchIDFromHandle($handle) |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | * @param integer $field_id |
283 | 283 | * the field ID of the linked section's linked field. |
284 | 284 | * @throws DatabaseException |
285 | - * @return boolean |
|
285 | + * @return PDOStatement |
|
286 | 286 | */ |
287 | 287 | public static function removeSectionAssociation($field_id) |
288 | 288 | { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * @param string $message |
114 | 114 | * @throws SMTPException |
115 | 115 | * @throws Exception |
116 | - * @return boolean |
|
116 | + * @return boolean|null |
|
117 | 117 | */ |
118 | 118 | public function sendMail($from, $to, $message) |
119 | 119 | { |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | * |
310 | 310 | * @param string $request |
311 | 311 | * @throws SMTPException |
312 | - * @return boolean|integer number of characters written. |
|
312 | + * @return integer number of characters written. |
|
313 | 313 | */ |
314 | 314 | protected function _send($request) |
315 | 315 | { |
@@ -315,7 +315,7 @@ |
||
315 | 315 | /** |
316 | 316 | * Accessor for `$_value` |
317 | 317 | * |
318 | - * @return string|XMLElement |
|
318 | + * @return string |
|
319 | 319 | */ |
320 | 320 | public function getValue() |
321 | 321 | { |
@@ -60,6 +60,9 @@ |
||
60 | 60 | return $result; |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param integer $filter_type |
|
65 | + */ |
|
63 | 66 | public function __processNavigationTypeFilter($filter, $filter_type = Datasource::FILTER_OR) |
64 | 67 | { |
65 | 68 | $types = preg_split('/' . ($filter_type === Datasource::FILTER_AND ? '\+' : '(?<!\\\\),') . '\s*/', $filter, |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * the XML. |
56 | 56 | * |
57 | 57 | * @throws Exception |
58 | - * @return XMLElement|void |
|
58 | + * @return XMLElement |
|
59 | 59 | * If `$_REQUEST{'redirect']` is set, and the Event executed successfully, |
60 | 60 | * the user will be redirected to the given location. If `$_REQUEST['redirect']` |
61 | 61 | * is not set, or the Event encountered errors, an XMLElement of the Event |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * If this Event is editing an existing entry, that Entry ID will |
179 | 179 | * be passed to this function. |
180 | 180 | * @throws Exception |
181 | - * @return XMLElement |
|
181 | + * @return boolean |
|
182 | 182 | * The result of the Event |
183 | 183 | */ |
184 | 184 | public function __doit(array $fields = array(), XMLElement &$result, $position = null, $entry_id = null) |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | * @param XMLElement $result |
393 | 393 | * @param array $fields |
394 | 394 | * @param array $errors |
395 | - * @param object $post_values |
|
395 | + * @param XMLElement $post_values |
|
396 | 396 | * @throws Exception |
397 | 397 | * @return XMLElement |
398 | 398 | */ |
@@ -27,6 +27,9 @@ |
||
27 | 27 | Definition: |
28 | 28 | -------------------------------------------------------------------------*/ |
29 | 29 | |
30 | + /** |
|
31 | + * @param string $field |
|
32 | + */ |
|
30 | 33 | public function set($field, $value) |
31 | 34 | { |
32 | 35 | if ($field === 'author_types' && !is_array($value)) { |
@@ -480,6 +480,9 @@ discard block |
||
480 | 480 | ); |
481 | 481 | } |
482 | 482 | |
483 | + /** |
|
484 | + * @param integer $entry_id |
|
485 | + */ |
|
483 | 486 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
484 | 487 | { |
485 | 488 | $status = self::__OK__; |
@@ -569,6 +572,10 @@ discard block |
||
569 | 572 | ); |
570 | 573 | } |
571 | 574 | |
575 | + /** |
|
576 | + * @param string $joins |
|
577 | + * @param string $where |
|
578 | + */ |
|
572 | 579 | public function buildDSRetrievalSQL($data, &$joins, &$where, $andOperation = false) |
573 | 580 | { |
574 | 581 | if (self::isFilterRegex($data[0])) { |