@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | * @param array $fields |
| 24 | 24 | * Associative array of field names => values for the Page |
| 25 | 25 | * @throws DatabaseException |
| 26 | - * @return integer|boolean |
|
| 26 | + * @return false|string |
|
| 27 | 27 | * Returns the Page ID of the created Page on success, false otherwise. |
| 28 | 28 | */ |
| 29 | 29 | public static function add(array $fields) |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | * |
| 66 | 66 | * @param string $handle |
| 67 | 67 | * The handle of the page |
| 68 | - * @return integer |
|
| 68 | + * @return string |
|
| 69 | 69 | * The Page title |
| 70 | 70 | */ |
| 71 | 71 | public static function fetchTitleFromHandle($handle) |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | * |
| 85 | 85 | * @param string $handle |
| 86 | 86 | * The handle of the page |
| 87 | - * @return integer |
|
| 87 | + * @return string |
|
| 88 | 88 | * The Page ID |
| 89 | 89 | */ |
| 90 | 90 | public static function fetchIDFromHandle($handle) |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | * |
| 479 | 479 | * @param string $name |
| 480 | 480 | * Name of the template |
| 481 | - * @return mixed |
|
| 481 | + * @return string|false |
|
| 482 | 482 | * String, which is the path to the template if the template is found, |
| 483 | 483 | * false otherwise |
| 484 | 484 | */ |
@@ -610,10 +610,10 @@ discard block |
||
| 610 | 610 | * |
| 611 | 611 | * @param integer|array $page_id |
| 612 | 612 | * The ID of the Page, or an array of ID's |
| 613 | - * @param array $select (optional) |
|
| 613 | + * @param string[] $select (optional) |
|
| 614 | 614 | * Accepts an array of columns to return from `tbl_pages`. If omitted, |
| 615 | 615 | * all columns from the table will be returned. |
| 616 | - * @return array|null |
|
| 616 | + * @return integer|null |
|
| 617 | 617 | * An associative array of Page information with the key being the column |
| 618 | 618 | * name from `tbl_pages` and the value being the data. If multiple Pages |
| 619 | 619 | * are found, an array of Pages will be returned. If no Pages are found |
@@ -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)) { |