ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
GUI class for the workflow of copying objects. More...
Public Member Functions | |
executeCommand () | |
setMode (int $mode) | |
getMode () | |
setSubMode (int $mode) | |
getSubMode () | |
getParentObject () | |
Get parent gui object. More... | |
getType () | |
setType (string $type) | |
setSource (array $source_ids) | |
getSources () | |
getFirstSource () | |
setTarget (int $ref_id) | |
setTargets (array $targets) | |
getTargets () | |
getFirstTarget () | |
keepObjectsInClipboard () | |
copyMultipleNonContainer (array $sources) | |
Copy multiple non container. More... | |
showSourceSearch (?string $tpl_var) | |
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 () | |
initTabs () | |
setTabs (int $tab_group, int $active_tab) | |
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 () | |
showSourceSelectionMembership () | |
show target selection membership More... | |
showTargetSelectionTree () | |
showSourceSelectionTree () | |
saveTarget () | |
cancel () | |
searchSource () | |
saveSource () | |
saveSourceMembership () | |
Save selected source from membership screen. More... | |
showCopyPageSelection () | |
saveCopyPage () | |
showItemSelection (bool $copy_page=false) | |
copySingleObject () | |
Start cloning a single (not container) object. More... | |
copyContainerToTargets () | |
showCopyProgress () | |
updateProgress () | |
copyContainer (int $target_ref_id) | |
initFormSearch () | |
unsetSession () | |
Unset session variables. More... | |
Protected Attributes | |
ilCtrl | $ctrl |
ilTree | $tree |
ilTabsGUI | $tabs |
ilGlobalTemplateInterface | $tpl |
ilObjectDefinition | $obj_definition |
ilObjectDataCache | $obj_data_cache |
ilAccessHandler | $access |
ilErrorHandling | $error |
ilRbacSystem | $rbacsystem |
ilObjUser | $user |
ilRbacReview | $rbacreview |
ilLogger | $log |
ilLanguage | $lng |
RequestWrapper | $request_wrapper |
ArrayBasedRequestWrapper | $post_wrapper |
Refinery | $refinery |
ServerRequestInterface | $request |
UIFactory | $ui_factory |
UIRenderer | $ui_renderer |
ContainerDBRepository | $container_repo |
ImplementsCreationCallback | $parent_obj = null |
ClipboardManager | $clipboard |
int | $mode = 0 |
int | $sub_mode = self::SUBMODE_COMPLETE |
string | $type = '' |
array | $sources = [] |
array | $targets = [] |
array | $targets_copy_id = [] |
ilPropertyFormGUI | $form |
Private Member Functions | |
getPrimaryButtonLabel () | |
getOnLoadCode (string $cmd) | |
getErrorMessageOnDisallowedObjectTypeForTarget (int $ref_id) | |
executeNextStepAfterSourceSelection () | |
buildCopyPageSelectionForm () | |
isCopyingParentPageNeeded () | |
copyParentPage () | |
Private Attributes | |
ilObjectRequestRetriever | $retriever |
GUI class for the workflow of copying objects.
Definition at line 40 of file class.ilObjectCopyGUI.php.
|
protected |
Adopt content (crs in crs, grp in grp, crs in grp or grp in crs)
Definition at line 239 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\ctrl(), initSourceSelection(), setMode(), setSubMode(), and setTarget().
|
private |
Definition at line 780 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ILIAS\UI\Implementation\Component\Input\withValue().
Referenced by saveCopyPage(), and showCopyPageSelection().
|
protected |
Definition at line 614 of file class.ilObjectCopyGUI.php.
References $ctrl, and ilCtrl\setReturnByClass().
|
protected |
Definition at line 1050 of file class.ilObjectCopyGUI.php.
References $_COOKIE, CLIENT_ID, ILIAS\Repository\ctrl(), getFirstSource(), ilObjectFactory\getInstanceByRefId(), getSources(), getSubMode(), getType(), ILIAS\Repository\int(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
Referenced by copyContainerToTargets().
|
protected |
Definition at line 929 of file class.ilObjectCopyGUI.php.
References ilCopyWizardOptions\_isFinished(), copyContainer(), copyParentPage(), ILIAS\Repository\ctrl(), getSources(), getSubMode(), getTargets(), isCopyingParentPageNeeded(), ILIAS\Repository\lng(), and showCopyProgress().
ilObjectCopyGUI::copyMultipleNonContainer | ( | array | $sources | ) |
Copy multiple non container.
array | $sources | array of source ref ids |
Definition at line 840 of file class.ilObjectCopyGUI.php.
References $ref_id, ilCopyWizardOptions\_allocateCopyId(), ilCopyWizardOptions\_getInstance(), ilObject\_lookupType(), ILIAS\Repository\access(), ilRbacLog\add(), ilRbacLog\COPY_OBJECT, ILIAS\Repository\ctrl(), ilRbacLog\gatherFaPa(), getFirstTarget(), ilObjectFactory\getInstanceByRefId(), ilLoggerFactory\getLogger(), getSubMode(), getTargets(), ilRbacLog\isActive(), ILIAS\Repository\lng(), null, ilUtil\redirect(), and ILIAS\Repository\user().
Referenced by copySingleObject(), and saveTarget().
|
private |
Definition at line 966 of file class.ilObjectCopyGUI.php.
References ilPageObject\_exists(), ilObjStyleSheet\_lookupStandard(), ilPageObject\copy(), getFirstSource(), ilObjectFactory\getInstanceByObjId(), ilObjectFactory\getInstanceByRefId(), getParentObject(), ilObjStyleSheet\lookupObjectStyle(), ilObjStyleSheet\writeOwner(), and ilObjStyleSheet\writeStyleUsage().
Referenced by copyContainerToTargets().
|
protected |
Start cloning a single (not container) object.
Definition at line 824 of file class.ilObjectCopyGUI.php.
References copyMultipleNonContainer(), ILIAS\Repository\ctrl(), getSources(), and ILIAS\Repository\lng().
Referenced by executeNextStepAfterSourceSelection(), and saveTarget().
ilObjectCopyGUI::executeCommand | ( | ) |
Definition at line 133 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\ctrl(), init(), and initTabs().
|
private |
Definition at line 746 of file class.ilObjectCopyGUI.php.
References ilPageObject\_exists(), ilObject\_lookupObjId(), copySingleObject(), getFirstSource(), getSources(), showCopyPageSelection(), and showItemSelection().
Referenced by saveSource(), and saveSourceMembership().
|
private |
Definition at line 702 of file class.ilObjectCopyGUI.php.
References ilObject\_lookupType(), ilObjectFactory\getClassByType(), getSubMode(), getTargets(), and ILIAS\Repository\lng().
Referenced by saveSource().
ilObjectCopyGUI::getFirstSource | ( | ) |
Definition at line 578 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer(), copyParentPage(), executeNextStepAfterSourceSelection(), init(), saveSourceMembership(), saveTarget(), searchSource(), and showItemSelection().
ilObjectCopyGUI::getFirstTarget | ( | ) |
Definition at line 604 of file class.ilObjectCopyGUI.php.
References getTargets().
Referenced by copyMultipleNonContainer(), init(), and showSourceSelectionTree().
ilObjectCopyGUI::getMode | ( | ) |
Definition at line 533 of file class.ilObjectCopyGUI.php.
References $mode.
Referenced by setTabs().
|
private |
Definition at line 391 of file class.ilObjectCopyGUI.php.
References $id.
Referenced by showTargetSelectionTree().
ilObjectCopyGUI::getParentObject | ( | ) |
Get parent gui object.
Definition at line 551 of file class.ilObjectCopyGUI.php.
References $parent_obj.
Referenced by copyParentPage(), and init().
|
private |
Definition at line 382 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\lng().
Referenced by showTargetSelectionTree().
ilObjectCopyGUI::getSources | ( | ) |
Definition at line 573 of file class.ilObjectCopyGUI.php.
References $sources.
Referenced by copyContainer(), copyContainerToTargets(), copySingleObject(), executeNextStepAfterSourceSelection(), init(), initTargetSelection(), keepObjectsInClipboard(), saveSource(), saveTarget(), showItemSelection(), and showSourceSelectionTree().
ilObjectCopyGUI::getSubMode | ( | ) |
Definition at line 543 of file class.ilObjectCopyGUI.php.
References $sub_mode.
Referenced by copyContainer(), copyContainerToTargets(), copyMultipleNonContainer(), getErrorMessageOnDisallowedObjectTypeForTarget(), init(), and setTabs().
ilObjectCopyGUI::getTargets | ( | ) |
Definition at line 599 of file class.ilObjectCopyGUI.php.
References $targets.
Referenced by copyContainerToTargets(), copyMultipleNonContainer(), getErrorMessageOnDisallowedObjectTypeForTarget(), getFirstTarget(), init(), initSourceSelection(), saveTarget(), and showItemSelection().
ilObjectCopyGUI::getType | ( | ) |
Definition at line 556 of file class.ilObjectCopyGUI.php.
References $type.
Referenced by copyContainer(), init(), initFormSearch(), searchSource(), and showItemSelection().
|
protected |
Definition at line 144 of file class.ilObjectCopyGUI.php.
References ilObject\_lookupObjId(), ilObject\_lookupType(), ILIAS\Repository\ctrl(), getFirstSource(), getFirstTarget(), ilLoggerFactory\getLogger(), getParentObject(), getSources(), getSubMode(), getTargets(), getType(), setMode(), setSource(), setSubMode(), setTarget(), setTargets(), and setType().
Referenced by executeCommand().
|
protected |
Definition at line 1130 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\form(), getType(), and ILIAS\Repository\lng().
Referenced by searchSource(), and showSourceSearch().
|
protected |
Definition at line 283 of file class.ilObjectCopyGUI.php.
References $path, ILIAS\Repository\ctrl(), ilSession\get(), getTargets(), ilSession\set(), setTabs(), and showSourceSelectionTree().
Referenced by adoptContent().
|
protected |
Definition at line 205 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().
Referenced by executeCommand().
|
protected |
Init copy from repository/search list commands.
Definition at line 254 of file class.ilObjectCopyGUI.php.
References $path, ILIAS\Repository\ctrl(), ilSession\get(), getSources(), ilSession\set(), setTargets(), and showTargetSelectionTree().
|
private |
Definition at line 960 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\refinery().
Referenced by copyContainerToTargets().
ilObjectCopyGUI::keepObjectsInClipboard | ( | ) |
Definition at line 621 of file class.ilObjectCopyGUI.php.
References $ctrl, getSources(), ILIAS\Repository\lng(), and ilCtrl\returnToParent().
|
protected |
Definition at line 772 of file class.ilObjectCopyGUI.php.
References $data, buildCopyPageSelectionForm(), and showItemSelection().
|
protected |
Definition at line 678 of file class.ilObjectCopyGUI.php.
References $message, ilObject\_lookupType(), ILIAS\Repository\ctrl(), executeNextStepAfterSourceSelection(), getErrorMessageOnDisallowedObjectTypeForTarget(), getSources(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), searchSource(), setSource(), and setType().
|
protected |
Save selected source from membership screen.
Definition at line 730 of file class.ilObjectCopyGUI.php.
References ilObject\_lookupType(), ILIAS\Repository\ctrl(), executeNextStepAfterSourceSelection(), getFirstSource(), ILIAS\Repository\lng(), null, setSource(), and setType().
|
protected |
Definition at line 450 of file class.ilObjectCopyGUI.php.
References Vendor\Package\$e, ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), copyMultipleNonContainer(), copySingleObject(), ILIAS\Repository\ctrl(), ilObjectFactory\getClassByType(), getFirstSource(), getSources(), getTargets(), ILIAS\Repository\int(), ILIAS\Repository\lng(), null, setTarget(), setTargets(), showItemSelection(), and showTargetSelectionTree().
|
protected |
Definition at line 630 of file class.ilObjectCopyGUI.php.
References $res, $results, ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ilSession\get(), getFirstSource(), getType(), initFormSearch(), ILIAS\Repository\lng(), ilQueryParser\QP_COMBINATION_AND, ROOT_FOLDER_ID, and ilSession\set().
Referenced by saveSource(), and showItemSelection().
ilObjectCopyGUI::setMode | ( | int | $mode | ) |
Definition at line 528 of file class.ilObjectCopyGUI.php.
References $mode.
Referenced by adoptContent(), and init().
ilObjectCopyGUI::setSource | ( | array | $source_ids | ) |
Definition at line 566 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\refinery(), and ILIAS\Refinery\transform().
Referenced by init(), saveSource(), saveSourceMembership(), and unsetSession().
ilObjectCopyGUI::setSubMode | ( | int | $mode | ) |
Definition at line 538 of file class.ilObjectCopyGUI.php.
References $mode.
Referenced by adoptContent(), and init().
|
protected |
Definition at line 215 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\ctrl(), getMode(), getSubMode(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().
Referenced by initSourceSelection(), and showSourceSelectionMembership().
ilObjectCopyGUI::setTarget | ( | int | $ref_id | ) |
Definition at line 587 of file class.ilObjectCopyGUI.php.
References setTargets().
Referenced by adoptContent(), init(), and saveTarget().
ilObjectCopyGUI::setTargets | ( | array | $targets | ) |
Definition at line 592 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\refinery(), and ILIAS\Refinery\transform().
Referenced by init(), initTargetSelection(), saveTarget(), and setTarget().
ilObjectCopyGUI::setType | ( | string | $type | ) |
Definition at line 561 of file class.ilObjectCopyGUI.php.
References $type.
Referenced by init(), saveSource(), and saveSourceMembership().
|
protected |
Definition at line 766 of file class.ilObjectCopyGUI.php.
References buildCopyPageSelectionForm().
Referenced by executeNextStepAfterSourceSelection().
|
protected |
Definition at line 989 of file class.ilObjectCopyGUI.php.
References $ref_id, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ROOT_FOLDER_ID, and ILIAS\Repository\tabs().
Referenced by copyContainerToTargets().
|
protected |
Definition at line 800 of file class.ilObjectCopyGUI.php.
References getFirstSource(), getSources(), getTargets(), getType(), ILIAS\Repository\lng(), and searchSource().
Referenced by executeNextStepAfterSourceSelection(), saveCopyPage(), and saveTarget().
ilObjectCopyGUI::showSourceSearch | ( | ?string | $tpl_var | ) |
Show init screen Normally shown below the create and import form when creating a new object.
?string | $tpl_var The tpl variable to fill |
Definition at line 1117 of file class.ilObjectCopyGUI.php.
References $form, ILIAS\Repository\form(), initFormSearch(), null, and unsetSession().
|
protected |
show target selection membership
Definition at line 312 of file class.ilObjectCopyGUI.php.
References ilParticipants\_getMembershipByType(), ILIAS\Repository\lng(), setTabs(), and ILIAS\Repository\user().
|
protected |
Definition at line 402 of file class.ilObjectCopyGUI.php.
References $container, ILIAS\Repository\ctrl(), getFirstTarget(), getSources(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), and ilPasteIntoMultipleItemsExplorer\SEL_TYPE_RADIO.
Referenced by initSourceSelection().
|
protected |
Definition at line 334 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\ctrl(), ilUtil\getImagePath(), getOnLoadCode(), getPrimaryButtonLabel(), ILIAS\Repository\lng(), and ILIAS\UI\Implementation\Component\withOnLoadCode().
Referenced by initTargetSelection(), and saveTarget().
|
protected |
Unset session variables.
Definition at line 1151 of file class.ilObjectCopyGUI.php.
References ilSession\clear(), and setSource().
Referenced by showSourceSearch().
|
protected |
Definition at line 1018 of file class.ilObjectCopyGUI.php.
References ilCopyWizardOptions\_getInstance(), exit, and null.
|
protected |
Definition at line 63 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 80 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 77 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 57 of file class.ilObjectCopyGUI.php.
Referenced by cancel(), and keepObjectsInClipboard().
|
protected |
Definition at line 64 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 88 of file class.ilObjectCopyGUI.php.
Referenced by showSourceSearch().
|
protected |
Definition at line 69 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 68 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 82 of file class.ilObjectCopyGUI.php.
Referenced by getMode(), setMode(), and setSubMode().
|
protected |
Definition at line 62 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 61 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 79 of file class.ilObjectCopyGUI.php.
Referenced by getParentObject().
|
protected |
Definition at line 71 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 67 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 65 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 72 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 73 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 70 of file class.ilObjectCopyGUI.php.
|
private |
Definition at line 89 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 85 of file class.ilObjectCopyGUI.php.
Referenced by getSources().
|
protected |
Definition at line 83 of file class.ilObjectCopyGUI.php.
Referenced by getSubMode().
|
protected |
Definition at line 59 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 86 of file class.ilObjectCopyGUI.php.
Referenced by getTargets().
|
protected |
Definition at line 87 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 60 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 58 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 84 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 74 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 75 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 66 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::SEARCH_SOURCE = 3 |
Definition at line 44 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::SOURCE_SELECTION = 1 |
Definition at line 42 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::SUBMODE_COMPLETE = 1 |
Definition at line 46 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::SUBMODE_CONTENT_ONLY = 2 |
Definition at line 47 of file class.ilObjectCopyGUI.php.
Referenced by ilObjectCopySelectionTableGUI\__construct(), and ilContainer\cloneAllObject().
const ilObjectCopyGUI::TAB_GROUP_SC_SELECTION = 1 |
Definition at line 55 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::TAB_SELECTION_MEMBERSHIP = 3 |
Definition at line 52 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::TAB_SELECTION_SOURCE_TREE = 2 |
Definition at line 51 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::TAB_SELECTION_TARGET_TREE = 1 |
Definition at line 50 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::TARGET_SELECTION = 2 |
Definition at line 43 of file class.ilObjectCopyGUI.php.