@@ -196,6 +196,9 @@ |
||
| 196 | 196 | return self::__OK__; |
| 197 | 197 | } |
| 198 | 198 | |
| 199 | + /** |
|
| 200 | + * @param integer $entry_id |
|
| 201 | + */ |
|
| 199 | 202 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
| 200 | 203 | { |
| 201 | 204 | $status = self::__OK__; |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | * @param string $message |
| 133 | 133 | * @throws SMTPException |
| 134 | 134 | * @throws Exception |
| 135 | - * @return boolean |
|
| 135 | + * @return boolean|null |
|
| 136 | 136 | */ |
| 137 | 137 | public function sendMail($from, $to, $subject, $message) |
| 138 | 138 | { |
@@ -395,7 +395,7 @@ discard block |
||
| 395 | 395 | * |
| 396 | 396 | * @param string $request |
| 397 | 397 | * @throws SMTPException |
| 398 | - * @return boolean|integer number of characters written. |
|
| 398 | + * @return integer number of characters written. |
|
| 399 | 399 | */ |
| 400 | 400 | protected function _send($request) |
| 401 | 401 | { |
@@ -122,6 +122,9 @@ discard block |
||
| 122 | 122 | return true; |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | + /** |
|
| 126 | + * @param string $file |
|
| 127 | + */ |
|
| 125 | 128 | public static function getMetaInfo($file, $type) |
| 126 | 129 | { |
| 127 | 130 | $meta = array(); |
@@ -286,6 +289,9 @@ discard block |
||
| 286 | 289 | } |
| 287 | 290 | } |
| 288 | 291 | |
| 292 | + /** |
|
| 293 | + * @param string $file |
|
| 294 | + */ |
|
| 289 | 295 | public function validateFilename($file, &$message) |
| 290 | 296 | { |
| 291 | 297 | if ($this->get('validator') != null) { |
@@ -401,6 +407,9 @@ discard block |
||
| 401 | 407 | return $this->validateFilename($data['name'], $message); |
| 402 | 408 | } |
| 403 | 409 | |
| 410 | + /** |
|
| 411 | + * @param integer $entry_id |
|
| 412 | + */ |
|
| 404 | 413 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
| 405 | 414 | { |
| 406 | 415 | $status = self::__OK__; |
@@ -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 |