PHP Class yii2tech\admin\actions\Position

This action supports yii2tech/ar-position extension.
See also: https://github.com/yii2tech/ar-position
Since: 1.0
Author: Paul Klimov ([email protected])
Inheritance: extends Action
Show file Open project: yii2tech/admin

Public Properties

Property Type Description
$positionParam name of the query param, which is used for new model position specification.

Public Methods

Method Description
createReturnUrl ( $defaultActionId = 'index', $model = null )
run ( mixed $id ) : mixed Updates existing record specified by id.

Protected Methods

Method Description
positionModel ( yii\db\ActiveRecordInterface | yii2tech\ar\position\PositionBehavior $model, $position )
respondSuccess ( yii\db\ActiveRecordInterface $model ) : mixed Composes success response.

Method Details

createReturnUrl() public method

public createReturnUrl ( $defaultActionId = 'index', $model = null )

positionModel() protected method

protected positionModel ( yii\db\ActiveRecordInterface | yii2tech\ar\position\PositionBehavior $model, $position )
$model yii\db\ActiveRecordInterface | yii2tech\ar\position\PositionBehavior
$position

respondSuccess() protected method

Composes success response.
protected respondSuccess ( yii\db\ActiveRecordInterface $model ) : mixed
$model yii\db\ActiveRecordInterface
return mixed response.

run() public method

Updates existing record specified by id.
public run ( mixed $id ) : mixed
$id mixed id of the model to be deleted.
return mixed response.

Property Details

$positionParam public property

name of the query param, which is used for new model position specification.
public $positionParam