GoConqr has a new look! Let us know what you think.

Quiz

4.4 Validators

Deleted user 3 questions Updated 27 Apr 2022

Take the quiz

Questions in this 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

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
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?