Class humhub\libs\ActionColumn
Inheritance | humhub\libs\ActionColumn » yii\grid\Column |
---|---|
Subclasses | humhub\modules\admin\grid\SpaceActionColumn, humhub\modules\admin\grid\UserActionColumn |
Description of ActionColumn
Public Properties
Property | Type | Description | Defined 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 |
Protected Methods
Method | Description | Defined By |
---|---|---|
getActions() | humhub\libs\ActionColumn | |
handleUrl() | Builds the URL for a given Action | humhub\libs\ActionColumn |
renderDataCellContent() | humhub\libs\ActionColumn |
Property Details
List of actions (key = title, value = url)
The ID attribute of the model, to generate action URLs.
Method Details
protected void getActions ( $model, $key, $index ) | ||
$model | ||
$key | ||
$index |
Builds the URL for a given Action
protected string handleUrl ( $url, $model ) | ||
$url | array | |
$model | \yii\base\Model | |
return | string | The url |
---|
public void init ( ) |
protected void renderDataCellContent ( $model, $key, $index ) | ||
$model | ||
$key | ||
$index |