13 define(
'ELGG_PLUGIN_INCLUDE_START', 1);
18 define(
'ELGG_PLUGIN_REGISTER_VIEWS', 2);
23 define(
'ELGG_PLUGIN_REGISTER_LANGUAGES', 4);
28 define(
'ELGG_PLUGIN_REGISTER_CLASSES', 8);
41 define(
'ELGG_PLUGIN_USER_SETTING_PREFIX',
'plugin:user_setting:');
48 define(
'ELGG_PLUGIN_INTERNAL_PREFIX',
'elgg:internal:');
451 $value[] = $CONFIG->path .
'engine/tests/ElggCorePluginsAPITest.php';
471 $dependents = array();
472 foreach ($active_plugins as
$plugin) {
473 $manifest = $plugin->getManifest();
474 $requires = $manifest->getRequires();
476 foreach ($requires as $required) {
477 if ($required[
'type'] ==
'plugin' && $required[
'name'] ==
$plugin_id) {
479 $dependents[$manifest->getPluginID()] =
$plugin;
487 foreach ($dependents as $dependent) {
488 $list .=
'<li>' . $dependent->getManifest()->getName() .
'</li>';
537 $events->registerHandler(
'init',
'system',
'_elgg_plugins_init');
_elgg_get_plugins_provides($type=null, $name=null)
Returns an array of all provides from all active plugins.
elgg_get_entities_from_plugin_user_settings(array $options=array())
Returns entities based upon plugin user settings.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
elgg_set_plugin_setting($name, $value, $plugin_id=null)
Set a setting for a plugin.
if($guid==elgg_get_logged_in_user_guid()) $name
_elgg_check_plugins_provides($type, $name, $version=null, $comparison= 'ge')
Checks if a plugin is currently providing $type and $name, and optionally checking a version...
elgg_get_all_plugin_user_settings($user_guid=0, $plugin_id=null, $return_obj=false)
Returns an array of all plugin user settings for a user.
elgg_register_plugin_hook_handler($hook, $type, $callback, $priority=500)
_elgg_load_plugins()
Loads all active plugins in the order specified in the tool admin panel.
_elgg_namespace_plugin_private_setting($type, $name, $id=null)
Namespaces a string to be used as a private setting name for a plugin.
_elgg_cache_plugin_by_id(\ElggPlugin $plugin)
Cache a reference to this plugin by its ID.
elgg_unset_all_plugin_settings($plugin_id=null)
Unsets all plugin settings for a plugin.
_plugins_deactivate_dependency_check($event, $type, $params)
Checks on deactivate plugin event if disabling it won't create unmet dependencies and blocks disable ...
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
_elgg_get_plugin_dependency_strings($dep)
Returns an array of parsed strings for a dependency in the format: array( 'type' => requires...
elgg_set_plugin_user_setting($name, $value, $user_guid=0, $plugin_id=null)
Set a user specific setting for a plugin.
elgg_get_root_path()
Get the root directory path for this installation.
_elgg_get_max_plugin_priority()
Returns the highest priority of the plugins.
elgg global
Pointer to the global context.
elgg_register_library($name, $location)
Register a PHP file as a library.
elgg_get_plugin_user_setting($name, $user_guid=0, $plugin_id=null, $default=null)
Get a user specific setting for a plugin.
elgg_register_event_handler($event, $object_type, $callback, $priority=500)
elgg_plugin_exists($id)
Returns if a plugin exists in the system.
_elgg_plugins_init()
Initialize the plugin system.
elgg_unset_plugin_user_setting($name, $user_guid=0, $plugin_id=null)
Unsets a user-specific plugin setting.
_elgg_plugins_test($hook, $type, $value, $params)
Runs unit tests for plugin API.
elgg_get_plugins($status= 'active', $site_guid=null)
Returns an ordered list of plugins.
elgg_unset_plugin_setting($name, $plugin_id=null)
Unsets a plugin setting.
_elgg_set_plugin_priorities(array $order)
Reorder plugins to an order specified by the array.
elgg register_error
Wrapper function for system_messages.
elgg_get_plugin_setting($name, $plugin_id=null, $default=null)
Get setting for a plugin.
elgg_register_ajax_view($view)
Register a view to be available for ajax calls.
_elgg_reindex_plugin_priorities()
Reindexes all plugin priorities starting at 1.
elgg_is_active_plugin($plugin_id, $site_guid=null)
Returns if a plugin is active for a current site.
_elgg_invalidate_plugins_provides_cache()
Deletes all cached data on plugins being provided.
elgg_register_action($action, $filename="", $access= 'logged_in')
Registers an action.
_elgg_get_plugin_dirs_in_dir($dir=null)
Returns a list of plugin directory names from a base directory.
$user_guid
Avatar remove action.
if(!$collection_name) $id
define(function(require){var $=require('jquery');var active=false;var SHOW_DELAY=20;$('body').append('< div class="elgg-spinner">< div class="elgg-ajax-loader"></div ></div >');return{start:function(){active=true;setTimeout(function(){if(active){$('body').addClass('elgg-spinner-active');}}, SHOW_DELAY);}, stop:function(){active=false;$('body').removeClass('elgg-spinner-active');}};})
_elgg_generate_plugin_entities()
Discovers plugins in the plugins_path setting and creates entities for them if they don't exist...
elgg_get_plugin_from_id($plugin_id)
Returns an object with the path $path.
if(!($plugin instanceof ElggPlugin)) $plugin_name