Overview

Namespaces

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

Classes

  • Button
  • Checkbox
  • CheckboxGroup
  • CountrySelect
  • Date
  • DateTime
  • Email
  • Hidden
  • NoType
  • Number
  • Password
  • RadioGroup
  • Range
  • ResetButton
  • ResetInput
  • Select
  • SubmitButton
  • SubmitInput
  • Text
  • Textarea
  • Time
  • Overview
  • Namespace
  • Class
  • Tree

Class Number

MvcCore\Ext\Form\Core\Field
Extended by MvcCore\Ext\Form\Number
Namespace: MvcCore\Ext\Form
Located at ext-form/src/MvcCore/Ext/Form/Number.php
Methods summary
public
# SetSize( $size )
public
# SetMin( $min )
public
# SetMax( $max )
public
# SetStep( $step )
public
# SetPattern( $pattern )
public
# SetWrapper( $wrapper )
public string
# RenderControl( )

Render control tag only without label or specific errors.

Render control tag only without label or specific errors.

Returns

string

Overrides

MvcCore\Ext\Form\Core\Field::RenderControl()
Methods inherited from MvcCore\Ext\Form\Core\Field
AddControlAttr(), AddCssClass(), AddError(), AddLabelAttr(), AddValidators(), GetValue(), OnAdded(), Render(), RenderControlInsideLabel(), RenderErrors(), RenderLabel(), RenderLabelAndControl(), RenderNaturally(), RenderTemplate(), SetControlAttrs(), SetCss(), SetCssClasses(), SetDisabled(), SetJs(), SetJsClass(), SetLabel(), SetLabelAttrs(), SetLabelSide(), SetName(), SetReadonly(), SetRenderMode(), SetRequired(), SetTemplatePath(), SetTranslate(), SetType(), SetUp(), SetValidators(), SetValue(), __construct(), __set(), renderAttrsWithFieldVars(), renderControlAttrsWithFieldVars(), renderLabelAttrsWithFieldVars()
Properties summary
public string $Type

Form control type, usually used in attr value, but unique type accross all form field types.

Form control type, usually used in attr value, but unique type accross all form field types.

# 'number'
public $Size
# null
public $Min
# null
public $Max
# null
public $Step
# null
public $Pattern
# null
public string $Wrapper
# '{control}'
public string[]|Closure[] $Validators

List of validator classes end-names or list of closure functions accepting arguments: $submitValue, $fieldName, \MvcCore\Ext\Form\Core\Field & $field and returning safe value as result. Closure function should call $field->Form->AddError() internaly if necessary and submitted value is not correct. All validator classes are located in directory: /Form/Validators/... For validator class \MvcCore\Ext\Form\Validators\Numeric is necessary only tu set 'Numeric'.

List of validator classes end-names or list of closure functions accepting arguments: $submitValue, $fieldName, \MvcCore\Ext\Form\Core\Field & $field and returning safe value as result. Closure function should call $field->Form->AddError() internaly if necessary and submitted value is not correct. All validator classes are located in directory: /Form/Validators/... For validator class \MvcCore\Ext\Form\Validators\Numeric is necessary only tu set 'Numeric'.

# array('NumberField')
Properties inherited from MvcCore\Ext\Form\Core\Field
$ControlAttrs, $Css, $CssClasses, $Disabled, $Errors, $Form, $Id, $Js, $JsClass, $Label, $LabelAttrs, $LabelSide, $Name, $Readonly, $RenderMode, $Required, $TemplatePath, $Templates, $Translate, $Value, $View, $declaredProtectedProperties
MvcCore API documentation generated by ApiGen