@@ -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__; |
@@ -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__; |
@@ -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() |
@@ -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 | */ |
@@ -22,6 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * Constructor takes a message and an associative array to set to |
| 24 | 24 | * `$_error`. The message is passed to the default Exception constructor |
| 25 | + * @param string $message |
|
| 25 | 26 | */ |
| 26 | 27 | public function __construct($message, array $error=NULL, Exception $ex = null) |
| 27 | 28 | { |
@@ -463,7 +464,7 @@ discard block |
||
| 463 | 464 | * Returns the last insert ID from the previous query. This is |
| 464 | 465 | * the value from an auto_increment field. |
| 465 | 466 | * |
| 466 | - * @return integer |
|
| 467 | + * @return string |
|
| 467 | 468 | * The last interested row's ID |
| 468 | 469 | */ |
| 469 | 470 | public function getInsertID() |
@@ -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__; |