Elgg  Version 2.3
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 = '<p class="elgg-text-help">' . elgg_echo('installation:simplecache:description') . '</p>'
 
if($GLOBALS['_ELGG']->simplecache_enabled_in_settings) $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_cache_path() . 'views_simplecache/'
 
 $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>
</div>
<div>
</div>
<div>
</div>
BODY
if($cache_symlinked) $symlink_input
Definition: caching.php:41
$minify_css_input
Definition: caching.php:56
$symlink_warning
Definition: caching.php:33
$minify_js_input
Definition: caching.php:49
$system_cache_input
Definition: caching.php:63
if($GLOBALS['_ELGG']->simplecache_enabled_in_settings) $simple_cache_input
Definition: caching.php:23
$minify_description
Definition: caching.php:48
fieldset div
Definition: admin.css.php:485
p
Definition: admin.css.php:118
$simple_cache_warning
Definition: caching.php:16

Definition at line 72 of file caching.php.

$cache_symlinked = _elgg_is_cache_symlinked()

Definition at line 25 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", array(
'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,
))
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_echo($message_key, $args=array(), $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=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336

Definition at line 56 of file caching.php.

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

Definition at line 48 of file caching.php.

$minify_js_input
Initial value:
= elgg_view("input/checkbox", array(
'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,
))
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_echo($message_key, $args=array(), $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=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336

Definition at line 49 of file caching.php.

$params
Initial value:
= array(
'label' => elgg_echo('installation:simplecache:label'),
'name' => 'simplecache_enabled',
'checked' => $is_simple_cache_on,
)
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$is_simple_cache_on
Advanced site settings, caching section.
Definition: caching.php:7

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 ($GLOBALS['_ELGG']->simplecache_enabled_in_settings) $simple_cache_input = elgg_view("input/checkbox", $params)

Definition at line 23 of file caching.php.

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

Definition at line 16 of file caching.php.

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

Definition at line 41 of file caching.php.

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

Definition at line 44 of file caching.php.

$symlink_source = elgg_get_root_path() . 'cache/'

Definition at line 42 of file caching.php.

$symlink_target = elgg_get_cache_path() . 'views_simplecache/'

Definition at line 43 of file caching.php.

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

Definition at line 33 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',
'#class' => 'mtm',
])
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1424
elgg_echo($message_key, $args=array(), $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:60

Definition at line 63 of file caching.php.