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 RadioGroup

MvcCore\Ext\Form\Core\Field
Extended by MvcCore\Ext\Form\Core\FieldGroup
Extended by MvcCore\Ext\Form\RadioGroup
Namespace: MvcCore\Ext\Form
Located at ext-form/src/MvcCore/Ext/Form/RadioGroup.php
Methods summary
public
# __construct( array $cfg = array() )

Create new form control instance.

Create new form control instance.

Parameters

$cfg

config array with camel case public properties and its values which you want to configure.

Throws

MvcCore\Ext\Form\Core\Exception

Overrides

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

Form group pseudo control type, unique type accross all form field types.

Form group pseudo control type, unique type accross all form field types.

# 'radio'
public array $Value

Form control value, always as array of string or numbers for group of controls.

Form control value, always as array of string or numbers for group of controls.

# ''
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('ValueInOptions')
Properties inherited from MvcCore\Ext\Form\Core\FieldGroup
$GroupCssClasses, $GroupLabelAttrs, $Options, $Templates
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, $Translate, $View, $declaredProtectedProperties
MvcCore API documentation generated by ApiGen