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
 
 $url_options
 
 $error = $plugin->getError()
 

Variable Documentation

◆ $action

$action = ''

◆ $action_button

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

Definition at line 148 of file full.php.

◆ $actions_base

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

Definition at line 29 of file full.php.

◆ $active

$active = $plugin->isActive()

Definition at line 18 of file full.php.

◆ $attrs

if (elgg_view_exists( $settings_view_old)||elgg_view_exists( $settings_view_new)) $attrs
Initial value:
= [
'class' => $classes,
'id' => $css_id,
'data-guid' => $plugin->guid,
]
$css_id
Definition: full.php:30
$classes
Definition: full.php:34
$plugin
Definition: full.php:15

Definition at line 186 of file full.php.

◆ $can_activate

$can_activate = $plugin->canActivate()

Definition at line 25 of file full.php.

◆ $categories [1/2]

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

Definition at line 153 of file full.php.

◆ $categories [2/2]

$categories[] = "all"

Definition at line 155 of file full.php.

◆ $categories_html

$categories_html = ''

Definition at line 167 of file full.php.

◆ $classes

$classes = array('elgg-plugin')

Definition at line 34 of file full.php.

◆ $css_id

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

Definition at line 30 of file full.php.

◆ $description

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

Definition at line 176 of file full.php.

◆ $error

$error = $plugin->getError()

Definition at line 217 of file full.php.

◆ $links

$links = ''

Definition at line 33 of file full.php.

◆ $max_priority

$max_priority = _elgg_get_max_plugin_priority()

Definition at line 28 of file full.php.

◆ $options [1/5]

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

Definition at line 107 of file full.php.

◆ $options [2/5]

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

Definition at line 135 of file full.php.

◆ $options [3/5]

$options[ 'disabled'] = 'disabled'

Definition at line 137 of file full.php.

◆ $options [4/5]

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

Definition at line 136 of file full.php.

◆ $options [5/5]

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

Definition at line 134 of file full.php.

◆ $plugin

$plugin = $vars['entity']

Definition at line 15 of file full.php.

◆ $priority

$priority = $plugin->getPriority()

Definition at line 17 of file full.php.

◆ $reordering

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

Definition at line 16 of file full.php.

◆ $settings_link

$settings_link = ''

Definition at line 180 of file full.php.

◆ $settings_view_new

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

Definition at line 179 of file full.php.

◆ $settings_view_old

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

Definition at line 178 of file full.php.

◆ $url_options

$url_options
Initial value:
= array(
"href" => "ajax/view/object/plugin/details?guid=" . $plugin->getGUID(),
"text" => $plugin->getManifest()->getName(),
"class" => "elgg-lightbox elgg-plugin-title",
)

Definition at line 203 of file full.php.

◆ else

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

Definition at line 23 of file full.php.