Свойство | Type | Description | |
---|---|---|---|
$view_path | Absolute path of the views directory |
Свойство | Type | Description | |
---|---|---|---|
$file_exists_cache | array |
Méthode | Description | |
---|---|---|
__construct ( |
Constructor | |
autoregisterViews ( $view_base, $folder, $viewtype ) | ||
cacheConfiguration ( |
Cache the configuration | |
canonicalizeViewName ( string $alias ) : string | Takes a view name and returns the canonical name for that view. | |
configureFromCache ( |
Configure locations from the cache | |
doesViewtypeFallback ( $viewtype ) | ||
extendView ( $view, $view_extension, $priority = 501 ) | ||
findViewFile ( string $view, string $viewtype ) : string | Find the view file | |
getInspectorData ( ) : array | Get inspector data | |
getViewList ( string $view ) : string[] | Get the views, including extensions, used to render a view | |
isCacheableView ( $view ) | ||
listViews ( string $viewtype = 'default' ) : string[] | List all views in a viewtype | |
mergeViewsSpec ( array $spec ) | Merge a specification of absolute view paths | |
registerCacheableView ( $view ) | ||
registerPluginViews ( string $path, string &$failed_dir = '' ) : boolean | Register a plugin's views | |
registerViewtypeFallback ( $viewtype ) | ||
renderDeprecatedView ( string $view, array $vars, string $suggestion, string $version ) : string | Display a view with a deprecation notice. No missing view NOTICE is logged | |
renderView ( $view, array $vars = [], $ignored = false, $viewtype = '', $issue_missing_notice = true ) | ||
setViewDir ( string $view, string $location, string $viewtype = '' ) | ||
unextendView ( $view, $view_extension ) | ||
viewExists ( $view, $viewtype = '', $recurse = true ) | ||
viewHasHookHandlers ( string $view ) : boolean | Do hook handlers exist to modify the view? | |
viewIsExtended ( string $view ) : boolean | Is the given view extended? |
Méthode | Description | |
---|---|---|
fileExists ( string $path ) : boolean | Wrapper for file_exists() that caches false results (the stat cache only caches true results). |
Méthode | Description | |
---|---|---|
renderViewFile ( string $view, array $vars, string $viewtype, boolean $issue_missing_notice ) : string | false | Includes view PHP or static file | |
setViewLocation ( string $view, string $viewtype, string $path ) : void | Update the location of a view file |
public __construct ( |
||
$hooks | The hooks service | |
$logger | Logger |
public cacheConfiguration ( |
||
$cache | The system cache | |
Résultat | void |
public canonicalizeViewName ( string $alias ) : string | ||
$alias | string | The possibly non-canonical view name. |
Résultat | string | The canonical view name. |
public configureFromCache ( |
||
$cache | The system cache | |
Résultat | boolean |
protected fileExists ( string $path ) : boolean | ||
$path | string | Path to the file |
Résultat | boolean |
public getInspectorData ( ) : array | ||
Résultat | array |
public getViewList ( string $view ) : string[] | ||
$view | string | View name |
Résultat | string[] |
public mergeViewsSpec ( array $spec ) | ||
$spec | array | Specification viewtype => [ view_name => path or array of paths ] |
public renderDeprecatedView ( string $view, array $vars, string $suggestion, string $version ) : string | ||
$view | string | The name and location of the view to use |
$vars | array | Variables to pass to the view |
$suggestion | string | Suggestion with the deprecation message |
$version | string | Human-readable *release* version: 1.7, 1.8, ... |
Résultat | string | The parsed view |
public renderView ( $view, array $vars = [], $ignored = false, $viewtype = '', $issue_missing_notice = true ) | ||
$vars | array |
public viewHasHookHandlers ( string $view ) : boolean | ||
$view | string | View name |
Résultat | boolean |
public viewIsExtended ( string $view ) : boolean | ||
$view | string | View name |
Résultat | boolean |