Overview

Namespaces

  • MvcCore
    • Ext
      • Auth
        • Virtual
      • Debug
        • Tracy
      • Form
        • Core
        • Validators
      • Request
      • Router
        • Lang
      • View
        • Helpers
  • None

Classes

  • CompanyId
  • CompanyVatId
  • Date
  • Email
  • FloatVal
  • Integer
  • Maxlength
  • MaxSelectedOptions
  • MinSelectedOptions
  • NumberField
  • Pattern
  • Phone
  • RangeField
  • SafeString
  • Time
  • Url
  • ValueInOptions
  • ZipCode
  • Overview
  • Namespace
  • Class
  • Tree

Class CompanyId

MvcCore\Ext\Form\Core\Validator
Extended by 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
Methods summary
public
# StaticInit( )

Static initialization for this class to init validators.

Static initialization for this class to init validators.

public mixed
# Validate( string $submitValue, string $fieldName, MvcCore\Ext\Form\Core\Field & $field )

Validate company ID by regular expression(s) or by closure function.

Validate company ID by regular expression(s) or by closure function.

Parameters

$submitValue
raw submitted value
$fieldName
form field name
$field
form field for company id

Returns

mixed

Throws

MvcCore\Ext\Form\Core\Exception

Overrides

MvcCore\Ext\Form\Core\Validator::Validate()
protected boolean
# checkCompanyIdByRegExpBase( string $regExpBase, string $locale, string $id )

Check company ID by regular expression base. Return true if company ID matches.

Check company ID by regular expression base. Return true if company ID matches.

Parameters

$regExpBase
$locale
$id

Returns

boolean
Methods inherited from MvcCore\Ext\Form\Core\Validator
Create(), __construct(), addError()
Properties summary
protected static string $errorMessageKey

Error message key

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:

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:

See

https://en.wikipedia.org/wiki/VAT_identification_number
# array()
Properties inherited from MvcCore\Ext\Form\Core\Validator
$Controller, $Form, $Translate, $Translator, $instances, $validatorsClassNameTemplate
MvcCore API documentation generated by ApiGen