ILIAS
release_7 Revision v7.30-3-g800a261c036
|
GUI class for the workflow of copying objects. More...
Public Member Functions | |
__construct (ImplementsCreationCallback $a_parent_gui) | |
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.
Definition at line 32 of file class.ilObjectCopyGUI.php.
ilObjectCopyGUI::__construct | ( | ImplementsCreationCallback | $a_parent_gui | ) |
Definition at line 131 of file class.ilObjectCopyGUI.php.
References $DIC, $lng, ilLoggerFactory\getLogger(), and user().
|
protected |
Adopt content (crs in crs, grp in grp, crs in grp or grp in crs)
Definition at line 303 of file class.ilObjectCopyGUI.php.
References $_GET, $ctrl, initSourceSelection(), setMode(), setSubMode(), and setTarget().
|
protected |
|
protected |
Copy a container.
Definition at line 1186 of file class.ilObjectCopyGUI.php.
References $_COOKIE, $_GET, $_POST, $access, $ctrl, $error, $ilErr, $ilUser, $log, $rbacsystem, $result, $target_type, $tree, $user, ilObject\_lookupObjId(), ilObject\_lookupType(), getFirstSource(), ilObjectFactory\getInstanceByRefId(), ilLoggerFactory\getLogger(), getSources(), getSubMode(), getType(), and ilUtil\sendFailure().
Referenced by copyContainerToTargets().
|
protected |
Copy to multiple targets.
Definition at line 1102 of file class.ilObjectCopyGUI.php.
References $_SESSION, $ctrl, $result, ilLink\_getLink(), ilCopyWizardOptions\_isFinished(), copyContainer(), ilLoggerFactory\getLogger(), getSources(), getSubMode(), getTargets(), and showCopyProgress().
ilObjectCopyGUI::copyMultipleNonContainer | ( | $a_sources | ) |
Copy multiple non container.
array | $a_sources | array of source ref ids |
Definition at line 1001 of file class.ilObjectCopyGUI.php.
References $_GET, $_SESSION, $access, $ctrl, $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(), getSubMode(), getTargets(), ilRbacLog\isActive(), ilUtil\redirect(), and ilUtil\sendFailure().
Referenced by copySingleObject(), and saveTarget().
|
protected |
Start cloning a single (not container) object.
Definition at line 974 of file class.ilObjectCopyGUI.php.
References $access, $ctrl, $error, $ilErr, $ilUser, $rbacreview, $rbacsystem, $user, copyMultipleNonContainer(), getSources(), and ilUtil\sendFailure().
Referenced by saveSource(), saveSourceMembership(), and saveTarget().
ilObjectCopyGUI::executeCommand | ( | ) |
Control class handling.
Definition at line 165 of file class.ilObjectCopyGUI.php.
References $ctrl, init(), and initTabs().
ilObjectCopyGUI::getFirstSource | ( | ) |
Definition at line 705 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer(), init(), saveSourceMembership(), saveTarget(), searchSource(), and showItemSelection().
ilObjectCopyGUI::getFirstTarget | ( | ) |
Get first target.
Definition at line 748 of file class.ilObjectCopyGUI.php.
References $targets, and getTargets().
Referenced by copyMultipleNonContainer(), and init().
ilObjectCopyGUI::getMode | ( | ) |
get copy mode
Definition at line 641 of file class.ilObjectCopyGUI.php.
References $mode.
Referenced by setTabs(), and showItemSelection().
ilObjectCopyGUI::getParentObject | ( | ) |
Get parent gui object.
Definition at line 660 of file class.ilObjectCopyGUI.php.
References $parent_obj.
Referenced by init().
ilObjectCopyGUI::getSources | ( | ) |
Get sources.
Definition at line 700 of file class.ilObjectCopyGUI.php.
References $sources.
Referenced by copyContainer(), copyContainerToTargets(), copySingleObject(), init(), initTargetSelection(), keepObjectsInClipboard(), saveSource(), saveTarget(), showItemSelection(), and showSourceSelectionTree().
ilObjectCopyGUI::getSubMode | ( | ) |
Definition at line 651 of file class.ilObjectCopyGUI.php.
References $sub_mode.
Referenced by copyContainer(), copyContainerToTargets(), copyMultipleNonContainer(), init(), saveSource(), and setTabs().
ilObjectCopyGUI::getTargets | ( | ) |
Get copy target.
Definition at line 739 of file class.ilObjectCopyGUI.php.
References $targets.
Referenced by copyContainerToTargets(), copyMultipleNonContainer(), getFirstTarget(), init(), initSourceSelection(), saveSource(), saveTarget(), and showItemSelection().
ilObjectCopyGUI::getType | ( | ) |
Returns $type.
Definition at line 670 of file class.ilObjectCopyGUI.php.
References $type.
Referenced by copyContainer(), init(), initFormSearch(), searchSource(), showItemSelection(), and sourceExists().
|
protected |
Init return, mode.
Definition at line 186 of file class.ilObjectCopyGUI.php.
References $_GET, $ctrl, ilObject\_lookupObjId(), ilObject\_lookupType(), getFirstSource(), getFirstTarget(), ilLoggerFactory\getLogger(), getParentObject(), getSources(), getSubMode(), getTargets(), getType(), setMode(), setSource(), setSubMode(), setTarget(), setTargets(), and setType().
Referenced by executeCommand().
|
protected |
Init search form.
Definition at line 1295 of file class.ilObjectCopyGUI.php.
References $ctrl, $lng, and getType().
Referenced by searchSource(), and showSourceSearch().
|
protected |
Init source selection.
Definition at line 359 of file class.ilObjectCopyGUI.php.
References $_SESSION, $ctrl, $tree, getTargets(), setTabs(), and showSourceSelectionTree().
Referenced by adoptContent().
|
protected |
Init tabs General.
Definition at line 254 of file class.ilObjectCopyGUI.php.
References $ctrl, $lng, and $tabs.
Referenced by executeCommand().
|
protected |
Init copy from repository/search list commands.
Definition at line 323 of file class.ilObjectCopyGUI.php.
References $_SESSION, $ctrl, $tree, getSources(), setTargets(), and showTargetSelectionTree().
ilObjectCopyGUI::keepObjectsInClipboard | ( | ) |
Keep objects in clipboard.
Definition at line 771 of file class.ilObjectCopyGUI.php.
References $_SESSION, $ctrl, and getSources().
|
protected |
select source object
Definition at line 845 of file class.ilObjectCopyGUI.php.
References $_POST, $ctrl, $obj_definition, $target_type, ilObject\_lookupType(), copySingleObject(), ilObjectFactory\getClassByType(), getSources(), getSubMode(), getTargets(), searchSource(), ilUtil\sendFailure(), setSource(), setType(), and showItemSelection().
|
protected |
Save selected source from membership screen.
Definition at line 905 of file class.ilObjectCopyGUI.php.
References $ctrl, $obj_definition, ilObject\_lookupType(), copySingleObject(), getFirstSource(), ilUtil\sendFailure(), setSource(), setType(), and showItemSelection().
|
protected |
Save target selection.
Definition at line 549 of file class.ilObjectCopyGUI.php.
References $ctrl, $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().
|
protected |
Search source.
Definition at line 785 of file class.ilObjectCopyGUI.php.
References $_POST, $_SESSION, $ctrl, $lng, $obj_data_cache, $res, $results, $tpl, $tree, getFirstSource(), getType(), initFormSearch(), QP_COMBINATION_AND, ROOT_FOLDER_ID, ilUtil\sendFailure(), ilUtil\sendInfo(), and ilQueryParser\setMinWordLength().
Referenced by saveSource(), and showItemSelection().
ilObjectCopyGUI::setMode | ( | $a_mode | ) |
set copy mode
int | $a_mode |
Definition at line 632 of file class.ilObjectCopyGUI.php.
Referenced by adoptContent(), and init().
ilObjectCopyGUI::setSource | ( | array | $a_source_ids | ) |
Set source id.
array | $a_source_id |
Definition at line 691 of file class.ilObjectCopyGUI.php.
Referenced by init(), saveSource(), saveSourceMembership(), and unsetSession().
ilObjectCopyGUI::setSubMode | ( | $a_mode | ) |
Definition at line 646 of file class.ilObjectCopyGUI.php.
Referenced by adoptContent(), and init().
|
protected |
Set tabs.
type | $a_tab_group | |
type | $a_active_tab |
Definition at line 273 of file class.ilObjectCopyGUI.php.
References $ctrl, $lng, $tabs, getMode(), and getSubMode().
Referenced by initSourceSelection(), and showSourceSelectionMembership().
ilObjectCopyGUI::setTarget | ( | $a_ref_id | ) |
Set single object target.
type | $a_ref_id |
Definition at line 719 of file class.ilObjectCopyGUI.php.
References setTargets().
Referenced by adoptContent(), init(), and saveTarget().
ilObjectCopyGUI::setTargets | ( | array | $a_target | ) |
Set target id.
int | $a_target |
Definition at line 730 of file class.ilObjectCopyGUI.php.
Referenced by init(), initTargetSelection(), saveTarget(), and setTarget().
ilObjectCopyGUI::setType | ( | $type | ) |
Sets $type.
object | $type |
Definition at line 681 of file class.ilObjectCopyGUI.php.
References $type.
Referenced by init(), saveSource(), and saveSourceMembership().
|
protected |
Show progress for copying.
Definition at line 1142 of file class.ilObjectCopyGUI.php.
References $_GET, $ctrl, and $tpl.
Referenced by copyContainerToTargets().
|
protected |
Definition at line 931 of file class.ilObjectCopyGUI.php.
References $tpl, getFirstSource(), ilLoggerFactory\getLogger(), getMode(), getSources(), getTargets(), getType(), searchSource(), ilUtil\sendFailure(), and ilUtil\sendInfo().
Referenced by saveSource(), saveSourceMembership(), and saveTarget().
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 1259 of file class.ilObjectCopyGUI.php.
References $tpl, initFormSearch(), and unsetSession().
|
protected |
show target selection membership
Definition at line 392 of file class.ilObjectCopyGUI.php.
References $tpl, $user, ilParticipants\_getMembershipByType(), ilUtil\sendInfo(), and setTabs().
ilObjectCopyGUI::showSourceSelectionTree | ( | ) |
Show target selection.
Definition at line 487 of file class.ilObjectCopyGUI.php.
References $_GET, $container, $ctrl, $toolbar, $tpl, $tree, getSources(), ilPasteIntoMultipleItemsExplorer\SEL_TYPE_RADIO, and ilUtil\sendInfo().
Referenced by initSourceSelection().
ilObjectCopyGUI::showTargetSelectionTree | ( | ) |
Show target selection.
Definition at line 418 of file class.ilObjectCopyGUI.php.
References $ctrl, $lng, $obj_definition, $tabs, $toolbar, $tpl, $tree, ilUtil\getImagePath(), ilSubmitButton\getInstance(), and ilUtil\sendInfo().
Referenced by initTargetSelection(), and saveTarget().
|
protected |
Check if there is any source object.
Definition at line 1284 of file class.ilObjectCopyGUI.php.
References $ilUser, $user, ilUtil\_getObjectsByOperations(), and getType().
|
protected |
Unset session variables.
Definition at line 1325 of file class.ilObjectCopyGUI.php.
References $_SESSION, and setSource().
Referenced by showSourceSearch().
|
protected |
Update progress.
Definition at line 1164 of file class.ilObjectCopyGUI.php.
References ilCopyWizardOptions\_getInstance(), exit, and ilLoggerFactory\getLogger().
|
protected |
Definition at line 72 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer(), copyMultipleNonContainer(), and copySingleObject().
|
protected |
Definition at line 37 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 77 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer(), and copySingleObject().
|
private |
Definition at line 113 of file class.ilObjectCopyGUI.php.
Referenced by __construct(), initFormSearch(), initTabs(), searchSource(), setTabs(), and showTargetSelectionTree().
|
private |
Definition at line 129 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer().
|
private |
Definition at line 110 of file class.ilObjectCopyGUI.php.
Referenced by getMode().
|
protected |
Definition at line 67 of file class.ilObjectCopyGUI.php.
Referenced by searchSource().
|
protected |
Definition at line 62 of file class.ilObjectCopyGUI.php.
Referenced by copyMultipleNonContainer(), saveSource(), saveSourceMembership(), saveTarget(), and showTargetSelectionTree().
|
private |
Definition at line 115 of file class.ilObjectCopyGUI.php.
Referenced by getParentObject().
|
protected |
Definition at line 92 of file class.ilObjectCopyGUI.php.
Referenced by copyMultipleNonContainer(), and copySingleObject().
|
protected |
Definition at line 82 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer(), copyMultipleNonContainer(), and copySingleObject().
|
private |
Definition at line 119 of file class.ilObjectCopyGUI.php.
Referenced by getSources().
|
private |
Definition at line 111 of file class.ilObjectCopyGUI.php.
Referenced by getSubMode().
|
protected |
Definition at line 47 of file class.ilObjectCopyGUI.php.
Referenced by initTabs(), setTabs(), and showTargetSelectionTree().
|
private |
Definition at line 122 of file class.ilObjectCopyGUI.php.
Referenced by getFirstTarget(), and getTargets().
|
private |
Definition at line 123 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 52 of file class.ilObjectCopyGUI.php.
Referenced by showSourceSelectionTree(), and showTargetSelectionTree().
|
protected |
Definition at line 57 of file class.ilObjectCopyGUI.php.
Referenced by searchSource(), showCopyProgress(), showItemSelection(), showSourceSearch(), showSourceSelectionMembership(), showSourceSelectionTree(), and showTargetSelectionTree().
|
protected |
Definition at line 42 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer(), initSourceSelection(), initTargetSelection(), saveTarget(), searchSource(), showSourceSelectionTree(), and showTargetSelectionTree().
|
private |
Definition at line 117 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 87 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer(), copyMultipleNonContainer(), copySingleObject(), showSourceSelectionMembership(), and sourceExists().
const ilObjectCopyGUI::SEARCH_SOURCE = 3 |
Definition at line 96 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::SOURCE_SELECTION = 1 |
Definition at line 94 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::SUBMODE_COMPLETE = 1 |
Definition at line 98 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::SUBMODE_CONTENT_ONLY = 2 |
Definition at line 99 of file class.ilObjectCopyGUI.php.
Referenced by ilObjectCopySelectionTableGUI\__construct(), and ilContainer\cloneAllObject().
const ilObjectCopyGUI::TAB_GROUP_SC_SELECTION = 1 |
Definition at line 107 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::TAB_SELECTION_MEMBERSHIP = 3 |
Definition at line 104 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::TAB_SELECTION_SOURCE_TREE = 2 |
Definition at line 103 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::TAB_SELECTION_TARGET_TREE = 1 |
Definition at line 102 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::TARGET_SELECTION = 2 |
Definition at line 95 of file class.ilObjectCopyGUI.php.