Elgg
Version 1.10
|
Public Member Functions | |
__construct (\Elgg\PluginHooksService $hooks,\Elgg\Logger $logger) | |
Constructor. More... | |
autoregisterViews ($view_base, $folder, $base_location_path, $viewtype) | |
private More... | |
getViewLocation ($view, $viewtype= '') | |
private More... | |
setViewLocation ($view, $location, $viewtype= '') | |
private More... | |
registerViewtypeFallback ($viewtype) | |
private More... | |
doesViewtypeFallback ($viewtype) | |
private More... | |
renderDeprecatedView ($view, array $vars, $suggestion, $version) | |
Display a view with a deprecation notice. More... | |
renderView ($view, array $vars=array(), $bypass=false, $viewtype= '', $issue_missing_notice=true) | |
private More... | |
viewExists ($view, $viewtype= '', $recurse=true) | |
private More... | |
extendView ($view, $view_extension, $priority=501, $viewtype= '') | |
private More... | |
unextendView ($view, $view_extension) | |
private More... | |
registerCacheableView ($view) | |
private More... | |
isCacheableView ($view) | |
private More... | |
Protected Member Functions | |
getUserWrapper () | |
Get the user object in a wrapper. More... | |
fileExists ($path) | |
Wrapper for file_exists() that caches false results (the stat cache only caches true results). More... | |
Protected Attributes | |
$config_wrapper | |
$site_url_wrapper | |
$user_wrapper | |
$user_wrapped | |
$file_exists_cache = array() | |
Definition at line 18 of file ViewsService.php.
Elgg\ViewsService::__construct | ( | \Elgg\PluginHooksService | $hooks, |
\Elgg\Logger | $logger | ||
) |
Constructor.
\Elgg\PluginHooksService | $hooks | The hooks service |
\Elgg\Logger | $logger | Logger |
Definition at line 44 of file ViewsService.php.
Elgg\ViewsService::autoregisterViews | ( | $view_base, | |
$folder, | |||
$base_location_path, | |||
$viewtype | |||
) |
private
Definition at line 72 of file ViewsService.php.
Elgg\ViewsService::doesViewtypeFallback | ( | $viewtype | ) |
private
Definition at line 163 of file ViewsService.php.
Elgg\ViewsService::extendView | ( | $view, | |
$view_extension, | |||
$priority = 501 , |
|||
$viewtype = '' |
|||
) |
private
Definition at line 425 of file ViewsService.php.
|
protected |
Wrapper for file_exists() that caches false results (the stat cache only caches true results).
This saves us from many unneeded file stat calls when a common view uses a fallback.
string | $path | Path to the file |
Definition at line 337 of file ViewsService.php.
|
protected |
Elgg\ViewsService::getViewLocation | ( | $view, | |
$viewtype = '' |
|||
) |
private
Definition at line 100 of file ViewsService.php.
Elgg\ViewsService::isCacheableView | ( | $view | ) |
private
Definition at line 497 of file ViewsService.php.
Elgg\ViewsService::registerCacheableView | ( | $view | ) |
private
Definition at line 480 of file ViewsService.php.
Elgg\ViewsService::registerViewtypeFallback | ( | $viewtype | ) |
private
Definition at line 146 of file ViewsService.php.
Elgg\ViewsService::renderDeprecatedView | ( | $view, | |
array | $vars, | ||
$suggestion, | |||
$version | |||
) |
Display a view with a deprecation notice.
No missing view NOTICE is logged
string | $view | The name and location of the view to use |
array | $vars | Variables to pass to the view |
string | $suggestion | Suggestion with the deprecation message |
string | $version | Human-readable release version: 1.7, 1.8, ... |
Definition at line 186 of file ViewsService.php.
Elgg\ViewsService::renderView | ( | $view, | |
array | $vars = array() , |
||
$bypass = false , |
|||
$viewtype = '' , |
|||
$issue_missing_notice = true |
|||
) |
private
Definition at line 197 of file ViewsService.php.
Elgg\ViewsService::setViewLocation | ( | $view, | |
$location, | |||
$viewtype = '' |
|||
) |
private
Definition at line 121 of file ViewsService.php.
Elgg\ViewsService::unextendView | ( | $view, | |
$view_extension | |||
) |
private
Definition at line 452 of file ViewsService.php.
Elgg\ViewsService::viewExists | ( | $view, | |
$viewtype = '' , |
|||
$recurse = true |
|||
) |
private
Definition at line 379 of file ViewsService.php.
|
protected |
Definition at line 20 of file ViewsService.php.
|
protected |
Definition at line 29 of file ViewsService.php.
|
protected |
Definition at line 21 of file ViewsService.php.
|
protected |
Definition at line 23 of file ViewsService.php.
|
protected |
Definition at line 22 of file ViewsService.php.