PHP Class yii\base\InlineAction

The name of the controller method is available via [[actionMethod]] which is set by the [[controller]] who creates this action. For more details and usage information on InlineAction, see the guide article on actions.
Since: 2.0
Author: Qiang Xue ([email protected])
Inheritance: extends Action
Show file Open project: yiisoft/yii2 Class Usage Examples

Public Properties

Property Type Description
$actionMethod the controller method that this inline action is associated with

Public Methods

Method Description
__construct ( string $id, Controller $controller, string $actionMethod, array $config = [] )
runWithParams ( array $params ) : mixed Runs this action with the specified parameters.

Method Details

__construct() public method

public __construct ( string $id, Controller $controller, string $actionMethod, array $config = [] )
$id string the ID of this action
$controller Controller the controller that owns this action
$actionMethod string the controller method that this inline action is associated with
$config array name-value pairs that will be used to initialize the object properties

runWithParams() public method

This method is mainly invoked by the controller.
public runWithParams ( array $params ) : mixed
$params array action parameters
return mixed the result of the action

Property Details

$actionMethod public property

the controller method that this inline action is associated with
public $actionMethod