PHP Class unclead\multipleinput\MultipleInputColumn

Inheritance: extends unclead\multipleinput\components\BaseColumn
Mostra file Open project: unclead/yii2-multiple-input Class Usage Examples

Public Properties

Property Type Description
$context MultipleInput

Public Methods

Method Description
getElementName ( integer | null $index, boolean $withPrefix = true ) : string Returns element's name.
getFirstError ( integer | string | null $index ) : null | string
init ( )

Protected Methods

Method Description
getInputNamePrefix ( ) : string Return prefix for name of input.
hasModelAttribute ( $name )
renderWidget ( $type, $name, $value, $options )

Private Methods

Method Description
isRendererHasOneColumn ( ) : boolean

Method Details

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

public getFirstError ( integer | string | null $index ) : null | string
$index integer | string | null
return null | string

getInputNamePrefix() protected method

Return prefix for name of input.
protected getInputNamePrefix ( ) : string
return string

hasModelAttribute() protected method

protected hasModelAttribute ( $name )

init() public method

public init ( )

renderWidget() protected method

protected renderWidget ( $type, $name, $value, $options )

Property Details

$context public_oe property

public MultipleInput,unclead\multipleinput $context
return MultipleInput