GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

4.4 Validators

Gelöschter Nutzer 3 Fragen Aktualisiert am 27 Apr 2022

Quiz starten

Fragen in diesem Quiz (3)

  1. 1Which of the following validation annotations are valid in principle? (3)
    1. A@validate NotEmpty, Word(max=3)
    2. B@validate $blog NotEmpty, Word(max=3)
    3. C@validate $blog NotEmpty, \Vendor\MyExtension\Validation\Validator\WordValidator(ma\
      x=3)
    4. D@validate $blog NotEmpty, Vendor.MyExtension:Word(max=3)
    5. E@validate $blog NotEmpty, Vendor.MyExtension:WordValidator(max=3)
  2. 2From which validator class are all default validators derived? (1)
    1. AClass ObjectValidator
    2. BClass ValidationValidator
    3. CClass DefaultValidator
    4. DClass AbstractValidator
    5. EClass ValidationInterface
  3. 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 = '';
    1. AThe method validate() of the validator class hast to accept the argument minimum in the
      method signatur
    2. BThe TypoScript configuration persistence.validation.options.minimum = true must be set
    3. CThe property $supportedOptions is required in the ExampleValidator class
    4. DA method named Minimum() is required in the ExampleValidator class
    5. EThe validator class file should be stored as Classes/Validation/Validator/ExampleValidator.php

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
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck