|
Elgg
Version 1.9
|
Public Member Functions | |
| __construct (Elgg_PluginHooksService $hooks, Elgg_Logger $logger) | |
| Constructor. More... | |
| autoregisterViews ($view_base, $folder, $base_location_path, $viewtype) | |
| @access private More... | |
| getViewLocation ($view, $viewtype='') | |
| @access private More... | |
| setViewLocation ($view, $location, $viewtype='') | |
| @access private More... | |
| registerViewtypeFallback ($viewtype) | |
| @access private More... | |
| doesViewtypeFallback ($viewtype) | |
| @access 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) | |
| @access private More... | |
| viewExists ($view, $viewtype='', $recurse=true) | |
| @access private More... | |
| extendView ($view, $view_extension, $priority=501, $viewtype='') | |
| @access private More... | |
| unextendView ($view, $view_extension) | |
| @access private More... | |
| registerCacheableView ($view) | |
| @access private More... | |
| isCacheableView ($view) | |
| @access 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 17 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 36 of file ViewsService.php.
| Elgg_ViewsService::autoregisterViews | ( | $view_base, | |
| $folder, | |||
| $base_location_path, | |||
| $viewtype | |||
| ) |
@access private
Definition at line 62 of file ViewsService.php.
| Elgg_ViewsService::doesViewtypeFallback | ( | $viewtype | ) |
@access private
Definition at line 153 of file ViewsService.php.
| Elgg_ViewsService::extendView | ( | $view, | |
| $view_extension, | |||
$priority = 501, |
|||
$viewtype = '' |
|||
| ) |
@access private
Definition at line 415 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 327 of file ViewsService.php.
|
protected |
Get the user object in a wrapper.
Definition at line 46 of file ViewsService.php.
| Elgg_ViewsService::getViewLocation | ( | $view, | |
$viewtype = '' |
|||
| ) |
@access private
Definition at line 90 of file ViewsService.php.
| Elgg_ViewsService::isCacheableView | ( | $view | ) |
@access private
Definition at line 487 of file ViewsService.php.
| Elgg_ViewsService::registerCacheableView | ( | $view | ) |
@access private
Definition at line 470 of file ViewsService.php.
| Elgg_ViewsService::registerViewtypeFallback | ( | $viewtype | ) |
@access private
Definition at line 136 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 176 of file ViewsService.php.
| Elgg_ViewsService::renderView | ( | $view, | |
| array | $vars = array(), |
||
$bypass = false, |
|||
$viewtype = '', |
|||
$issue_missing_notice = true |
|||
| ) |
@access private
Definition at line 187 of file ViewsService.php.
| Elgg_ViewsService::setViewLocation | ( | $view, | |
| $location, | |||
$viewtype = '' |
|||
| ) |
@access private
Definition at line 111 of file ViewsService.php.
| Elgg_ViewsService::unextendView | ( | $view, | |
| $view_extension | |||
| ) |
@access private
Definition at line 442 of file ViewsService.php.
| Elgg_ViewsService::viewExists | ( | $view, | |
$viewtype = '', |
|||
$recurse = true |
|||
| ) |
@access private
Definition at line 369 of file ViewsService.php.
|
protected |
Definition at line 19 of file ViewsService.php.
|
protected |
Definition at line 28 of file ViewsService.php.
|
protected |
Definition at line 20 of file ViewsService.php.
|
protected |
Definition at line 22 of file ViewsService.php.
|
protected |
Definition at line 21 of file ViewsService.php.