PHP Класс BcAppView

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

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

Свойство Тип Описание
$elementCache string エレメントキャッシュ
$pageTitle string ページタイトル

Защищенные свойства (Protected)

Свойство Тип Описание
$_passedVars array List of variables to collect from the associated controller
$_viewFilesLog array テンプレートファイル一覧出力用 デバッグモード2で利用

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

Метод Описание
dispatchEvent ( string $name, array $params = [], $options = [] ) : mixed イベントを発火
evaluate ( $viewFile, array $dataForView ) : string Sandbox method to evaluate a template / view script in.

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

Метод Описание
_evaluate ( string $viewFile, array $dataForView ) : string Sandbox method to evaluate a template / view script in.
_getElementFileName ( string $name ) : mixed Finds an element filename, returns false on failure.
_getExtensions ( ) : array Get the extensions that view files can use.
_getLayoutFileName ( string $name = null ) : string Returns layout filename for this template as a string.
_getViewFileName ( string $name = null ) : string Returns filename of given action's template file (.ctp) as a string.
_paths ( string $plugin = null, boolean $cached = true ) : array Return all possible paths to find view files in order

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

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

Sandbox method to evaluate a template / view script in.
protected _evaluate ( string $viewFile, array $dataForView ) : string
$viewFile string Filename of the view
$dataForView array Data to include in rendered view. If empty the current View::$viewVars will be used.
Результат string Rendered output

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

Finds an element filename, returns false on failure.
protected _getElementFileName ( string $name ) : mixed
$name string The name of the element to find.
Результат mixed Either a string to the element filename or false when one can't be found.

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

Get the extensions that view files can use.
protected _getExtensions ( ) : array
Результат array Array of extensions view files use.

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

Returns layout filename for this template as a string.
protected _getLayoutFileName ( string $name = null ) : string
$name string The name of the layout to find.
Результат string Filename for layout file (.ctp).

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

CamelCased action names will be under_scored! This means that you can have LongActionNames that refer to long_action_names.ctp views.
protected _getViewFileName ( string $name = null ) : string
$name string Controller action to find template filename for
Результат string Template filename

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

Return all possible paths to find view files in order
protected _paths ( string $plugin = null, boolean $cached = true ) : array
$plugin string Optional plugin name to scan for view files.
$cached boolean Set to true to force a refresh of view paths.
Результат array paths

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

イベントを発火
public dispatchEvent ( string $name, array $params = [], $options = [] ) : mixed
$name string
$params array
Результат mixed

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

Sandbox method to evaluate a template / view script in.
public evaluate ( $viewFile, array $dataForView ) : string
$dataForView array Data to include in rendered view. If empty the current View::$viewVars will be used.
Результат string Rendered output

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

$_passedVars защищенное свойство

List of variables to collect from the associated controller
protected array $_passedVars
Результат array

$_viewFilesLog защищенное свойство

テンプレートファイル一覧出力用 デバッグモード2で利用
protected array $_viewFilesLog
Результат array

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

エレメントキャッシュ
public string $elementCache
Результат string

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

ページタイトル
public string $pageTitle
Результат string