Elgg  Version 2.3
Namespaces | Variables
full.php File Reference

Go to the source code of this file.

Namespaces

 Elgg\Core
 Activate a plugin or plugins.
 

Variables

 $plugin = $vars['entity']
 
 $reordering = elgg_extract('display_reordering', $vars, false)
 
 $priority = $plugin->getPriority()
 
 $active = $plugin->isActive()
 
if($plugin->isActive()) else
 
 $can_activate = $plugin->canActivate()
 
 $max_priority = _elgg_get_max_plugin_priority()
 
 $actions_base = '/action/admin/plugins/'
 
 $css_id = preg_replace('/[^a-z0-9-]/i', '-', $plugin->getID())
 
 $links = ''
 
 $classes = array('elgg-plugin')
 
 $options
 
 $action = ''
 
 $options ['title'] = elgg_echo('admin:plugins:cannot_activate')
 
 $options ['class'] = 'elgg-button elgg-button-submit elgg-state-disabled'
 
 $options ['text'] = elgg_echo('admin:plugins:activate')
 
 $options ['disabled'] = 'disabled'
 
if($action$action_button = elgg_view('output/url', $options)
 
 $categories = $plugin->getManifest()->getCategories()
 
 $categories [] = "all"
 
 $categories_html = ''
 
if($categories) $description = elgg_view('output/longtext', array('value' => $plugin->getManifest()->getDescription()))
 
 $settings_view_old = 'settings/' . $plugin->getID() . '/edit'
 
 $settings_view_new = 'plugins/' . $plugin->getID() . '/settings'
 
 $settings_link = ''
 
if(elgg_view_exists($settings_view_old)||elgg_view_exists($settings_view_new)) $attrs
 
if(elgg_view_exists($settings_view_old)||elgg_view_exists($settings_view_new)) $url_options
 
 $error = $plugin->getError()
 

Variable Documentation

$action = ''
$action_button = elgg_view('output/url', $options)

Definition at line 148 of file full.php.

$actions_base = '/action/admin/plugins/'

Definition at line 29 of file full.php.

$active = $plugin->isActive()

Definition at line 18 of file full.php.

if (elgg_view_exists($settings_view_old)||elgg_view_exists($settings_view_new)) $attrs
Initial value:
= [
'class' => $classes
$classes
Definition: full.php:34

Definition at line 186 of file full.php.

$can_activate = $plugin->canActivate()

Definition at line 25 of file full.php.

$categories = $plugin->getManifest()->getCategories()

Definition at line 153 of file full.php.

$categories[] = "all"

Definition at line 155 of file full.php.

$categories_html = ''

Definition at line 167 of file full.php.

$classes = array('elgg-plugin')

Definition at line 34 of file full.php.

$css_id = preg_replace('/[^a-z0-9-]/i', '-', $plugin->getID())

Definition at line 30 of file full.php.

if ($categories) $description = elgg_view('output/longtext', array('value' => $plugin->getManifest()->getDescription()))

Definition at line 176 of file full.php.

$error = $plugin->getError()

Definition at line 217 of file full.php.

$links = ''

Definition at line 33 of file full.php.

$max_priority = _elgg_get_max_plugin_priority()

Definition at line 28 of file full.php.

$options
Initial value:
= array(
'is_action' => true,
'is_trusted' => true,
)

Definition at line 107 of file full.php.

$options['title'] = elgg_echo('admin:plugins:cannot_activate')

Definition at line 134 of file full.php.

$options['class'] = 'elgg-button elgg-button-submit elgg-state-disabled'

Definition at line 135 of file full.php.

$options['text'] = elgg_echo('admin:plugins:activate')

Definition at line 136 of file full.php.

$options['disabled'] = 'disabled'

Definition at line 137 of file full.php.

$plugin = $vars['entity']

Definition at line 15 of file full.php.

$priority = $plugin->getPriority()

Definition at line 17 of file full.php.

$reordering = elgg_extract('display_reordering', $vars, false)

Definition at line 16 of file full.php.

$settings_link = ''

Definition at line 180 of file full.php.

$settings_view_new = 'plugins/' . $plugin->getID() . '/settings'

Definition at line 179 of file full.php.

$settings_view_old = 'settings/' . $plugin->getID() . '/edit'

Definition at line 178 of file full.php.

if (elgg_view_exists($settings_view_old)||elgg_view_exists($settings_view_new)) $url_options
Initial value:
= array(
"href" => "ajax/view/object/plugin/details?guid=" . $plugin->getGUID(),
"text" => $plugin->getManifest()->getName(),
"class" => "elgg-lightbox elgg-plugin-title",
)
$plugin
Definition: full.php:15

Definition at line 203 of file full.php.

if (!in_array("bundled", $categories)) if ($active) else
Initial value:
{
$can_deactivate = false

Definition at line 23 of file full.php.