PHP Class unclead\multipleinput\TabularColumn

Inheritance: extends unclead\multipleinput\components\BaseColumn
Afficher le fichier Open project: unclead/yii2-multiple-input Class Usage Examples

Méthodes publiques

Méthode 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 )

Méthodes protégées

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

Method Details

ensureModel() protected méthode

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

getElementName() public méthode

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.
Résultat string

getFirstError() public méthode

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

setModel() public méthode

public setModel ( $model )