| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
 Collaboration diagram for ilCopyWizardOptions:
 Collaboration diagram for ilCopyWizardOptions:| Public Member Functions | |
| saveOwner ($a_user_id) | |
| Save owner for copy. | |
| saveRoot ($a_root) | |
| Save root node id. | |
| isRootNode ($a_root) | |
| Is root node. | |
| disableSOAP () | |
| Disable soap calls. | |
| isSOAPEnabled () | |
| Check if SOAP calls are disabled. | |
| checkOwner ($a_user_id) | |
| check owner | |
| getCopyId () | |
| Get copy id. | |
| initContainer ($a_source_id, $a_target_id) | |
| Init container Add copy entry. | |
| storeTree ($a_source_id) | |
| Save tree Stores two copies of the tree structure: id 0 is used for recursive call of cloneObject() id -1 is used for recursive call of cloneDependencies() | |
| fetchFirstNode () | |
| Fetch first node for cloneObject. | |
| fetchFirstDependenciesNode () | |
| Fetch first dependencies node. | |
| dropFirstNodeById ($a_id) | |
| Drop first node by id. | |
| dropFirstNode () | |
| Drop first node (for cloneObject()) | |
| dropFirstDependenciesNode () | |
| Drop first node (for cloneDependencies()) | |
| getOptions ($a_source_id) | |
| Get entry by source. | |
| addEntry ($a_source_id, $a_options) | |
| Add new entry. | |
| appendMapping ($a_source_id, $a_target_id) | |
| Add mapping of source -> target. | |
| getMappings () | |
| Get Mappings. | |
| deleteAll () | |
| Delete all entries. | |
| read () | |
| public | |
| Static Public Member Functions | |
| static | _getInstance ($a_copy_id) | 
| Get instance of copy wizard options. | |
| static | _isFinished ($a_copy_id) | 
| check if copy is finished | |
| static | _allocateCopyId () | 
| Allocate a copy for further entries. | |
| Data Fields | |
| const | COPY_WIZARD_OMIT = 1 | 
| const | COPY_WIZARD_COPY = 2 | 
| const | COPY_WIZARD_LINK = 3 | 
| const | OWNER_KEY = -3 | 
| const | DISABLE_SOAP = -4 | 
| const | ROOT_NODE = -5 | 
| Private Member Functions | |
| __construct ($a_copy_id=0) | |
| Private Constructor (Singleton class) | |
| fetchFirstNodeById ($a_id) | |
| Get first node of stored tree. | |
| readTree ($a_source_id) | |
| Purge ommitted node recursively. | |
| Private Attributes | |
| $db | |
| $copy_id | |
| $source_id | |
| $options = array() | |
| Static Private Attributes | |
| static | $instances = null | 
Definition at line 32 of file class.ilCopyWizardOptions.php.
| 
 | private | 
