|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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... | |
| 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 290 of file class.ilObjectCopyGUI.php.
References $_GET, $ctrl, $ilCtrl, initSourceSelection(), setMode(), setSubMode(), and setTarget().
Here is the call graph for this function:
|
protected |
Cancel workflow.
Definition at line 750 of file class.ilObjectCopyGUI.php.
|
protected |
Copy a container.
Definition at line 1176 of file class.ilObjectCopyGUI.php.
References $_COOKIE, $_POST, $access, $ctrl, $error, $ilCtrl, $ilErr, $ilLog, $ilUser, $log, PHPMailer\PHPMailer\$options, $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 1092 of file class.ilObjectCopyGUI.php.
References $_SESSION, $ctrl, $ilCtrl, $result, ilLink\_getLink(), ilCopyWizardOptions\_isFinished(), copyContainer(), ilLoggerFactory\getLogger(), getSources(), getSubMode(), getTargets(), 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 990 of file class.ilObjectCopyGUI.php.
References $_SESSION, $access, $ctrl, $ilCtrl, $ilUser, $obj_definition, $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(), and ilUtil\sendFailure().
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 963 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 694 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 737 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 630 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 649 of file class.ilObjectCopyGUI.php.
References $parent_obj.
Referenced by init().
Here is the caller graph for this function:| ilObjectCopyGUI::getSources | ( | ) |
Get sources.
Definition at line 689 of file class.ilObjectCopyGUI.php.
References $sources.
Referenced by copyContainer(), copyContainerToTargets(), copySingleObject(), init(), initTargetSelection(), keepObjectsInClipboard(), saveSource(), saveTarget(), showItemSelection(), and showSourceSelectionTree().
Here is the caller graph for this function:| ilObjectCopyGUI::getSubMode | ( | ) |
Definition at line 640 of file class.ilObjectCopyGUI.php.
References $sub_mode.
Referenced by copyContainer(), copyContainerToTargets(), init(), saveSource(), and setTabs().
Here is the caller graph for this function:| ilObjectCopyGUI::getTargets | ( | ) |
Get copy target.
Definition at line 728 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 659 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, $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 1276 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 346 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 $ctrl, $ilCtrl, $lng, and $tabs.
Referenced by executeCommand().
Here is the caller graph for this function:
|
protected |
Init copy from repository/search list commands.
Definition at line 310 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 760 of file class.ilObjectCopyGUI.php.
References $_SESSION, $ctrl, $ilCtrl, and getSources().
Here is the call graph for this function:
|
protected |
select source object
Definition at line 834 of file class.ilObjectCopyGUI.php.
References $_POST, $ctrl, $ilCtrl, $obj_definition, $target_type, ilObject\_lookupType(), copySingleObject(), ilObjectFactory\getClassByType(), getSources(), getSubMode(), getTargets(), searchSource(), ilUtil\sendFailure(), setSource(), setType(), and showItemSelection().
Here is the call graph for this function:
|
protected |
Save selected source from membership screen.
Definition at line 894 of file class.ilObjectCopyGUI.php.
References $ctrl, $ilCtrl, $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 538 of file class.ilObjectCopyGUI.php.
References $ctrl, $ilCtrl, $obj_definition, $target_type, $tree, ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), copyMultipleNonContainer(), copySingleObject(), ilObjectFactory\getClassByType(), getFirstSource(), getSources(), getTargets(), ilUtil\sendFailure(), setTarget(), setTargets(), showItemSelection(), and showTargetSelectionTree().
Here is the call graph for this function:
|
protected |
Search source.
Definition at line 774 of file class.ilObjectCopyGUI.php.
References $_POST, $_SESSION, $ctrl, $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 621 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 680 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 635 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 260 of file class.ilObjectCopyGUI.php.
References $ctrl, $ilCtrl, $lng, $tabs, 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 708 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 719 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 670 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 1132 of file class.ilObjectCopyGUI.php.
References $_GET, $ctrl, $ilCtrl, and $tpl.
Referenced by copyContainerToTargets().
Here is the caller graph for this function:
|
protected |
Definition at line 920 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 1240 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 379 of file class.ilObjectCopyGUI.php.
References $tpl, $user, ilParticipants\_getMembershipByType(), ilUtil\sendInfo(), and setTabs().
Here is the call graph for this function:| ilObjectCopyGUI::showSourceSelectionTree | ( | ) |
Show target selection.
Definition at line 474 of file class.ilObjectCopyGUI.php.
References $_GET, $container, $ctrl, $ilCtrl, $obj_definition, Sabre\VObject\$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 405 of file class.ilObjectCopyGUI.php.
References $ctrl, $ilCtrl, $lng, $obj_definition, Sabre\VObject\$output, $t, $tabs, $toolbar, $tpl, $tree, ilUtil\getImagePath(), ilSubmitButton\getInstance(), 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 1265 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 1306 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 1154 of file class.ilObjectCopyGUI.php.
References PHPMailer\PHPMailer\$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 adoptContent(), cancel(), copyContainer(), copyContainerToTargets(), copyMultipleNonContainer(), copySingleObject(), executeCommand(), init(), initFormSearch(), initSourceSelection(), initTabs(), initTargetSelection(), keepObjectsInClipboard(), saveSource(), saveSourceMembership(), saveTarget(), searchSource(), setTabs(), showCopyProgress(), 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(), initTabs(), searchSource(), setTabs(), 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 initTabs(), setTabs(), 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(), showCopyProgress(), showItemSelection(), showSourceSearch(), showSourceSelectionMembership(), 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(), showSourceSelectionMembership(), 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().