PHP Класс yupe\components\actions\CreateAction

Наследование: extends CActio\CAction
Показать файл Открыть проект

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

Свойство Тип Описание
$layout the name of the layout to be applied to the views. This will be assigned to {@link CController::layout} before the view is rendered. Defaults to null, meaning the controller's layout will be used. If false, no layout will be applied.
$modelClass Model class for action.
$modelScenario model scenario
$returnUrl url for return after success create. If null, action will redirect on current page.
$successMessage message will be displayed if model was save successfully
$view the name of the view to be rendered.

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

Метод Описание
onAfterRender ( CEvent $event ) Raised right after the action invokes the render method.
onBeforeRender ( CEvent $event ) Raised right before the action invokes the render method.
run ( )

Защищенные методы

Метод Описание
getSuccessMessage ( )

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

getSuccessMessage() защищенный Метод

protected getSuccessMessage ( )

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

Raised right after the action invokes the render method.
public onAfterRender ( CEvent $event )
$event CEvent event parameter

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

Event handlers can set the {@link CEvent::handled} property to be true to stop further view rendering.
public onBeforeRender ( CEvent $event )
$event CEvent event parameter

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

public run ( )

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

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

the name of the layout to be applied to the views. This will be assigned to {@link CController::layout} before the view is rendered. Defaults to null, meaning the controller's layout will be used. If false, no layout will be applied.
public $layout

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

Model class for action.
public $modelClass

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

model scenario
public $modelScenario

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

url for return after success create. If null, action will redirect on current page.
public $returnUrl

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

message will be displayed if model was save successfully
public $successMessage

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

the name of the view to be rendered.
public $view