@@ -350,7 +350,7 @@ discard block |
||
| 350 | 350 | * Accessor for the current `$Flash` instance. |
| 351 | 351 | * |
| 352 | 352 | * @since 3.0.0 |
| 353 | - * @return SessionFlash |
|
| 353 | + * @return Session |
|
| 354 | 354 | */ |
| 355 | 355 | public static function Flash() |
| 356 | 356 | { |
@@ -732,7 +732,7 @@ discard block |
||
| 732 | 732 | * This methods sets the `GenericExceptionHandler::$enabled` value to `true`. |
| 733 | 733 | * |
| 734 | 734 | * @see core.SymphonyErrorPage |
| 735 | - * @param string|XMLElement $message |
|
| 735 | + * @param string $message |
|
| 736 | 736 | * A description for this error, which can be provided as a string |
| 737 | 737 | * or as an XMLElement. |
| 738 | 738 | * @param string $heading |
@@ -771,7 +771,7 @@ discard block |
||
| 771 | 771 | * Accessor for `self::$exception`. |
| 772 | 772 | * |
| 773 | 773 | * @since Symphony 2.3.2 |
| 774 | - * @return Exception|null |
|
| 774 | + * @return Exception |
|
| 775 | 775 | */ |
| 776 | 776 | public static function getException() |
| 777 | 777 | { |
@@ -990,7 +990,7 @@ discard block |
||
| 990 | 990 | * is not found, `false` is returned |
| 991 | 991 | * |
| 992 | 992 | * @since Symphony 2.3 |
| 993 | - * @return mixed |
|
| 993 | + * @return string|false |
|
| 994 | 994 | * String, which is the path to the template if the template is found, |
| 995 | 995 | * false otherwise |
| 996 | 996 | */ |
@@ -590,7 +590,7 @@ discard block |
||
| 590 | 590 | * |
| 591 | 591 | * @param integer $entry_id |
| 592 | 592 | * The ID of the Entry to return it's section |
| 593 | - * @return integer |
|
| 593 | + * @return string |
|
| 594 | 594 | * The Section ID for this Entry's section |
| 595 | 595 | */ |
| 596 | 596 | public static function fetchEntrySectionID($entry_id) |
@@ -611,7 +611,7 @@ discard block |
||
| 611 | 611 | * Any custom JOIN's |
| 612 | 612 | * @param boolean $group |
| 613 | 613 | * Whether the entries need to be grouped by Entry ID or not |
| 614 | - * @return integer |
|
| 614 | + * @return false|string |
|
| 615 | 615 | */ |
| 616 | 616 | public static function fetchCount($section_id = null, $where = null, $joins = null, $group = false) |
| 617 | 617 | { |
@@ -670,7 +670,7 @@ discard block |
||
| 670 | 670 | * by providing an array of field names. Defaults to null, which will load data |
| 671 | 671 | * from all fields in a section. |
| 672 | 672 | * @throws Exception |
| 673 | - * @return array |
|
| 673 | + * @return integer|null |
|
| 674 | 674 | * Either an array of Entry objects, or an associative array containing |
| 675 | 675 | * the total entries, the start position, the entries per page and the |
| 676 | 676 | * Entry objects |
@@ -71,6 +71,9 @@ discard block |
||
| 71 | 71 | Utilities: |
| 72 | 72 | -------------------------------------------------------------------------*/ |
| 73 | 73 | |
| 74 | + /** |
|
| 75 | + * @param string $data |
|
| 76 | + */ |
|
| 74 | 77 | private function __applyValidationRules($data) |
| 75 | 78 | { |
| 76 | 79 | $rule = $this->get('validator'); |
@@ -78,6 +81,9 @@ discard block |
||
| 78 | 81 | return ($rule ? General::validateString($data, $rule) : true); |
| 79 | 82 | } |
| 80 | 83 | |
| 84 | + /** |
|
| 85 | + * @param string $value |
|
| 86 | + */ |
|
| 81 | 87 | private function __replaceAmpersands($value) |
| 82 | 88 | { |
| 83 | 89 | return preg_replace('/&(?!(#[0-9]+|#x[0-9a-f]+|amp|lt|gt);)/i', '&', trim($value)); |
@@ -171,6 +177,9 @@ discard block |
||
| 171 | 177 | return self::__OK__; |
| 172 | 178 | } |
| 173 | 179 | |
| 180 | + /** |
|
| 181 | + * @param integer $entry_id |
|
| 182 | + */ |
|
| 174 | 183 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
| 175 | 184 | { |
| 176 | 185 | $status = self::__OK__; |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * @param array $fields |
| 28 | 28 | * Associative array of field names => values for the Author object |
| 29 | 29 | * @throws DatabaseException |
| 30 | - * @return integer|boolean |
|
| 30 | + * @return false|string |
|
| 31 | 31 | * Returns an Author ID of the created Author on success, false otherwise. |
| 32 | 32 | */ |
| 33 | 33 | public static function add(array $fields) |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * This array does need to contain every value for the author object, it |
| 53 | 53 | * can just be the changed values. |
| 54 | 54 | * @throws DatabaseException |
| 55 | - * @return boolean |
|
| 55 | + * @return PDOStatement |
|
| 56 | 56 | */ |
| 57 | 57 | public static function edit($id, array $fields) |
| 58 | 58 | { |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | * @param integer $id |
| 66 | 66 | * The ID of the Author that should be deleted |
| 67 | 67 | * @throws DatabaseException |
| 68 | - * @return boolean |
|
| 68 | + * @return PDOStatement |
|
| 69 | 69 | */ |
| 70 | 70 | public static function delete($id) |
| 71 | 71 | { |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | * |
| 87 | 87 | * @see toolkit.MySQL#getInsertID() |
| 88 | 88 | * @throws DatabaseException |
| 89 | - * @return integer |
|
| 89 | + * @return null|string |
|
| 90 | 90 | */ |
| 91 | 91 | public function assignEntryId() |
| 92 | 92 | { |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * |
| 58 | 58 | * @param string $type |
| 59 | 59 | * The field handle, that is, `field.{$handle}.php` |
| 60 | - * @return string|boolean |
|
| 60 | + * @return string|false |
|
| 61 | 61 | */ |
| 62 | 62 | public static function __getClassPath($type) |
| 63 | 63 | { |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * @throws DatabaseException |
| 112 | 112 | * @param array $fields |
| 113 | 113 | * Associative array of field names => values for the Field object |
| 114 | - * @return integer|boolean |
|
| 114 | + * @return false|string |
|
| 115 | 115 | * Returns a Field ID of the created Field on success, false otherwise. |
| 116 | 116 | */ |
| 117 | 117 | public static function add(array $fields) |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | * @param array $settings |
| 139 | 139 | * An associative array of settings, where the key is the column name |
| 140 | 140 | * and the value is the value. |
| 141 | - * @return boolean |
|
| 141 | + * @return PDOStatement |
|
| 142 | 142 | * True on success, false on failure |
| 143 | 143 | */ |
| 144 | 144 | public static function saveSettings($field_id, $settings) |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * @param array $fields |
| 23 | 23 | * Associative array of field names => values for the Page |
| 24 | 24 | * @throws DatabaseException |
| 25 | - * @return integer|boolean |
|
| 25 | + * @return false|string |
|
| 26 | 26 | * Returns the Page ID of the created Page on success, false otherwise. |
| 27 | 27 | */ |
| 28 | 28 | public static function add(array $fields) |
@@ -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 |
|
| 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 |
|
| 66 | 66 | * The Page ID |
| 67 | 67 | */ |
| 68 | 68 | public static function fetchIDFromHandle($handle) |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * |
| 117 | 117 | * @param string $name |
| 118 | 118 | * Name of the template |
| 119 | - * @return mixed |
|
| 119 | + * @return string|false |
|
| 120 | 120 | * String, which is the path to the template if the template is found, |
| 121 | 121 | * false otherwise |
| 122 | 122 | */ |
@@ -512,10 +512,10 @@ discard block |
||
| 512 | 512 | * |
| 513 | 513 | * @param integer|array $page_id |
| 514 | 514 | * The ID of the Page, or an array of ID's |
| 515 | - * @param array $select (optional) |
|
| 515 | + * @param string[] $select (optional) |
|
| 516 | 516 | * Accepts an array of columns to return from `tbl_pages`. If omitted, |
| 517 | 517 | * all columns from the table will be returned. |
| 518 | - * @return array|null |
|
| 518 | + * @return integer|null |
|
| 519 | 519 | * An associative array of Page information with the key being the column |
| 520 | 520 | * name from `tbl_pages` and the value being the data. If multiple Pages |
| 521 | 521 | * are found, an array of Pages will be returned. If no Pages are found |
@@ -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) |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | * |
| 185 | 185 | * @param string $handle |
| 186 | 186 | * The handle of the section |
| 187 | - * @return integer |
|
| 187 | + * @return string |
|
| 188 | 188 | * The Section ID |
| 189 | 189 | */ |
| 190 | 190 | public static function fetchIDFromHandle($handle) |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | * @param integer $field_id |
| 278 | 278 | * the field ID of the linked section's linked field. |
| 279 | 279 | * @throws DatabaseException |
| 280 | - * @return boolean |
|
| 280 | + * @return PDOStatement |
|
| 281 | 281 | */ |
| 282 | 282 | public static function removeSectionAssociation($field_id) |
| 283 | 283 | { |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | * Overrides the default `initialiseLog()` method and writes |
| 73 | 73 | * logs to manifest/logs/install |
| 74 | 74 | * |
| 75 | - * @param null $filename |
|
| 75 | + * @param string $filename |
|
| 76 | 76 | * @return boolean|void |
| 77 | 77 | * @throws Exception |
| 78 | 78 | */ |