@@ -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__; |
@@ -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() |
@@ -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__; |
@@ -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 | { |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | * |
| 101 | 101 | * @param string $name |
| 102 | 102 | * The gateway to look for |
| 103 | - * @return string|boolean |
|
| 103 | + * @return string |
|
| 104 | 104 | * @todo fix return if gateway does not exist. |
| 105 | 105 | */ |
| 106 | 106 | public static function __getDriverPath($name) |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | * Does not check if the gateway exists. |
| 114 | 114 | * |
| 115 | 115 | * @param string $filename |
| 116 | - * @return string|boolean |
|
| 116 | + * @return string |
|
| 117 | 117 | */ |
| 118 | 118 | public static function __getHandleFromFilename($filename) |
| 119 | 119 | { |
@@ -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__; |