PHP Class BcAppView

Inheritance: extends View
Afficher le fichier Open project: baserproject/basercms

Méthodes publiques

Свойство Type Description
$elementCache string エレメントキャッシュ
$pageTitle string ページタイトル

Protected Properties

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

Méthodes publiques

Méthode Description
dispatchEvent ( string $name, array $params = [], $options = [] ) : mixed イベントを発火
evaluate ( $viewFile, array $dataForView ) : string Sandbox method to evaluate a template / view script in.

Méthodes protégées

Méthode Description
_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

Method Details

_evaluate() protected méthode

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.
Résultat string Rendered output

_getElementFileName() protected méthode

Finds an element filename, returns false on failure.
protected _getElementFileName ( string $name ) : mixed
$name string The name of the element to find.
Résultat mixed Either a string to the element filename or false when one can't be found.

_getExtensions() protected méthode

Get the extensions that view files can use.
protected _getExtensions ( ) : array
Résultat array Array of extensions view files use.

_getLayoutFileName() protected méthode

Returns layout filename for this template as a string.
protected _getLayoutFileName ( string $name = null ) : string
$name string The name of the layout to find.
Résultat string Filename for layout file (.ctp).

_getViewFileName() protected méthode

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
Résultat string Template filename

_paths() protected méthode

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.
Résultat array paths

dispatchEvent() public méthode

イベントを発火
public dispatchEvent ( string $name, array $params = [], $options = [] ) : mixed
$name string
$params array
Résultat mixed

evaluate() public méthode

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.
Résultat string Rendered output

Property Details

$_passedVars protected_oe property

List of variables to collect from the associated controller
protected array $_passedVars
Résultat array

$_viewFilesLog protected_oe property

テンプレートファイル一覧出力用 デバッグモード2で利用
protected array $_viewFilesLog
Résultat array

$elementCache public_oe property

エレメントキャッシュ
public string $elementCache
Résultat string

$pageTitle public_oe property

ページタイトル
public string $pageTitle
Résultat string