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 Pattern

MvcCore\Ext\Form\Core\Validator
Extended by MvcCore\Ext\Form\Validators\Pattern
Namespace: MvcCore\Ext\Form\Validators
Located at ext-form/src/MvcCore/Ext/Form/Validators/Pattern.php
Methods summary
public string|array
# Validate( string|array $submitValue, string $fieldName, MvcCore\Ext\Form\Core\Field & $field )

Validation template method. In your validator implementation, check submitted value by validator specific rules and if there is any error, call $form->AddError with translated or not translated error message. Return safe submitted value as result.

Validation template method. In your validator implementation, check submitted value by validator specific rules and if there is any error, call $form->AddError with translated or not translated error message. Return safe submitted value as result.

Parameters

$submitValue
$fieldName
$field

Returns

string|array
safe submitted value

Overrides

MvcCore\Ext\Form\Core\Validator::Validate()
Methods inherited from MvcCore\Ext\Form\Core\Validator
Create(), __construct(), addError()
Properties inherited from MvcCore\Ext\Form\Core\Validator
$Controller, $Form, $Translate, $Translator, $instances, $validatorsClassNameTemplate
MvcCore API documentation generated by ApiGen