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

$body =

Definition at line 72 of file caching.php.

◆ $cache_symlinked

$cache_symlinked = _elgg_is_cache_symlinked()

Definition at line 25 of file caching.php.

◆ $is_simple_cache_on

$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

$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,
))
$simple_cache_disabled_class
Definition: caching.php:8
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
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

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

Definition at line 48 of file caching.php.

◆ $minify_js_input

$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,
))

Definition at line 49 of file caching.php.

◆ $params

$params
Initial value:
= array(
'label' => elgg_echo('installation:simplecache:label'),
'name' => 'simplecache_enabled',
'checked' => $is_simple_cache_on,
)
$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

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

Definition at line 8 of file caching.php.

◆ $simple_cache_input

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

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

Definition at line 16 of file caching.php.

◆ $symlink_input

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

Definition at line 41 of file caching.php.

◆ $symlink_paths_help

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

Definition at line 44 of file caching.php.

◆ $symlink_source

$symlink_source = elgg_get_root_path() . 'cache/'

Definition at line 42 of file caching.php.

◆ $symlink_target

$symlink_target = elgg_get_cache_path() . 'views_simplecache/'

Definition at line 43 of file caching.php.

◆ $symlink_warning

$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

$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_is_system_cache_enabled()
Is system cache enabled.
Definition: cache.php:60
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1424

Definition at line 63 of file caching.php.