Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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
 
if($GLOBALS['_ELGG']->
simplecache_enabled_in_settings) 
$simple_cache_input = elgg_view("input/checkbox", $params)
 
 $simple_cache_warning = ''
 
if($GLOBALS['_ELGG']->
simplecache_enabled_in_settings) 
$cache_symlinked = _elgg_is_cache_symlinked()
 
 $symlink_warning = ''
 
if($cache_symlinked) $symlink_input = elgg_view("input/checkbox", $params)
 
if($cache_symlinked) $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_js_input
 
 $minify_css_input
 
 $system_cache_input
 

Variable Documentation

if ($GLOBALS['_ELGG']->simplecache_enabled_in_settings) $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", 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:342

Definition at line 57 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:342

Definition at line 50 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 19 of file caching.php.

$simple_cache_warning = ''

Definition at line 20 of file caching.php.

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

Definition at line 40 of file caching.php.

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

Definition at line 46 of file caching.php.

if ($cache_symlinked) $symlink_source = elgg_get_root_path() . 'cache/'

Definition at line 44 of file caching.php.

$symlink_target = elgg_get_cache_path() . 'views_simplecache/'

Definition at line 45 of file caching.php.

$symlink_warning = ''

Definition at line 35 of file caching.php.

$system_cache_input
Initial value:
= elgg_view("input/checkbox", array(
'label' => elgg_echo('installation:systemcache:label'),
'name' => 'system_cache_enabled',
))
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:342
elgg_is_system_cache_enabled()
Is system cache enabled.
Definition: cache.php:60

Definition at line 64 of file caching.php.