Quiz
4.4 Validators
Fragen in diesem 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
Informationen
- Beschreibung
- Der Nutzer hat seine Fachbereichs-Information gelöscht. Quiz am 4.4 Validators, erstellt von Gelöschter Nutzer am 27/04/2022.
- Autor
- Gelöschter Nutzer
- Sprache
- English
- Aufrufe
- 18
- Verlauf
- Erstellt am 27 Apr 2022 · aktualisiert am 27 Apr 2022
- Schlagwörter
- Bewertung
- Noch keine Bewertungen Bewerte dieses Quiz