Class humhub\libs\ActionColumn

Inheritancehumhub\libs\ActionColumn » yii\grid\Column
Subclasseshumhub\modules\admin\grid\SpaceActionColumn, humhub\modules\admin\grid\UserActionColumn

Description of ActionColumn

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$actions array List of actions (key = title, value = url) humhub\libs\ActionColumn
$modelIdAttribute string The ID attribute of the model, to generate action URLs. humhub\libs\ActionColumn

Public Methods

Hide inherited methods

MethodDescriptionDefined By
init() humhub\libs\ActionColumn

Property Details

$actions public property

List of actions (key = title, value = url)

public array $actions = []
$modelIdAttribute public property

The ID attribute of the model, to generate action URLs.

public string $modelIdAttribute 'id'

Method Details

getActions() protected method

protected void getActions ( $model, $key, $index )
$model
$key
$index
handleUrl() protected method

Builds the URL for a given Action

protected string handleUrl ( $url, $model )
$url array
$model \yii\base\Model
return string

The url

init() public method

public void init ( )
renderDataCellContent() protected method

protected void renderDataCellContent ( $model, $key, $index )
$model
$key
$index