PHP Трейт Crud\Traits\ViewVarTrait

Показать файл Открыть проект

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

Метод Описание
publishViewVar ( Cake\Event\Event $event ) : false | null Publish the viewVar so people can do $$viewVar and end up wit the entity in the view
viewVar ( mixed $name = null ) : mixed Change the name of the view variable name of the data when its sent to the view

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

Метод Описание
_deriveViewValue ( Cake\Event\Event $event ) : mixed Derive the viewVar value based on the scope of the action as well as the Event being handled
_deriveViewVar ( ) : string Derive the viewVar based on the scope of the action

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

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

Derive the viewVar value based on the scope of the action as well as the Event being handled
protected _deriveViewValue ( Cake\Event\Event $event ) : mixed
$event Cake\Event\Event Event
Результат mixed

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

Actions working on a single entity will use singular name, and actions working on a full table will use plural name
protected _deriveViewVar ( ) : string
Результат string

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

Publish the viewVar so people can do $$viewVar and end up wit the entity in the view
public publishViewVar ( Cake\Event\Event $event ) : false | null
$event Cake\Event\Event Event
Результат false | null

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

Change the name of the view variable name of the data when its sent to the view
public viewVar ( mixed $name = null ) : mixed
$name mixed Var name
Результат mixed