Private Constructor (Singleton class)
private
| int | copy_id | 
Definition at line 57 of file class.ilCopyWizardOptions.php.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Allocate a copy for further entries.
public
Definition at line 112 of file class.ilCopyWizardOptions.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilContainer\cloneAllObject(), ilObjectGUI\cloneAllObject(), ilSoapObjectAdministration\copyObject(), and ilObjectCopyGUI\copySingleObject().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Get instance of copy wizard options.
public
| int | copy id | 
Definition at line 78 of file class.ilCopyWizardOptions.php.
Referenced by ilObject\appendCopyInfo(), ilContainer\cloneAllObject(), ilObjectGUI\cloneAllObject(), ilLPCollections\cloneCollections(), ilCourseObjectiveMaterials\cloneDependencies(), ilCourseItems\cloneDependencies(), ilCourseObjectiveQuestion\cloneDependencies(), ilCourseStart\cloneDependencies(), ilEventItems\cloneItems(), ilObjForum\cloneObject(), ilObjTest\cloneObject(), ilSoapObjectAdministration\copyObject(), ilObjectCopyGUI\copySingleObject(), ilSoapUtils\ilClone(), and ilSoapUtils\ilCloneDependencies().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
check if copy is finished
public
| int | copy id | 
Definition at line 95 of file class.ilCopyWizardOptions.php.
References $ilDB, $query, and $res.
Referenced by ilContainer\cloneAllObject().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCopyWizardOptions::addEntry | ( | $a_source_id, | |
| $a_options | |||
| ) | 
Add new entry.
public
| int | ref_id of source | 
| array | array of options | 
Definition at line 412 of file class.ilCopyWizardOptions.php.
References $ilDB, $query, and $res.
Referenced by initContainer().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCopyWizardOptions::appendMapping | ( | $a_source_id, | |
| $a_target_id | |||
| ) | 
Add mapping of source -> target.
public
| int | source ref_id | 
| int | target ref_id | 
Definition at line 442 of file class.ilCopyWizardOptions.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and getCopyId().
Referenced by initContainer().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCopyWizardOptions::checkOwner | ( | $a_user_id | ) | 
check owner
public
| int | user_id | 
Definition at line 224 of file class.ilCopyWizardOptions.php.
References getOptions().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCopyWizardOptions::deleteAll | ( | ) | 
| ilCopyWizardOptions::disableSOAP | ( | ) | 
Disable soap calls.
Recursive call of ilClone and ilCloneDependencies
public
Definition at line 187 of file class.ilCopyWizardOptions.php.
References $ilDB, DISABLE_SOAP, and getCopyId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCopyWizardOptions::dropFirstDependenciesNode | ( | ) | 
Drop first node (for cloneDependencies())
public
Definition at line 383 of file class.ilCopyWizardOptions.php.
References dropFirstNodeById().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCopyWizardOptions::dropFirstNode | ( | ) | 
Drop first node (for cloneObject())
public
Definition at line 372 of file class.ilCopyWizardOptions.php.
References dropFirstNodeById().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCopyWizardOptions::dropFirstNodeById | ( | $a_id | ) | 
Drop first node by id.
private
Definition at line 336 of file class.ilCopyWizardOptions.php.
References $ilDB, fetchFirstNodeById(), getCopyId(), and read().
Referenced by dropFirstDependenciesNode(), and dropFirstNode().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCopyWizardOptions::fetchFirstDependenciesNode | ( | ) | 
Fetch first dependencies node.
public
Definition at line 325 of file class.ilCopyWizardOptions.php.
References fetchFirstNodeById().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCopyWizardOptions::fetchFirstNode | ( | ) | 
Fetch first node for cloneObject.
public
Definition at line 314 of file class.ilCopyWizardOptions.php.
References fetchFirstNodeById().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Get first node of stored tree.
private
Definition at line 297 of file class.ilCopyWizardOptions.php.
References getOptions().
Referenced by dropFirstNodeById(), fetchFirstDependenciesNode(), and fetchFirstNode().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCopyWizardOptions::getCopyId | ( | ) | 
Get copy id.
public
Definition at line 235 of file class.ilCopyWizardOptions.php.
References $copy_id.
Referenced by appendMapping(), disableSOAP(), dropFirstNodeById(), saveOwner(), saveRoot(), and storeTree().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCopyWizardOptions::getMappings | ( | ) | 
Get Mappings.
public
Definition at line 478 of file class.ilCopyWizardOptions.php.
| ilCopyWizardOptions::getOptions | ( | $a_source_id | ) | 
Get entry by source.
public
| int | source ref_id | 
Definition at line 395 of file class.ilCopyWizardOptions.php.
Referenced by checkOwner(), fetchFirstNodeById(), and isRootNode().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCopyWizardOptions::initContainer | ( | $a_source_id, | |
| $a_target_id | |||
| ) | 
Init container Add copy entry.
public
Definition at line 249 of file class.ilCopyWizardOptions.php.
References addEntry(), appendMapping(), and COPY_WIZARD_COPY.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCopyWizardOptions::isRootNode | ( | $a_root | ) | 
Is root node.
public
| int | ref_id of copy | 
Definition at line 175 of file class.ilCopyWizardOptions.php.
References getOptions().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCopyWizardOptions::isSOAPEnabled | ( | ) | 
Check if SOAP calls are disabled.
public
Definition at line 206 of file class.ilCopyWizardOptions.php.
| ilCopyWizardOptions::read | ( | ) | 
public
Definition at line 509 of file class.ilCopyWizardOptions.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by __construct(), and dropFirstNodeById().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Purge ommitted node recursively.
private
| array | current node | 
Definition at line 533 of file class.ilCopyWizardOptions.php.
References $options.
Referenced by storeTree().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilCopyWizardOptions::saveOwner | ( | $a_user_id | ) | 
Save owner for copy.
It will be checked against this user id in all soap calls
public
Definition at line 134 of file class.ilCopyWizardOptions.php.
References $ilDB, and getCopyId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCopyWizardOptions::saveRoot | ( | $a_root | ) | 
Save root node id.
public
| int | ref_id of copy source | 
Definition at line 154 of file class.ilCopyWizardOptions.php.
References $ilDB, and getCopyId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilCopyWizardOptions::storeTree | ( | $a_source_id | ) | 
Save tree Stores two copies of the tree structure: id 0 is used for recursive call of cloneObject() id -1 is used for recursive call of cloneDependencies()
public
| int | source id | 
Definition at line 268 of file class.ilCopyWizardOptions.php.
References $ilDB, getCopyId(), and readTree().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Definition at line 46 of file class.ilCopyWizardOptions.php.
Referenced by getCopyId().
| 
 | private | 
