1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Length.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
5namespace Bitrix\Main\Validation\Rule;
6
7use Attribute;
8use Bitrix\Main\Localization\LocalizableMessageInterface;
9use Bitrix\Main\Validation\Validator\LengthValidator;
10
11#[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)]
13{
14 public function __construct(
15 private readonly ?int $min = null,
16 private readonly ?int $max = null,
17 protected string|LocalizableMessageInterface|null $errorMessage = null,
18 )
19 {
20 }
21 protected function getValidators(): array
22 {
23 return [
24 (new LengthValidator($this->min, $this->max)),
25 ];
26 }
27}
__construct(private readonly ?int $min=null, private readonly ?int $max=null, protected string|LocalizableMessageInterface|null $errorMessage=null,)
Определения Length.php:14
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
while($arParentIBlockProperty=$dbParentIBlockProperty->Fetch()) $errorMessage
$max
Определения template_copy.php:262