FusionDirectory
 All Data Structures Files Functions Variables
Public Member Functions | Protected Member Functions
simpleManagement Class Reference
Inheritance diagram for simpleManagement:
Inheritance graph
[legend]

Public Member Functions

 setFilter ($filter)
 Set a new filter. More...
 
 registerAction ($action, $target)
 Every click in the list user interface sends an event here can we connect those events to a method. eg. see simpleManagement::registerEvent('new','createUser') When the action/event new is send, the method 'createUser' will be called.
 
 execute ()
 Execute this plugin Handle actions/events, locking, snapshots, dialogs, tabs,...
 
 newEntry ($action, array $target, array $all)
 This method intiates the object creation. More...
 
 editEntry ($action, array $target, array $all)
 This method opens an existing object or a list of existing objects to be edited. More...
 
 detectPostActions ()
 Detects actions/events send by the ui and the corresponding targets.
 
 handleActions ($action)
 Calls the registered method for a given action/event.
 
 closeDialogs ()
 This method closes dialogs and cleans up the cached object info and the ui.
 
 remove_lock ()
 Removes ldap object locks created by this class. Whenever an object is edited, we create locks to avoid concurrent modifications. This locks will automatically removed here.
 
 createSnapshotDialog ($action, array $target)
 Opens the snapshot creation dialog for the given target. More...
 
 restoreSnapshotDialog ($action, array $target)
 Displays the "Restore snapshot dialog" for a given target. If no target is specified, open the restore removed object dialog. More...
 
 copyPasteHandler ($action= '', array $target=array(), array $all=array())
 This method is used to queue and process copy&paste actions. Allows to copy, cut and paste mutliple entries at once. More...
 
 createSnapshot ($dn, $description)
 Creates a new snapshot entry.
 
 restoreSnapshot ($dn)
 Restores a snapshot object. More...
 
 getAllDeletedSnapshots ()
 Get all deleted snapshots. More...
 
 removeSnapshot ($dn)
 Delete a snapshot. More...
 

Protected Member Functions

 getHeader ()
 Generates the plugin header which is displayed whenever a tab object is opened.
 
 _getTabFooter ()
 Generates the footer which is used whenever a tab object is displayed.
 
 saveChanges ()
 Save object modifications and closes dialogs (returns to object listing). More...
 
 applyChanges ()
 Save object modifications and keep dialogs opened.
 
 cancelEdit ()
 Editing an object was caneled. Close dialogs/tabs and remove locks.
 
 removeEntryRequested ($action, array $target, array $all)
 Queue selected objects to be removed. Checks ACLs, Locks and ask for confirmation.
 

Detailed Description

Definition at line 117 of file class_simpleManagement.inc.

Member Function Documentation

copyPasteHandler (   $action = '',
array  $target = array(),
array  $all = array() 
)

This method is used to queue and process copy&paste actions. Allows to copy, cut and paste mutliple entries at once.

Parameters
String'action' The name of the action which was the used as trigger.
Array'target' A list of object dns, which should be affected by this method.
Array'all' A combination of both 'action' and 'target'.

Definition at line 1184 of file class_simpleManagement.inc.

References DEBUG().

createSnapshotDialog (   $action,
array  $target 
)

Opens the snapshot creation dialog for the given target.

Parameters
String$actionThe name of the action which was the used as trigger.
Array$targetA list of object dns, which should be affected by this method.
Array$allA combination of both 'action' and 'target'.

Definition at line 1107 of file class_simpleManagement.inc.

References DEBUG(), and msg_dialog\display().

editEntry (   $action,
array  $target,
array  $all 
)

This method opens an existing object or a list of existing objects to be edited.

Parameters
String$actionThe name of the action which was the used as trigger.
Array$targetA list of object dns, which should be affected by this method.
Array$allA combination of both 'action' and 'target'.

Definition at line 847 of file class_simpleManagement.inc.

References add_lock(), DEBUG(), gen_locked_message(), get_locks(), and objects\open().

getAllDeletedSnapshots ( )

Get all deleted snapshots.

Parameters
string$baseThe base

Definition at line 1281 of file class_simpleManagement.inc.

newEntry (   $action,
array  $target,
array  $all 
)

This method intiates the object creation.

Parameters
String$actionThe name of the action which was the used as trigger.
Array$targetA list of object dns, which should be affected by this method.
Array$allA combination of both 'action' and 'target'.

Definition at line 668 of file class_simpleManagement.inc.

References DEBUG(), and objects\open().

removeSnapshot (   $dn)

Delete a snapshot.

Parameters
string$dnDN of the snapshot

Definition at line 1310 of file class_simpleManagement.inc.

restoreSnapshot (   $dn)

Restores a snapshot object.

Parameters
String$dnThe DN of the snapshot

Definition at line 1263 of file class_simpleManagement.inc.

References DEBUG(), and msg_dialog\display().

restoreSnapshotDialog (   $action,
array  $target 
)

Displays the "Restore snapshot dialog" for a given target. If no target is specified, open the restore removed object dialog.

Parameters
String$actionThe name of the action which was the used as trigger.
Array$targetA list of object dns, which should be affected by this method.
Array$all,'A combination of both 'action' and 'target'.

Definition at line 1138 of file class_simpleManagement.inc.

References DEBUG(), and msg_dialog\display().

saveChanges ( )
protected

Save object modifications and closes dialogs (returns to object listing).

Definition at line 774 of file class_simpleManagement.inc.

References DEBUG().

setFilter (   $filter)

Set a new filter.

Parameters
object$filterThe new filter

Definition at line 482 of file class_simpleManagement.inc.


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