FusionDirectory
 All Data Structures Files Functions Variables
Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
CopyPasteHandler Class Reference

This class contains all function to copy and paste. More...

Public Member Functions

 __construct ()
 Create CP handler. More...
 
 add_to_queue ($dn, $action, $type)
 Entry entry to Copy & Paste queue. A Queue entry is represented as follows. array['method'] - 'copy' or 'cut' array['dn'] - the dn of the object added to the queue array['type'] - Object type. More...
 
 cleanup_queue ()
 This removes all objects from queue. Remove hdd dumps of current entries too. Remove entries older than 24 hours.
 
 resetPaste ()
 This resets the queue to allow pasting again.
 
 entries_queued ()
 Check if there are still entries the object queue.
 
 execute ($base)
 Displays a dialog which allows the user to fix all dependencies of this object. Create unique names, ids, or what ever.
 
 last_entry ()
 Get the last endited entry. More...
 
 save_object ()
 Save new values posted by copy & paste dialog.
 
 generatePasteIcon ()
 Generate the paste icon for headpages. More...
 

Data Fields

 $lastdn = ""
 The dn of the last edited object.
 

Protected Member Functions

 load_entry_from_ldap ($entry, $base)
 Paste one entry from LDAP.
 

Protected Attributes

 $objectList = array()
 This array contains all dns of the currently copied objects.
 
 $queue = array()
 This array contains all remaining objects to paste.
 

Detailed Description

This class contains all function to copy and paste.

Definition at line 30 of file class_CopyPasteHandler.inc.

Constructor & Destructor Documentation

__construct ( )

Create CP handler.

Parameters
string$config

Definition at line 58 of file class_CopyPasteHandler.inc.

Member Function Documentation

add_to_queue (   $dn,
  $action,
  $type 
)

Entry entry to Copy & Paste queue. A Queue entry is represented as follows. array['method'] - 'copy' or 'cut' array['dn'] - the dn of the object added to the queue array['type'] - Object type.

Parameters
String$dnThe dn of the object added to the queue
String$actionCopy or Cut
String$typethe type of the object

Definition at line 78 of file class_CopyPasteHandler.inc.

References DEBUG().

generatePasteIcon ( )

Generate the paste icon for headpages.

Returns
the paste icon for headpages

Definition at line 327 of file class_CopyPasteHandler.inc.

References entries_queued().

last_entry ( )

Get the last endited entry.

Returns
the dn of the last edited entry

Definition at line 289 of file class_CopyPasteHandler.inc.

References $lastdn.


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