@@ -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)) { |
@@ -480,6 +480,9 @@ discard block |
||
| 480 | 480 | ); |
| 481 | 481 | } |
| 482 | 482 | |
| 483 | + /** |
|
| 484 | + * @param integer $entry_id |
|
| 485 | + */ |
|
| 483 | 486 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
| 484 | 487 | { |
| 485 | 488 | $status = self::__OK__; |
@@ -569,6 +572,10 @@ discard block |
||
| 569 | 572 | ); |
| 570 | 573 | } |
| 571 | 574 | |
| 575 | + /** |
|
| 576 | + * @param string $joins |
|
| 577 | + * @param string $where |
|
| 578 | + */ |
|
| 572 | 579 | public function buildDSRetrievalSQL($data, &$joins, &$where, $andOperation = false) |
| 573 | 580 | { |
| 574 | 581 | if (self::isFilterRegex($data[0])) { |
@@ -169,6 +169,9 @@ discard block |
||
| 169 | 169 | Publish: |
| 170 | 170 | -------------------------------------------------------------------------*/ |
| 171 | 171 | |
| 172 | + /** |
|
| 173 | + * @param string $data |
|
| 174 | + */ |
|
| 172 | 175 | private function __applyValidationRules($data) |
| 173 | 176 | { |
| 174 | 177 | $rule = $this->get('validator'); |
@@ -205,6 +208,9 @@ discard block |
||
| 205 | 208 | ); |
| 206 | 209 | } |
| 207 | 210 | |
| 211 | + /** |
|
| 212 | + * @param string $value |
|
| 213 | + */ |
|
| 208 | 214 | private function __replaceAmpersands($value) |
| 209 | 215 | { |
| 210 | 216 | return preg_replace('/&(?!(#[0-9]+|#x[0-9a-f]+|amp|lt|gt);)/i', '&', trim($value)); |
@@ -240,6 +246,9 @@ discard block |
||
| 240 | 246 | ); |
| 241 | 247 | } |
| 242 | 248 | |
| 249 | + /** |
|
| 250 | + * @param integer $entry_id |
|
| 251 | + */ |
|
| 243 | 252 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
| 244 | 253 | { |
| 245 | 254 | $status = self::__OK__; |
@@ -25,6 +25,10 @@ discard block |
||
| 25 | 25 | Definition: |
| 26 | 26 | -------------------------------------------------------------------------*/ |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string $field |
|
| 30 | + * @param string $value |
|
| 31 | + */ |
|
| 28 | 32 | public function set($field, $value) |
| 29 | 33 | { |
| 30 | 34 | if ($field === 'pre_populate_source' && !is_array($value)) { |
@@ -584,6 +588,9 @@ discard block |
||
| 584 | 588 | ); |
| 585 | 589 | } |
| 586 | 590 | |
| 591 | + /** |
|
| 592 | + * @param integer $entry_id |
|
| 593 | + */ |
|
| 587 | 594 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
| 588 | 595 | { |
| 589 | 596 | $status = self::__OK__; |
@@ -289,6 +289,9 @@ |
||
| 289 | 289 | ); |
| 290 | 290 | } |
| 291 | 291 | |
| 292 | + /** |
|
| 293 | + * @param integer $entry_id |
|
| 294 | + */ |
|
| 292 | 295 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
| 293 | 296 | { |
| 294 | 297 | $status = self::__OK__; |
@@ -374,6 +374,9 @@ discard block |
||
| 374 | 374 | return $this->validateFilename($data['name'], $message); |
| 375 | 375 | } |
| 376 | 376 | |
| 377 | + /** |
|
| 378 | + * @param string $file |
|
| 379 | + */ |
|
| 377 | 380 | public function validateFilename($file, &$message) |
| 378 | 381 | { |
| 379 | 382 | if ($this->get('validator') !== null) { |
@@ -506,6 +509,9 @@ discard block |
||
| 506 | 509 | Import: |
| 507 | 510 | -------------------------------------------------------------------------*/ |
| 508 | 511 | |
| 512 | + /** |
|
| 513 | + * @param integer $entry_id |
|
| 514 | + */ |
|
| 509 | 515 | public function processRawFieldData($data, &$status, &$message = null, $simulate = false, $entry_id = null) |
| 510 | 516 | { |
| 511 | 517 | $status = self::__OK__; |
@@ -666,6 +672,9 @@ discard block |
||
| 666 | 672 | ); |
| 667 | 673 | } |
| 668 | 674 | |
| 675 | + /** |
|
| 676 | + * @param string $file |
|
| 677 | + */ |
|
| 669 | 678 | public static function getMetaInfo($file, $type) |
| 670 | 679 | { |
| 671 | 680 | $meta = array(); |
@@ -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 | */ |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | * This methods sets the `GenericExceptionHandler::$enabled` value to `true`. |
| 305 | 305 | * |
| 306 | 306 | * @see core.SymphonyErrorPage |
| 307 | - * @param string|XMLElement $message |
|
| 307 | + * @param string $message |
|
| 308 | 308 | * A description for this error, which can be provided as a string |
| 309 | 309 | * or as an XMLElement. |
| 310 | 310 | * @param string $heading |
@@ -690,7 +690,7 @@ discard block |
||
| 690 | 690 | * Accessor for the current `$Flash` instance. |
| 691 | 691 | * |
| 692 | 692 | * @since 3.0.0 |
| 693 | - * @return SessionFlash |
|
| 693 | + * @return Session |
|
| 694 | 694 | */ |
| 695 | 695 | public static function Flash() |
| 696 | 696 | { |
@@ -801,7 +801,7 @@ discard block |
||
| 801 | 801 | * Accessor for `self::$exception`. |
| 802 | 802 | * |
| 803 | 803 | * @since Symphony 2.3.2 |
| 804 | - * @return Exception|null |
|
| 804 | + * @return Exception |
|
| 805 | 805 | */ |
| 806 | 806 | public static function getException() |
| 807 | 807 | { |