4.4 Validators

Beschreibung

TYPO3 CD 2020 (zweite Auflage) Quiz am 4.4 Validators, erstellt von Pascal Bartl am 09/04/2021.
Pascal Bartl
Quiz von Pascal Bartl, aktualisiert more than 1 year ago
Pascal Bartl
Erstellt von Pascal Bartl vor etwa 3 Jahre
0
0

Zusammenfassung der Ressource

Frage 1

Frage
Which of the following validation annotations are valid in principle? (3)
Antworten
  • @validate NotEmpty, Word(max=3)
  • @validate $blog NotEmpty, Word(max=3)
  • @validate $blog NotEmpty, \Vendor\MyExtension\Validation\Validator\WordValidator(ma\ x=3)
  • @validate $blog NotEmpty, Vendor.MyExtension:Word(max=3)
  • @validate $blog NotEmpty, Vendor.MyExtension:WordValidator(max=3)

Frage 2

Frage
From which validator class are all default validators derived? (1)
Antworten
  • Class ObjectValidator
  • Class ValidationValidator
  • Class DefaultValidator
  • Class AbstractValidator
  • Class ValidationInterface

Frage 3

Frage
Given 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 = '';
Antworten
  • The method validate() of the validator class hast to accept the argument minimum in the method signatur
  • The TypoScript configuration persistence.validation.options.minimum = true must be set
  • The property $supportedOptions is required in the ExampleValidator class
  • A method named Minimum() is required in the ExampleValidator class
  • The validator class file should be stored as Classes/Validation/Validator/ExampleValidator.php
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Zeitformen Französisch
AntonS
IELTS- Vokabeln
anna.grillborzer0656
Ich liebe dich in 25 Sprachen
deutschlernerblog.de
U1 Buchproduktion
Lena A.
Themen der Vektorrechnung II
Paula Raithel
GESKO A PR WS 2018/19
Caroline Hannah
Vetie Viro 2012
Alena Gesing
Vetie Tierseuchen 2018
Schmolli Schmoll
Vetie Chirurgie 2020
Henriette Greiner
Vetie - Geflügelkrankheitn 2014
steff Müller
Vetie Milchhygiene 2018
Theresa Blaue