Elgg  Version 3.0
Variables
caching.php File Reference

Go to the source code of this file.

Variables

 $is_simple_cache_on = (bool) elgg_get_config('simplecache_enabled')
 Advanced site settings, caching section. More...
 
 $simple_cache_disabled_class = $is_simple_cache_on ? '' : 'elgg-state-disabled'
 
 $params
 
 $simple_cache_warning = elgg_echo('installation:simplecache:description')
 
if(_elgg_config() ->hasInitialValue('simplecache_enabled')) $simple_cache_input = elgg_view("input/checkbox", $params)
 
 $cache_symlinked = _elgg_is_cache_symlinked()
 
 $symlink_warning = '<p class="elgg-text-help">' . elgg_echo('installation:cache_symlink:description') . '</p>'
 
if($cache_symlinked) $symlink_input = elgg_view('input/checkbox', $params)
 
 $symlink_source = elgg_get_root_path() . 'cache/'
 
 $symlink_target = elgg_get_asset_path()
 
 $symlink_paths_help = elgg_echo('installation:cache_symlink:paths', [$symlink_source, $symlink_target])
 
 $minify_description = elgg_echo('installation:minify:description')
 
 $minify_js_input
 
 $minify_css_input
 
 $system_cache_input
 
 $body
 

Variable Documentation

$body
Initial value:
= <<<BODY
<div>
<p class="elgg-text-help">$simple_cache_warning</p>
</div>
<div>
</div>
<div>
</div>
BODY
if($cache_symlinked) $symlink_input
Definition: caching.php:44
$minify_css_input
Definition: caching.php:60
$symlink_warning
Definition: caching.php:36
$minify_js_input
Definition: caching.php:52
$system_cache_input
Definition: caching.php:68
$minify_description
Definition: caching.php:51
if(_elgg_config() ->hasInitialValue('simplecache_enabled')) $simple_cache_input
Definition: caching.php:25
$simple_cache_warning
Definition: caching.php:17

Definition at line 78 of file caching.php.

$cache_symlinked = _elgg_is_cache_symlinked()

Definition at line 27 of file caching.php.

$is_simple_cache_on = (bool) elgg_get_config('simplecache_enabled')

Advanced site settings, caching section.

Definition at line 7 of file caching.php.

$minify_css_input
Initial value:
= elgg_view("input/checkbox", [
'label' => elgg_echo('installation:minify_css:label'),
'name' => 'simplecache_minify_css',
'checked' => (bool) elgg_get_config('simplecache_minify_css'),
'label_class' => $simple_cache_disabled_class,
'switch' => true,
])
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$simple_cache_disabled_class
Definition: caching.php:8
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246
elgg_get_config($name, $default=null)
Get an Elgg configuration value.

Definition at line 60 of file caching.php.

$minify_description = elgg_echo('installation:minify:description')

Definition at line 51 of file caching.php.

$minify_js_input
Initial value:
= elgg_view("input/checkbox", [
'label' => elgg_echo('installation:minify_js:label'),
'name' => 'simplecache_minify_js',
'checked' => (bool) elgg_get_config('simplecache_minify_js'),
'label_class' => $simple_cache_disabled_class,
'switch' => true,
])
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$simple_cache_disabled_class
Definition: caching.php:8
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246
elgg_get_config($name, $default=null)
Get an Elgg configuration value.

Definition at line 52 of file caching.php.

$params
Initial value:
= [
'label' => elgg_echo('installation:simplecache:label')
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21

Definition at line 10 of file caching.php.

$simple_cache_disabled_class = $is_simple_cache_on ? '' : 'elgg-state-disabled'

Definition at line 8 of file caching.php.

if (_elgg_config() ->hasInitialValue('simplecache_enabled')) $simple_cache_input = elgg_view("input/checkbox", $params)

Definition at line 25 of file caching.php.

$simple_cache_warning = elgg_echo('installation:simplecache:description')

Definition at line 17 of file caching.php.

if ($cache_symlinked) $symlink_input = elgg_view('input/checkbox', $params)

Definition at line 44 of file caching.php.

$symlink_paths_help = elgg_echo('installation:cache_symlink:paths', [$symlink_source, $symlink_target])

Definition at line 47 of file caching.php.

$symlink_source = elgg_get_root_path() . 'cache/'

Definition at line 45 of file caching.php.

$symlink_target = elgg_get_asset_path()

Definition at line 46 of file caching.php.

$symlink_warning = '<p class="elgg-text-help">' . elgg_echo('installation:cache_symlink:description') . '</p>'

Definition at line 36 of file caching.php.

$system_cache_input
Initial value:
'#type' => 'checkbox',
'label' => elgg_echo('installation:systemcache:label'),
'help' => elgg_echo('installation:systemcache:description'),
'name' => 'system_cache_enabled',
'switch' => true,
'#class' => 'mtm',
])
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1395
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_is_system_cache_enabled()
Is system cache enabled.
Definition: cache.php:68

Definition at line 68 of file caching.php.