Class humhub\compat\HForm

Inheritancehumhub\compat\HForm » yii\base\Component
Subclasseshumhub\modules\user\models\forms\Registration

HForm - Yii1 compatible form generator

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$form humhub\compat\HForm

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
EVENT_AFTER_INIT 'afterInit' humhub\compat\HForm
EVENT_AFTER_VALIDATE 'afterValidate' humhub\compat\HForm
EVENT_BEFORE_RENDER 'beforeRender' humhub\compat\HForm
EVENT_BEFORE_VALIDATE 'beforeValidate' humhub\compat\HForm

Property Details

$definition public property
public $definition = []
$form protected property
protected $form null
$markedAsSubmitted public property

Manually mark form as submitted

public boolean $markedAsSubmitted false
$models public property
public $models = []
$primaryModel public property
public $primaryModel null
$showErrorSummary public property
public $showErrorSummary null

Method Details

__construct() public method

public void __construct ( $definition = [], $primaryModel null )
$definition
$primaryModel
clearErrors() public method

public void clearErrors ( )
render() public method

public void render ( $form )
$form
renderButtons() public method

public void renderButtons ( $buttons )
$buttons
renderElements() public method

public void renderElements ( $elements, $forms = [] )
$elements
$forms
renderField() public method

public void renderField ( $name, $definition, $forms )
$name
$definition
$forms
renderForm() public method

public void renderForm ( $element )
$element
renderFormEnd() public method

public void renderFormEnd ( $element )
$element
save() public method

public void save ( )
submitted() public method

public void submitted ( $buttonName "" )
$buttonName
validate() public method

public void validate ( )