프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$view_path | Absolute path of the views directory |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$file_exists_cache | array |
메소드 | 설명 | |
---|---|---|
__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? |
메소드 | 설명 | |
---|---|---|
fileExists ( string $path ) : boolean | Wrapper for file_exists() that caches false results (the stat cache only caches true results). |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | void |
public canonicalizeViewName ( string $alias ) : string | ||
$alias | string | The possibly non-canonical view name. |
리턴 | string | The canonical view name. |
public configureFromCache ( |
||
$cache | The system cache | |
리턴 | boolean |
protected fileExists ( string $path ) : boolean | ||
$path | string | Path to the file |
리턴 | boolean |
public getViewList ( string $view ) : string[] | ||
$view | string | View name |
리턴 | 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, ... |
리턴 | 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 |
리턴 | boolean |
public viewIsExtended ( string $view ) : boolean | ||
$view | string | View name |
리턴 | boolean |