FusionDirectory
 All Data Structures Files Functions Variables
Public Member Functions | Data Fields
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...
 

Data Fields

 $info = array()
 The plInfo result for all plugin, using class as key. Contains the plugin index in 'INDEX' and the path in 'PATH'.
 
 $dirlist = array()
 Using the plugin index as a key, the class of the plugin.
 
 $allowed_plugins = array()
 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 34 of file class_pluglist.inc.

Member Function Documentation

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
string$aclnameThe acl tag to test, eg. "user/user:self", "systems",...
Returns
Boolean TRUE on success FALSE otherwise

Definition at line 219 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.

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

Definition at line 479 of file class_pluglist.inc.


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