Class CompanyId
- MvcCore\Ext\Form\Core\Validator
-
MvcCore\Ext\Form\Validators\CompanyId
Direct known subclasses
MvcCore\Ext\Form\Validators\CompanyVatId
Namespace: MvcCore\Ext\Form\Validators
Located at ext-form/src/MvcCore/Ext/Form/Validators/CompanyId.php
Located at ext-form/src/MvcCore/Ext/Form/Validators/CompanyId.php
public
|
|
public
mixed
|
#
Validate( string $submitValue, string $fieldName,
Validate company ID by regular expression(s) or by closure function. |
protected
boolean
|
#
checkCompanyIdByRegExpBase( string $regExpBase, string $locale, string $id )
Check company ID by regular expression base. Return true if company ID matches. |
Create(),
__construct(),
addError()
|
protected static
string
|
$errorMessageKey
Error message key |
#
\MvcCore\Ext\Form::TAX_ID
|
public static
array
|
$Validators
EU validators Array of regexp bases to check company id. If item is array of regexp bases, company id is checked in or behaviour. If item is closure function, company id is checked by calling closure function with fist param to be company id. Closure function has to return boolean about company id right form. Add any other custom validator by info bellow: |
#
array()
|
$Controller,
$Form,
$Translate,
$Translator,
$instances,
$validatorsClassNameTemplate
|