|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
GUI class for the workflow of copying objects. More...
Collaboration diagram for ilObjectCopyGUI:Public Member Functions | |
| __construct ($a_parent_gui) | |
| Constructor. More... | |
| executeCommand () | |
| Control class handling. More... | |
| showTargetSelectionTree () | |
| Show target selection. More... | |
| showSourceSelectionTree () | |
| Show target selection. More... | |
| setMode ($a_mode) | |
| set copy mode More... | |
| getMode () | |
| get copy mode More... | |
| setSubMode ($a_mode) | |
| getSubMode () | |
| getParentObject () | |
| Get parent gui object. More... | |
| getType () | |
| Returns $type. More... | |
| setType ($type) | |
| Sets $type. More... | |
| setSource (array $a_source_ids) | |
| Set source id. More... | |
| getSource () | |
| Get source id. More... | |
| getSources () | |
| Get sources. More... | |
| getFirstSource () | |
| setTarget ($a_ref_id) | |
| Set single object target. More... | |
| setTargets (array $a_target) | |
| Set target id. More... | |
| getTargets () | |
| Get copy target. More... | |
| getFirstTarget () | |
| Get first target. More... | |
| keepObjectsInClipboard () | |
| Keep objects in clipboard. More... | |
| copyMultipleNonContainer ($a_sources) | |
| Copy multiple non container. More... | |
| showSourceSearch ($a_tplvar) | |
| Show init screen Normally shown below the create and import form when creating a new object. More... | |
Data Fields | |
| const | SOURCE_SELECTION = 1 |
| const | TARGET_SELECTION = 2 |
| const | SEARCH_SOURCE = 3 |
| const | SUBMODE_COMPLETE = 1 |
| const | SUBMODE_CONTENT_ONLY = 2 |
| const | TAB_SELECTION_TARGET_TREE = 1 |
| const | TAB_SELECTION_SOURCE_TREE = 2 |
| const | TAB_SELECTION_MEMBERSHIP = 3 |
| const | TAB_GROUP_SC_SELECTION = 1 |
Protected Member Functions | |
| init () | |
| Init return, mode. More... | |
| initTabs () | |
| Init tabs General. More... | |
| setTabs ($a_tab_group, $a_active_tab) | |
| Set tabs. More... | |
| adoptContent () | |
| Adopt content (crs in crs, grp in grp, crs in grp or grp in crs) More... | |
| initTargetSelection () | |
| Init copy from repository/search list commands. More... | |
| initSourceSelection () | |
| Init source selection. More... | |
| showSourceSelectionMembership () | |
| show target selection membership More... | |
| saveTarget () | |
| Save target selection. More... | |
| cancel () | |
| Cancel workflow. More... | |
| searchSource () | |
| Search source. More... | |
| saveSource () | |
| select source object More... | |
| saveSourceMembership () | |
| Save selected source from membership screen. More... | |
| showItemSelection () | |
| copySingleObject () | |
| Start cloning a single (not container) object. More... | |
| copyContainerToTargets () | |
| Copy to multiple targets. More... | |
| showCopyProgress () | |
| Show progress for copying. More... | |
| updateProgress () | |
| Update progress. More... | |
| copyContainer ($a_target) | |
| Copy a container. More... | |
| sourceExists () | |
| Check if there is any source object. More... | |
| initFormSearch () | |
| Init search form. More... | |
| unsetSession () | |
| Unset session variables. More... | |
Protected Attributes | |
| $ctrl | |
| $tree | |
| $tabs | |
| $toolbar | |
| $tpl | |
| $obj_definition | |
| $obj_data_cache | |
| $access | |
| $error | |
| $rbacsystem | |
| $user | |
| $rbacreview | |
Private Attributes | |
| $mode = 0 | |
| $sub_mode = self::SUBMODE_COMPLETE | |
| $lng | |
| $parent_obj = null | |
| $type = '' | |
| $sources = array() | |
| $targets = array() | |
| $targets_copy_id = array() | |
| $log = null | |
GUI class for the workflow of copying objects.
@ilCtrl_Calls ilObjectCopyGUI:
Definition at line 15 of file class.ilObjectCopyGUI.php.
| ilObjectCopyGUI::__construct | ( | $a_parent_gui | ) |
Constructor.
Definition at line 119 of file class.ilObjectCopyGUI.php.
References $DIC, $ilCtrl, $lng, error(), ilLoggerFactory\getLogger(), and user().
Here is the call graph for this function:
|
protected |
Adopt content (crs in crs, grp in grp, crs in grp or grp in crs)
Definition at line 282 of file class.ilObjectCopyGUI.php.
References $_GET, $GLOBALS, initSourceSelection(), setMode(), setSubMode(), and setTarget().
Here is the call graph for this function:
|
protected |
Cancel workflow.
Definition at line 735 of file class.ilObjectCopyGUI.php.
|
protected |
Copy a container.
Definition at line 1141 of file class.ilObjectCopyGUI.php.
References $_COOKIE, $_POST, $access, $ctrl, $error, $ilCtrl, $ilErr, $ilLog, $ilUser, $log, $options, $orig, $rbacsystem, $result, $target_type, $tree, $user, ilObject\_lookupObjId(), ilObject\_lookupType(), getFirstSource(), ilObjectFactory\getInstanceByRefId(), ilLoggerFactory\getLogger(), getSources(), getSubMode(), getType(), and ilUtil\sendFailure().
Referenced by copyContainerToTargets().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Copy to multiple targets.
Definition at line 1065 of file class.ilObjectCopyGUI.php.
References $_SESSION, $ctrl, $GLOBALS, $ilCtrl, $result, ilLink\_getLink(), ilCopyWizardOptions\_isFinished(), copyContainer(), ilLoggerFactory\getLogger(), getSources(), getTargets(), ilUtil\sendSuccess(), and showCopyProgress().
Here is the call graph for this function:| ilObjectCopyGUI::copyMultipleNonContainer | ( | $a_sources | ) |
Copy multiple non container.
| array | $a_sources | array of source ref ids |
Definition at line 973 of file class.ilObjectCopyGUI.php.
References $_SESSION, $access, $ctrl, $ilCtrl, $ilUser, $obj_definition, $orig, $rbacreview, $rbacsystem, $user, ilCopyWizardOptions\_allocateCopyId(), ilCopyWizardOptions\_getInstance(), ilLink\_getLink(), ilObject\_lookupType(), ilRbacLog\add(), ilRbacLog\COPY_OBJECT, ilRbacLog\gatherFaPa(), getFirstTarget(), ilObjectFactory\getInstanceByRefId(), ilLoggerFactory\getLogger(), getTargets(), ilRbacLog\isActive(), ilUtil\redirect(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Referenced by copySingleObject(), and saveTarget().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Start cloning a single (not container) object.
Definition at line 946 of file class.ilObjectCopyGUI.php.
References $access, $ctrl, $error, $ilCtrl, $ilErr, $ilUser, $rbacreview, $rbacsystem, $user, copyMultipleNonContainer(), getSources(), and ilUtil\sendFailure().
Referenced by saveSource(), saveSourceMembership(), and saveTarget().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::executeCommand | ( | ) |
Control class handling.
Definition at line 152 of file class.ilObjectCopyGUI.php.
References $ctrl, $ilCtrl, init(), and initTabs().
Here is the call graph for this function:| ilObjectCopyGUI::getFirstSource | ( | ) |
Definition at line 679 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer(), init(), saveSourceMembership(), saveTarget(), searchSource(), and showItemSelection().
Here is the caller graph for this function:| ilObjectCopyGUI::getFirstTarget | ( | ) |
Get first target.
Definition at line 722 of file class.ilObjectCopyGUI.php.
References $targets, and getTargets().
Referenced by copyMultipleNonContainer(), and init().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::getMode | ( | ) |
get copy mode
Definition at line 605 of file class.ilObjectCopyGUI.php.
References $mode.
Referenced by setTabs(), and showItemSelection().
Here is the caller graph for this function:| ilObjectCopyGUI::getParentObject | ( | ) |
Get parent gui object.
Definition at line 624 of file class.ilObjectCopyGUI.php.
References $parent_obj.
Referenced by init().
Here is the caller graph for this function:| ilObjectCopyGUI::getSource | ( | ) |
Get source id.
Definition at line 665 of file class.ilObjectCopyGUI.php.
References getSources().
Here is the call graph for this function:| ilObjectCopyGUI::getSources | ( | ) |
Get sources.
Definition at line 674 of file class.ilObjectCopyGUI.php.
References $sources.
Referenced by copyContainer(), copyContainerToTargets(), copySingleObject(), getSource(), init(), initTargetSelection(), keepObjectsInClipboard(), saveSource(), saveTarget(), showItemSelection(), and showSourceSelectionTree().
Here is the caller graph for this function:| ilObjectCopyGUI::getSubMode | ( | ) |
Definition at line 615 of file class.ilObjectCopyGUI.php.
References $sub_mode.
Referenced by copyContainer(), init(), saveSource(), and setTabs().
Here is the caller graph for this function:| ilObjectCopyGUI::getTargets | ( | ) |
Get copy target.
Definition at line 713 of file class.ilObjectCopyGUI.php.
References $targets.
Referenced by copyContainerToTargets(), copyMultipleNonContainer(), getFirstTarget(), init(), initSourceSelection(), saveSource(), saveTarget(), and showItemSelection().
Here is the caller graph for this function:| ilObjectCopyGUI::getType | ( | ) |
Returns $type.
Definition at line 634 of file class.ilObjectCopyGUI.php.
References $type.
Referenced by copyContainer(), init(), initFormSearch(), searchSource(), showItemSelection(), and sourceExists().
Here is the caller graph for this function:
|
protected |
Init return, mode.
Definition at line 173 of file class.ilObjectCopyGUI.php.
References $_GET, $ctrl, $GLOBALS, $ilCtrl, ilObject\_lookupObjId(), ilObject\_lookupType(), getFirstSource(), getFirstTarget(), ilLoggerFactory\getLogger(), getParentObject(), getSources(), getSubMode(), getTargets(), getType(), setMode(), setSource(), setSubMode(), setTarget(), setTargets(), and setType().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Init search form.
Definition at line 1241 of file class.ilObjectCopyGUI.php.
References $ctrl, $ilCtrl, $lng, and getType().
Referenced by searchSource(), and showSourceSearch().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Init source selection.
Definition at line 336 of file class.ilObjectCopyGUI.php.
References $_SESSION, $ctrl, $ilCtrl, $path, $tree, getTargets(), setTabs(), and showSourceSelectionTree().
Referenced by adoptContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Init tabs General.
Definition at line 241 of file class.ilObjectCopyGUI.php.
References $GLOBALS.
Referenced by executeCommand().
Here is the caller graph for this function:
|
protected |
Init copy from repository/search list commands.
Definition at line 300 of file class.ilObjectCopyGUI.php.
References $_SESSION, $ctrl, $ilCtrl, $path, $tree, getSources(), setTargets(), and showTargetSelectionTree().
Here is the call graph for this function:| ilObjectCopyGUI::keepObjectsInClipboard | ( | ) |
Keep objects in clipboard.
Definition at line 745 of file class.ilObjectCopyGUI.php.
References $_SESSION, $ctrl, $ilCtrl, getSources(), and ilUtil\sendSuccess().
Here is the call graph for this function:
|
protected |
select source object
Definition at line 819 of file class.ilObjectCopyGUI.php.
References $_POST, $GLOBALS, $obj_definition, $target_type, ilObject\_lookupType(), copySingleObject(), ilObjectFactory\getClassByType(), getSources(), getSubMode(), getTargets(), searchSource(), ilUtil\sendFailure(), setSource(), setType(), showItemSelection(), and sprintf.
Here is the call graph for this function:
|
protected |
Save selected source from membership screen.
Definition at line 878 of file class.ilObjectCopyGUI.php.
References $GLOBALS, $obj_definition, ilObject\_lookupType(), copySingleObject(), getFirstSource(), ilUtil\sendFailure(), setSource(), setType(), and showItemSelection().
Here is the call graph for this function:
|
protected |
Save target selection.
Definition at line 513 of file class.ilObjectCopyGUI.php.
References $ctrl, $GLOBALS, $ilCtrl, $obj_definition, $target_type, $tree, ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), copyMultipleNonContainer(), copySingleObject(), ilObjectFactory\getClassByType(), getFirstSource(), getSources(), getTargets(), ilUtil\sendFailure(), setTarget(), setTargets(), showItemSelection(), showTargetSelectionTree(), and sprintf.
Here is the call graph for this function:
|
protected |
Search source.
Definition at line 759 of file class.ilObjectCopyGUI.php.
References $_POST, $_SESSION, $ctrl, $GLOBALS, $ilCtrl, $lng, $obj_data_cache, $res, $results, $table, $tpl, $tree, getFirstSource(), getType(), initFormSearch(), QP_COMBINATION_AND, ilUtil\sendFailure(), and ilUtil\sendInfo().
Referenced by saveSource(), and showItemSelection().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::setMode | ( | $a_mode | ) |
set copy mode
| int | $a_mode |
Definition at line 596 of file class.ilObjectCopyGUI.php.
Referenced by adoptContent(), and init().
Here is the caller graph for this function:| ilObjectCopyGUI::setSource | ( | array | $a_source_ids | ) |
Set source id.
| array | $a_source_id |
Definition at line 655 of file class.ilObjectCopyGUI.php.
Referenced by init(), saveSource(), saveSourceMembership(), and unsetSession().
Here is the caller graph for this function:| ilObjectCopyGUI::setSubMode | ( | $a_mode | ) |
Definition at line 610 of file class.ilObjectCopyGUI.php.
Referenced by adoptContent(), and init().
Here is the caller graph for this function:
|
protected |
Set tabs.
| type | $a_tab_group | |
| type | $a_active_tab |
Definition at line 256 of file class.ilObjectCopyGUI.php.
References $GLOBALS, getMode(), and getSubMode().
Referenced by initSourceSelection(), and showSourceSelectionMembership().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::setTarget | ( | $a_ref_id | ) |
Set single object target.
| type | $a_ref_id |
Definition at line 693 of file class.ilObjectCopyGUI.php.
References setTargets().
Referenced by adoptContent(), init(), and saveTarget().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::setTargets | ( | array | $a_target | ) |
Set target id.
| int | $a_target |
Definition at line 704 of file class.ilObjectCopyGUI.php.
Referenced by init(), initTargetSelection(), saveTarget(), and setTarget().
Here is the caller graph for this function:| ilObjectCopyGUI::setType | ( | $type | ) |
Sets $type.
| object | $type |
Definition at line 645 of file class.ilObjectCopyGUI.php.
References $type.
Referenced by init(), saveSource(), and saveSourceMembership().
Here is the caller graph for this function:
|
protected |
Show progress for copying.
Definition at line 1100 of file class.ilObjectCopyGUI.php.
References $_GET, and $GLOBALS.
Referenced by copyContainerToTargets().
Here is the caller graph for this function:
|
protected |
Definition at line 903 of file class.ilObjectCopyGUI.php.
References $table, $tpl, getFirstSource(), ilLoggerFactory\getLogger(), getMode(), getSources(), getTargets(), getType(), SEARCH_SOURCE, searchSource(), ilUtil\sendFailure(), ilUtil\sendInfo(), SOURCE_SELECTION, and TARGET_SELECTION.
Referenced by saveSource(), saveSourceMembership(), and saveTarget().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::showSourceSearch | ( | $a_tplvar | ) |
Show init screen Normally shown below the create and import form when creating a new object.
| string | $a_tplvar | The tpl variable to fill |
Definition at line 1205 of file class.ilObjectCopyGUI.php.
References $form, $tpl, initFormSearch(), and unsetSession().
Here is the call graph for this function:
|
protected |
show target selection membership
Definition at line 369 of file class.ilObjectCopyGUI.php.
References $GLOBALS, ilParticipants\_getMembershipByType(), ilUtil\sendInfo(), and setTabs().
Here is the call graph for this function:| ilObjectCopyGUI::showSourceSelectionTree | ( | ) |
Show target selection.
Definition at line 449 of file class.ilObjectCopyGUI.php.
References $_GET, $container, $ctrl, $ilCtrl, $obj_definition, $output, $tabs, $toolbar, $tpl, $tree, getSources(), ilPasteIntoMultipleItemsExplorer\SEL_TYPE_RADIO, and ilUtil\sendInfo().
Referenced by initSourceSelection().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::showTargetSelectionTree | ( | ) |
Show target selection.
Definition at line 392 of file class.ilObjectCopyGUI.php.
References $ctrl, $ilCtrl, $lng, $obj_definition, $output, $t, $tabs, $toolbar, $tpl, $tree, ilUtil\getImagePath(), and ilUtil\sendInfo().
Referenced by initTargetSelection(), and saveTarget().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Check if there is any source object.
Definition at line 1230 of file class.ilObjectCopyGUI.php.
References $ilUser, $user, ilUtil\_getObjectsByOperations(), and getType().
Here is the call graph for this function:
|
protected |
Unset session variables.
Definition at line 1271 of file class.ilObjectCopyGUI.php.
References $_SESSION, and setSource().
Referenced by showSourceSearch().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Update progress.
Definition at line 1119 of file class.ilObjectCopyGUI.php.
References $options, ilCopyWizardOptions\_getInstance(), exit, and ilLoggerFactory\getLogger().
Here is the call graph for this function:
|
protected |
Definition at line 55 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer(), copyMultipleNonContainer(), and copySingleObject().
|
protected |
Definition at line 20 of file class.ilObjectCopyGUI.php.
Referenced by cancel(), copyContainer(), copyContainerToTargets(), copyMultipleNonContainer(), copySingleObject(), executeCommand(), init(), initFormSearch(), initSourceSelection(), initTargetSelection(), keepObjectsInClipboard(), saveTarget(), searchSource(), showSourceSelectionTree(), and showTargetSelectionTree().
|
protected |
Definition at line 60 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer(), and copySingleObject().
|
private |
Definition at line 96 of file class.ilObjectCopyGUI.php.
Referenced by __construct(), initFormSearch(), searchSource(), and showTargetSelectionTree().
|
private |
Definition at line 112 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer().
|
private |
Definition at line 93 of file class.ilObjectCopyGUI.php.
Referenced by getMode().
|
protected |
Definition at line 50 of file class.ilObjectCopyGUI.php.
Referenced by searchSource().
|
protected |
Definition at line 45 of file class.ilObjectCopyGUI.php.
Referenced by copyMultipleNonContainer(), saveSource(), saveSourceMembership(), saveTarget(), showSourceSelectionTree(), and showTargetSelectionTree().
|
private |
Definition at line 98 of file class.ilObjectCopyGUI.php.
Referenced by getParentObject().
|
protected |
Definition at line 75 of file class.ilObjectCopyGUI.php.
Referenced by copyMultipleNonContainer(), and copySingleObject().
|
protected |
Definition at line 65 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer(), copyMultipleNonContainer(), and copySingleObject().
|
private |
Definition at line 102 of file class.ilObjectCopyGUI.php.
Referenced by getSources().
|
private |
Definition at line 94 of file class.ilObjectCopyGUI.php.
Referenced by getSubMode().
|
protected |
Definition at line 30 of file class.ilObjectCopyGUI.php.
Referenced by showSourceSelectionTree(), and showTargetSelectionTree().
|
private |
Definition at line 105 of file class.ilObjectCopyGUI.php.
Referenced by getFirstTarget(), and getTargets().
|
private |
Definition at line 106 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 35 of file class.ilObjectCopyGUI.php.
Referenced by showSourceSelectionTree(), and showTargetSelectionTree().
|
protected |
Definition at line 40 of file class.ilObjectCopyGUI.php.
Referenced by searchSource(), showItemSelection(), showSourceSearch(), showSourceSelectionTree(), and showTargetSelectionTree().
|
protected |
Definition at line 25 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer(), initSourceSelection(), initTargetSelection(), saveTarget(), searchSource(), showSourceSelectionTree(), and showTargetSelectionTree().
|
private |
Definition at line 100 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 70 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer(), copyMultipleNonContainer(), copySingleObject(), and sourceExists().
| const ilObjectCopyGUI::SEARCH_SOURCE = 3 |
Definition at line 79 of file class.ilObjectCopyGUI.php.
Referenced by showItemSelection().
| const ilObjectCopyGUI::SOURCE_SELECTION = 1 |
Definition at line 77 of file class.ilObjectCopyGUI.php.
Referenced by showItemSelection().
| const ilObjectCopyGUI::SUBMODE_COMPLETE = 1 |
Definition at line 81 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::SUBMODE_CONTENT_ONLY = 2 |
Definition at line 82 of file class.ilObjectCopyGUI.php.
Referenced by ilContainer\cloneAllObject().
| const ilObjectCopyGUI::TAB_GROUP_SC_SELECTION = 1 |
Definition at line 90 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::TAB_SELECTION_MEMBERSHIP = 3 |
Definition at line 87 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::TAB_SELECTION_SOURCE_TREE = 2 |
Definition at line 86 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::TAB_SELECTION_TARGET_TREE = 1 |
Definition at line 85 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::TARGET_SELECTION = 2 |
Definition at line 78 of file class.ilObjectCopyGUI.php.
Referenced by showItemSelection().