메소드 |
설명 |
|
__construct ( Elgg\Cache\Pool $pool, PluginSettingsCache $cache ) |
Constructor |
|
cache ( ElggPlugin $plugin ) |
Cache a reference to this plugin by its ID |
|
checkProvides ( string $type, string $name, string $version = null, string $comparison = 'ge' ) : array |
Checks if a plugin is currently providing $type and $name, and optionally
checking a version. |
|
exists ( string $id ) : boolean |
Returns if a plugin exists in the system. |
|
find ( string $status = 'active' ) : ElggPlugin[] |
Returns an ordered list of plugins |
|
generateEntities ( ) : boolean |
Discovers plugins in the plugins_path setting and creates \ElggPlugin
entities for them if they don't exist. If there are plugins with entities
but not actual files, will disable the \ElggPlugin entities and mark as inactive. |
|
get ( string $plugin_id ) : ElggPlugin | null |
Returns an \ElggPlugin object with the path $path. |
|
getAllUserSettings ( integer $user_guid, string $plugin_id, boolean $return_obj = false ) : array |
Returns an array of all plugin user settings for a user. |
|
getDependencyStrings ( array $dep ) : array |
Returns an array of parsed strings for a dependency in the
format: array(
'type' => requires, conflicts, or provides. |
|
getDirsInDir ( string $dir = null ) : array |
Returns a list of plugin directory names from a base directory. |
|
getEntitiesFromUserSettings ( array $options = [] ) : mixed |
Returns entities based upon plugin user settings. |
|
getMaxPriority ( ) : integer |
Returns the highest priority of the plugins |
|
getProvides ( string $type = null, string $name = null ) : array |
Returns an array of all provides from all active plugins. |
|
getSetting ( string $name, string $plugin_id, mixed $default = null ) : mixed |
Get setting for a plugin. |
|
getUserSetting ( string $name, integer $user_guid, string $plugin_id, mixed $default = null ) : mixed |
Get a user specific setting for a plugin. |
|
invalidateIsActiveCache ( ) : void |
Delete the cache holding whether plugins are active or not |
|
invalidateProvidesCache ( ) : boolean |
Deletes all cached data on plugins being provided. |
|
isActive ( string $plugin_id ) : boolean |
Returns if a plugin is active for a current site. |
|
load ( ) : boolean |
Loads all active plugins in the order specified in the tool admin panel. |
|
namespacePrivateSetting ( string $type, string $name, string $id = null ) : string |
Namespaces a string to be used as a private setting name for a plugin. |
|
reindexPriorities ( ) : boolean |
Reindexes all plugin priorities starting at 1. |
|
setBootPlugins ( array $plugins ) : void |
Set the list of active plugins according to the boot data cache |
|
setPriorities ( array $order ) : boolean |
Reorder plugins to an order specified by the array. |
|
setSetting ( string $name, mixed $value, string $plugin_id ) : boolean |
Set a setting for a plugin. |
|
setUserSetting ( string $name, mixed $value, integer $user_guid, string $plugin_id ) : boolean |
Set a user specific setting for a plugin. |
|
unsetAllSettings ( string $plugin_id ) : boolean |
Unsets all plugin settings for a plugin. |
|
unsetSetting ( string $name, string $plugin_id ) : boolean |
Unsets a plugin setting. |
|
unsetUserSetting ( string $name, integer $user_guid, string $plugin_id ) : boolean |
Unsets a user-specific plugin setting |
|