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
Afficher le fichier Open project: yiisoft/yii2 Class Usage Examples

Méthodes publiques

Свойство Type Description
$actionMethod the controller method that this inline action is associated with

Méthodes publiques

Méthode 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 méthode

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 méthode

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

Property Details

$actionMethod public_oe property

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