FusionDirectory
Public Member Functions | Static Public Member Functions | Data Fields | Protected Attributes
pluglist Class Reference

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.
 

Detailed Description

This class contains all the function needed to make list of plugin and manage them.

See also
class_plugin

Definition at line 33 of file class_pluglist.inc.

Member Function Documentation

◆ check_access()

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.

Parameters
array$infosThe acl infos, may contain keys CLASS and/or ACL
Returns
Boolean TRUE on success FALSE otherwise

Definition at line 243 of file class_pluglist.inc.

Referenced by gen_menu(), and show_iconmenu().

◆ plugin_access_allowed()

plugin_access_allowed (   $plug_id)

This function checks if we are allowed to view the plugin with the given id.

Parameters
integer$plug_idThe ID of the plugin.
Returns
Boolean TRUE if we are allowed to view the plugin else FALSE

Definition at line 502 of file class_pluglist.inc.

◆ resetCache()

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().


The documentation for this class was generated from the following file: