|
FusionDirectory
|
This class contains all the function needed to make list of plugin and manage them. More...
Public Member Functions | |
| __construct () | |
| List the plugins. | |
| check_access ($infos) | |
| Check whether we are allowed to modify the given acl or not. More... | |
| get_infos ($cname) | |
| Get headline, description and icon of a plugin. | |
| gen_menu () | |
| Generate menu. | |
| show_iconmenu () | |
| Show the menu icon. | |
| plugin_access_allowed ($plug_id) | |
| This function checks if we are allowed to view the plugin with the given id. More... | |
| resetCache () | |
| Resets menu and ACL cache. More... | |
Static Public Member Functions | |
| static | load () |
| Loads plist and load it in config object. | |
Data Fields | |
| $info = [] | |
| The plInfo result for all plugin, using class as key. Contains the plugin index in 'INDEX' and the path in 'PATH'. | |
| $dnForeignRefs = [] | |
| Foreign references on DNs. | |
| $dirlist = [] | |
| Using the plugin index as a key, the class of the plugin. | |
Protected Attributes | |
| $allowed_plugins = [] | |
| List plugin indexes of all plugin that the user have acl for. | |
This class contains all the function needed to make list of plugin and manage them.
Definition at line 33 of file class_pluglist.inc.
| check_access | ( | $infos | ) |
Check whether we are allowed to modify the given acl or not.
This function is used to check which plugins are visible.
| array | $infos | The acl infos, may contain keys CLASS and/or ACL |
Definition at line 243 of file class_pluglist.inc.
Referenced by gen_menu(), and show_iconmenu().
| plugin_access_allowed | ( | $plug_id | ) |
This function checks if we are allowed to view the plugin with the given id.
| integer | $plug_id | The ID of the plugin. |
Definition at line 502 of file class_pluglist.inc.
| resetCache | ( | ) |
Resets menu and ACL cache.
Called when user ACL rights may have changed
Definition at line 512 of file class_pluglist.inc.
References session\get().
1.8.13