Quiz
4.4 Validators
Questions in this quiz (3)
1Which of the following validation annotations are valid in principle? (3)
- A@validate NotEmpty, Word(max=3)
- B@validate $blog NotEmpty, Word(max=3)
- C@validate $blog NotEmpty, \Vendor\MyExtension\Validation\Validator\WordValidator(ma\
x=3) - D@validate $blog NotEmpty, Vendor.MyExtension:Word(max=3)
- E@validate $blog NotEmpty, Vendor.MyExtension:WordValidator(max=3)
2From which validator class are all default validators derived? (1)
- AClass ObjectValidator
- BClass ValidationValidator
- CClass DefaultValidator
- DClass AbstractValidator
- EClass ValidationInterface
3Given the following code in a domain model, which statements about the validator are correct? (2)
use TYPO3\CMS\Extbase\Annotation\Validate;
/**
* Title
*
* @var string
* @Validate("Vendor\MyExtension\Validation\Validator\ExampleValidator", options={"m\
inimum": 10})
*/
protected $title = '';- AThe method validate() of the validator class hast to accept the argument minimum in the
method signatur - BThe TypoScript configuration persistence.validation.options.minimum = true must be set
- CThe property $supportedOptions is required in the ExampleValidator class
- DA method named Minimum() is required in the ExampleValidator class
- EThe validator class file should be stored as Classes/Validation/Validator/ExampleValidator.php
- AThe method validate() of the validator class hast to accept the argument minimum in the
Information
- Description
- User has deleted their subject information Quiz on 4.4 Validators, created by Deleted user on 27/04/2022.
- Author
- Deleted user
- Language
- English
- Views
- 18
- History
- Created on 27 Apr 2022 · updated on 27 Apr 2022
- Tags
- Rating
- No ratings yet Rate this quiz