PHP Класс 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.
С версии: 2.0
Автор: Qiang Xue ([email protected])
Наследование: extends Action
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$actionMethod the controller method that this inline action is associated with

Открытые методы

Метод Описание
__construct ( string $id, Controller $controller, string $actionMethod, array $config = [] )
runWithParams ( array $params ) : mixed Runs this action with the specified parameters.

Описание методов

__construct() публичный Метод

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() публичный Метод

This method is mainly invoked by the controller.
public runWithParams ( array $params ) : mixed
$params array action parameters
Результат mixed the result of the action

Описание свойств

$actionMethod публичное свойство

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