Definition at line 44 of file class.ilCopyWizardOptions.php.
| 
 | staticprivate | 
Definition at line 34 of file class.ilCopyWizardOptions.php.
| 
 | private | 
Definition at line 48 of file class.ilCopyWizardOptions.php.
Referenced by readTree().
| 
 | private | 
Definition at line 47 of file class.ilCopyWizardOptions.php.
| const ilCopyWizardOptions::COPY_WIZARD_COPY = 2 | 
Definition at line 37 of file class.ilCopyWizardOptions.php.
Referenced by ilCopyWizardExplorer\buildSelect(), ilCopyWizardPage\fetchSelected(), ilCopyWizardPage\fillItemBlock(), ilCopyWizardPage\fillMainBlock(), ilObjectCopySelectionTableGUI\fillRow(), ilCopyWizardPage\fillTreeSelection(), ilCopyWizardSettingsXMLParser\getActionForString(), ilCopyWizardSettingsXMLParser\handlerBeginTag(), ilSoapUtils\ilClone(), ilSoapUtils\ilCloneDependencies(), and initContainer().
| const ilCopyWizardOptions::COPY_WIZARD_LINK = 3 | 
Definition at line 38 of file class.ilCopyWizardOptions.php.
Referenced by ilCopyWizardExplorer\buildSelect(), ilCopyWizardPage\fillItemBlock(), ilCopyWizardPage\fillMainBlock(), ilObjectCopySelectionTableGUI\fillRow(), ilCopyWizardPage\fillTreeSelection(), ilCopyWizardSettingsXMLParser\getActionForString(), ilCopyWizardSettingsXMLParser\handlerBeginTag(), ilSoapUtils\ilClone(), and ilSoapUtils\ilCloneDependencies().
| const ilCopyWizardOptions::COPY_WIZARD_OMIT = 1 | 
Definition at line 36 of file class.ilCopyWizardOptions.php.
Referenced by ilCopyWizardExplorer\buildSelect(), ilCopyWizardPage\fillItemBlock(), ilCopyWizardPage\fillMainBlock(), ilObjectCopySelectionTableGUI\fillRow(), ilCopyWizardPage\fillTreeSelection(), ilCopyWizardSettingsXMLParser\getActionForString(), ilSoapUtils\ilClone(), and ilSoapUtils\ilCloneDependencies().
| const ilCopyWizardOptions::DISABLE_SOAP = -4 | 
Definition at line 41 of file class.ilCopyWizardOptions.php.
Referenced by disableSOAP().
| const ilCopyWizardOptions::OWNER_KEY = -3 | 
Definition at line 40 of file class.ilCopyWizardOptions.php.
| const ilCopyWizardOptions::ROOT_NODE = -5 | 
Definition at line 42 of file class.ilCopyWizardOptions.php.