Test
4.4 Validators
Preguntas del test (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
Información
- Descripción
- El usuario ha eliminado su información de asignaturas Test sobre 4.4 Validators, creado por Usuario eliminado el 27/04/2022.
- Autor
- Usuario eliminado
- Idioma
- English
- Visitas
- 18
- Historial
- Creado el 27 abr 2022 · actualizado el 27 abr 2022
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test