31 $this->views = $views;
32 $this->config = $config;
41 if ($this->config->system_cache_loaded) {
50 if (!is_file($file)) {
55 if (is_array($spec)) {
61 $this->views->mergeViewsSpec($spec);
static includeFile($file)
Include a file with as little context as possible.
Handles caching of views in the system cache.
static elgg()
Get the Elgg codebase path with "/".
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
registerCoreViews()
Discover the core views if the system cache did not load.
elgg_get_data_path()
Get the data directory path for this installation, ending with slash.
__construct(ViewsService $views, Config $config)
Constructor.