@@ -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 | { |
@@ -293,7 +293,7 @@ |
||
293 | 293 | * function. |
294 | 294 | * |
295 | 295 | * @see toolkit.Field#commit() |
296 | - * @return boolean |
|
296 | + * @return boolean|null |
|
297 | 297 | * true if the commit was successful, false otherwise. |
298 | 298 | */ |
299 | 299 | public function commit() |
@@ -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__; |
@@ -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__; |