‪TYPO3CMS  10.4
AbstractCompositeValidatorClass.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
20 
25 {
29  protected ‪$supportedOptions = [
30  'requiredOption' => [0, 'Some value', 'integer', true],
31  'demoOption' => [PHP_INT_MAX, 'Some value', 'integer'],
32  ];
33 
40  protected function ‪isValid($value)
41  {
42  // dummy
43  }
44 
53  public function ‪validate($value)
54  {
55  return new ‪Result();
56  }
57 }
‪TYPO3\CMS\Extbase\Error\Result
Definition: Result.php:24
‪TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\Fixture\AbstractCompositeValidatorClass\isValid
‪isValid($value)
Definition: AbstractCompositeValidatorClass.php:39
‪TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\Fixture\AbstractCompositeValidatorClass\$supportedOptions
‪array $supportedOptions
Definition: AbstractCompositeValidatorClass.php:28
‪TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\Fixture\AbstractCompositeValidatorClass
Definition: AbstractCompositeValidatorClass.php:25
‪TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\Fixture\AbstractCompositeValidatorClass\validate
‪TYPO3 CMS Extbase Error Result validate($value)
Definition: AbstractCompositeValidatorClass.php:52
‪TYPO3\CMS\Extbase\Validation\Validator\AbstractCompositeValidator
Definition: AbstractCompositeValidator.php:25
‪TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\Fixture
Definition: AbstractCompositeValidatorClass.php:16