1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
RegExp.php
См. документацию.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
Bitrix\Main\Validation\Rule;
6
7
use Attribute;
8
use Bitrix\Main\Localization\LocalizableMessageInterface;
9
use Bitrix\Main\Validation\Validator\RegExpValidator;
10
11
#[Attribute(Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER)]
12
class
RegExp
extends
AbstractPropertyValidationAttribute
13
{
14
public
function
__construct
(
15
private
readonly
string
$pattern
,
16
private
readonly
int
$flags = 0,
17
private
readonly
int
$offset = 0,
18
protected
string
|
LocalizableMessageInterface
|
null
$errorMessage
=
null
19
)
20
{
21
}
22
23
protected
function
getValidators
():
array
24
{
25
return
[
26
(
new
RegExpValidator
($this->pattern, $this->flags, $this->offset)),
27
];
28
}
29
}
Bitrix\Main\Validation\Rule\AbstractPropertyValidationAttribute
Определения
AbstractPropertyValidationAttribute.php:11
Bitrix\Main\Validation\Rule\RegExp
Определения
RegExp.php:13
Bitrix\Main\Validation\Rule\RegExp\__construct
__construct(private readonly string $pattern, private readonly int $flags=0, private readonly int $offset=0, protected string|LocalizableMessageInterface|null $errorMessage=null)
Определения
RegExp.php:14
Bitrix\Main\Validation\Rule\RegExp\getValidators
getValidators()
Определения
RegExp.php:23
Bitrix\Main\Validation\Validator\RegExpValidator
Определения
RegExpValidator.php:12
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$errorMessage
while($arParentIBlockProperty=$dbParentIBlockProperty->Fetch()) $errorMessage
Определения
iblock_subelement_generator.php:275
Bitrix\Main\Localization\LocalizableMessageInterface
Определения
localizablemessageinterface.php:6
$pattern
if(!Loader::includeModule('sale')) $pattern
Определения
index.php:20
bitrix
modules
main
lib
Validation
Rule
RegExp.php
Создано системой
1.14.0