PHP Class unclead\multipleinput\TabularColumn

Inheritance: extends unclead\multipleinput\components\BaseColumn
ファイルを表示 Open project: unclead/yii2-multiple-input Class Usage Examples

Public Methods

Method Description
getElementName ( integer | null $index, boolean $withPrefix = true ) : string Returns element's name.
getFirstError ( $index ) : string Returns first error of the current model.
setModel ( $model )

Protected Methods

Method Description
ensureModel ( $model ) : boolean Ensure that model is an instance of yii\base\Model.

Method Details

ensureModel() protected method

Ensure that model is an instance of yii\base\Model.
protected ensureModel ( $model ) : boolean
$model
return boolean

getElementName() public method

Returns element's name.
public getElementName ( integer | null $index, boolean $withPrefix = true ) : string
$index integer | null current row index
$withPrefix boolean whether to add prefix.
return string

getFirstError() public method

Returns first error of the current model.
public getFirstError ( $index ) : string
$index
return string

setModel() public method

public setModel ( $model )