|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
GUI class for the workflow of copying objects. More...
Collaboration diagram for ilObjectCopyGUI: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 |
| GlobalHttpState | $http |
| 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 43 of file class.ilObjectCopyGUI.php.
|
protected |
Adopt content (crs in crs, grp in grp, crs in grp or grp in crs)
Definition at line 244 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\ctrl(), initSourceSelection(), setMode(), setSubMode(), and setTarget().
Here is the call graph for this function:
|
private |
Definition at line 785 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
Referenced by saveCopyPage(), and showCopyPageSelection().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 619 of file class.ilObjectCopyGUI.php.
References $ctrl, and ilCtrl\setReturnByClass().
Here is the call graph for this function:
|
protected |
Definition at line 1064 of file class.ilObjectCopyGUI.php.
References $_COOKIE, ILIAS\UI\Implementation\Component\Input\Field\$options, CLIENT_ID, ILIAS\Repository\ctrl(), getFirstSource(), ilObjectFactory\getInstanceByRefId(), getSources(), getSubMode(), getType(), ILIAS\Repository\int(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().
Referenced by copyContainerToTargets().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 934 of file class.ilObjectCopyGUI.php.
References ilCopyWizardOptions\_isFinished(), copyContainer(), copyParentPage(), ILIAS\Repository\ctrl(), getSources(), getSubMode(), getTargets(), isCopyingParentPageNeeded(), ILIAS\Repository\lng(), and showCopyProgress().
Here is the call graph for this function:| ilObjectCopyGUI::copyMultipleNonContainer | ( | array | $sources | ) |
Copy multiple non container.
| array | $sources | array of source ref ids |
Definition at line 845 of file class.ilObjectCopyGUI.php.
References $ref_id, $sources, ilCopyWizardOptions\_allocateCopyId(), ilCopyWizardOptions\_getInstance(), ilObject\_lookupType(), ILIAS\Repository\access(), ilRbacLog\add(), ilRbacLog\COPY_OBJECT, ILIAS\Repository\ctrl(), ilRbacLog\gatherFaPa(), getFirstTarget(), ilObjectFactory\getInstanceByRefId(), ilLoggerFactory\getLogger(), getTargets(), ilRbacLog\isActive(), ILIAS\Repository\lng(), ilUtil\redirect(), and ILIAS\Repository\user().
Referenced by copySingleObject(), and saveTarget().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 971 of file class.ilObjectCopyGUI.php.
References ilPageObject\_exists(), ilObjStyleSheet\_lookupStandard(), getFirstSource(), ilObjectFactory\getInstanceByObjId(), ilObjectFactory\getInstanceByRefId(), getParentObject(), ilObjStyleSheet\lookupObjectStyle(), ilObjStyleSheet\writeOwner(), and ilObjStyleSheet\writeStyleUsage().
Referenced by copyContainerToTargets().
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 829 of file class.ilObjectCopyGUI.php.
References copyMultipleNonContainer(), ILIAS\Repository\ctrl(), getSources(), and ILIAS\Repository\lng().
Referenced by executeNextStepAfterSourceSelection(), and saveTarget().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::executeCommand | ( | ) |
Definition at line 138 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\ctrl(), init(), and initTabs().
Here is the call graph for this function:
|
private |
Definition at line 751 of file class.ilObjectCopyGUI.php.
References ilPageObject\_exists(), ilObject\_lookupObjId(), copySingleObject(), getFirstSource(), getSources(), showCopyPageSelection(), and showItemSelection().
Referenced by saveSource(), and saveSourceMembership().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 707 of file class.ilObjectCopyGUI.php.
References $ref_id, ilObject\_lookupType(), ilObjectFactory\getClassByType(), getSubMode(), getTargets(), and ILIAS\Repository\lng().
Referenced by saveSource().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::getFirstSource | ( | ) |
Definition at line 583 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer(), copyParentPage(), executeNextStepAfterSourceSelection(), init(), saveSourceMembership(), saveTarget(), searchSource(), and showItemSelection().
Here is the caller graph for this function:| ilObjectCopyGUI::getFirstTarget | ( | ) |
Definition at line 609 of file class.ilObjectCopyGUI.php.
References getTargets().
Referenced by copyMultipleNonContainer(), init(), and showSourceSelectionTree().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::getMode | ( | ) |
Definition at line 538 of file class.ilObjectCopyGUI.php.
References $mode.
Referenced by setTabs().
Here is the caller graph for this function:
|
private |
Definition at line 396 of file class.ilObjectCopyGUI.php.
References $id.
Referenced by showTargetSelectionTree().
Here is the caller graph for this function:| ilObjectCopyGUI::getParentObject | ( | ) |
Get parent gui object.
Definition at line 556 of file class.ilObjectCopyGUI.php.
References $parent_obj.
Referenced by copyParentPage(), and init().
Here is the caller graph for this function:
|
private |
Definition at line 387 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\lng().
Referenced by showTargetSelectionTree().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::getSources | ( | ) |
Definition at line 578 of file class.ilObjectCopyGUI.php.
References $sources.
Referenced by copyContainer(), copyContainerToTargets(), copySingleObject(), executeNextStepAfterSourceSelection(), init(), initTargetSelection(), keepObjectsInClipboard(), saveSource(), saveTarget(), showItemSelection(), and showSourceSelectionTree().
Here is the caller graph for this function:| ilObjectCopyGUI::getSubMode | ( | ) |
Definition at line 548 of file class.ilObjectCopyGUI.php.
References $sub_mode.
Referenced by copyContainer(), copyContainerToTargets(), getErrorMessageOnDisallowedObjectTypeForTarget(), init(), and setTabs().
Here is the caller graph for this function:| ilObjectCopyGUI::getTargets | ( | ) |
Definition at line 604 of file class.ilObjectCopyGUI.php.
References $targets.
Referenced by copyContainerToTargets(), copyMultipleNonContainer(), getErrorMessageOnDisallowedObjectTypeForTarget(), getFirstTarget(), init(), initSourceSelection(), saveTarget(), and showItemSelection().
Here is the caller graph for this function:| ilObjectCopyGUI::getType | ( | ) |
Definition at line 561 of file class.ilObjectCopyGUI.php.
References $type.
Referenced by copyContainer(), init(), initFormSearch(), searchSource(), and showItemSelection().
Here is the caller graph for this function:
|
protected |
Definition at line 149 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1144 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\form(), getType(), and ILIAS\Repository\lng().
Referenced by searchSource(), and showSourceSearch().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 288 of file class.ilObjectCopyGUI.php.
References $path, ILIAS\Repository\ctrl(), ilSession\get(), getTargets(), ilSession\set(), setTabs(), and showSourceSelectionTree().
Referenced by adoptContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 210 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\lng(), and ILIAS\Repository\tabs().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Init copy from repository/search list commands.
Definition at line 259 of file class.ilObjectCopyGUI.php.
References $path, ILIAS\Repository\ctrl(), ilSession\get(), getSources(), ilSession\set(), setTargets(), and showTargetSelectionTree().
Here is the call graph for this function:
|
private |
Definition at line 965 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\refinery().
Referenced by copyContainerToTargets().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::keepObjectsInClipboard | ( | ) |
Definition at line 626 of file class.ilObjectCopyGUI.php.
References $ctrl, getSources(), ILIAS\Repository\lng(), and ilCtrl\returnToParent().
Here is the call graph for this function:
|
protected |
Definition at line 777 of file class.ilObjectCopyGUI.php.
References $data, $form, buildCopyPageSelectionForm(), and showItemSelection().
Here is the call graph for this function:
|
protected |
Definition at line 683 of file class.ilObjectCopyGUI.php.
References ilObject\_lookupType(), ILIAS\Repository\ctrl(), executeNextStepAfterSourceSelection(), getErrorMessageOnDisallowedObjectTypeForTarget(), getSources(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), searchSource(), setSource(), and setType().
Here is the call graph for this function:
|
protected |
Save selected source from membership screen.
Definition at line 735 of file class.ilObjectCopyGUI.php.
References ilObject\_lookupType(), ILIAS\Repository\ctrl(), executeNextStepAfterSourceSelection(), getFirstSource(), ILIAS\Repository\lng(), setSource(), and setType().
Here is the call graph for this function:
|
protected |
Definition at line 455 of file class.ilObjectCopyGUI.php.
References Vendor\Package\$e, $targets, ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), copyMultipleNonContainer(), copySingleObject(), ILIAS\Repository\ctrl(), ilObjectFactory\getClassByType(), getFirstSource(), getSources(), getTargets(), ILIAS\Repository\lng(), setTarget(), setTargets(), showItemSelection(), and showTargetSelectionTree().
Here is the call graph for this function:
|
protected |
Definition at line 635 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::setMode | ( | int | $mode | ) |
Definition at line 533 of file class.ilObjectCopyGUI.php.
References $mode.
Referenced by adoptContent(), and init().
Here is the caller graph for this function:| ilObjectCopyGUI::setSource | ( | array | $source_ids | ) |
Definition at line 571 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\refinery().
Referenced by init(), saveSource(), saveSourceMembership(), and unsetSession().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::setSubMode | ( | int | $mode | ) |
Definition at line 543 of file class.ilObjectCopyGUI.php.
References $mode.
Referenced by adoptContent(), and init().
Here is the caller graph for this function:
|
protected |
Definition at line 220 of file class.ilObjectCopyGUI.php.
References getMode(), getSubMode(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().
Referenced by initSourceSelection(), and showSourceSelectionMembership().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::setTarget | ( | int | $ref_id | ) |
Definition at line 592 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 | $targets | ) |
Definition at line 597 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\refinery().
Referenced by init(), initTargetSelection(), saveTarget(), and setTarget().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::setType | ( | string | $type | ) |
Definition at line 566 of file class.ilObjectCopyGUI.php.
References $type.
Referenced by init(), saveSource(), and saveSourceMembership().
Here is the caller graph for this function:
|
protected |
Definition at line 771 of file class.ilObjectCopyGUI.php.
References $form, and buildCopyPageSelectionForm().
Referenced by executeNextStepAfterSourceSelection().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 999 of file class.ilObjectCopyGUI.php.
References $ref_id, ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ROOT_FOLDER_ID, and ILIAS\Repository\tabs().
Referenced by copyContainerToTargets().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 805 of file class.ilObjectCopyGUI.php.
References getFirstSource(), getSources(), getTargets(), getType(), ILIAS\Repository\lng(), and searchSource().
Referenced by executeNextStepAfterSourceSelection(), saveCopyPage(), and saveTarget().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 1131 of file class.ilObjectCopyGUI.php.
References $form, ILIAS\Repository\form(), initFormSearch(), and unsetSession().
Here is the call graph for this function:
|
protected |
show target selection membership
Definition at line 317 of file class.ilObjectCopyGUI.php.
References ilParticipants\_getMembershipByType(), ILIAS\Repository\lng(), setTabs(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
protected |
Definition at line 407 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 339 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\ctrl(), ilUtil\getImagePath(), getOnLoadCode(), getPrimaryButtonLabel(), and ILIAS\Repository\lng().
Referenced by initTargetSelection(), and saveTarget().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Unset session variables.
Definition at line 1165 of file class.ilObjectCopyGUI.php.
References ilSession\clear(), and setSource().
Referenced by showSourceSearch().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1031 of file class.ilObjectCopyGUI.php.
References ILIAS\UI\Implementation\Component\Input\Field\$options, ilCopyWizardOptions\_getInstance(), ILIAS\FileDelivery\http(), ILIAS\Repository\int(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 66 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 84 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 81 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 60 of file class.ilObjectCopyGUI.php.
Referenced by cancel(), and keepObjectsInClipboard().
|
protected |
Definition at line 67 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 92 of file class.ilObjectCopyGUI.php.
Referenced by saveCopyPage(), showCopyPageSelection(), and showSourceSearch().
|
protected |
Definition at line 79 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 72 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 71 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 86 of file class.ilObjectCopyGUI.php.
Referenced by getMode(), setMode(), and setSubMode().
|
protected |
Definition at line 65 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 64 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 83 of file class.ilObjectCopyGUI.php.
Referenced by getParentObject().
|
protected |
Definition at line 74 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 70 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 68 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 75 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 76 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 73 of file class.ilObjectCopyGUI.php.
|
private |
Definition at line 93 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 89 of file class.ilObjectCopyGUI.php.
Referenced by copyMultipleNonContainer(), and getSources().
|
protected |
Definition at line 87 of file class.ilObjectCopyGUI.php.
Referenced by getSubMode().
|
protected |
Definition at line 62 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 90 of file class.ilObjectCopyGUI.php.
Referenced by getTargets(), and saveTarget().
|
protected |
Definition at line 91 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 63 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 61 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 88 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 77 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 78 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 69 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::SEARCH_SOURCE = 3 |
Definition at line 47 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::SOURCE_SELECTION = 1 |
Definition at line 45 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::SUBMODE_COMPLETE = 1 |
Definition at line 49 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::SUBMODE_CONTENT_ONLY = 2 |
Definition at line 50 of file class.ilObjectCopyGUI.php.
Referenced by ilObjectCopySelectionTableGUI\__construct().
| const ilObjectCopyGUI::TAB_GROUP_SC_SELECTION = 1 |
Definition at line 58 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::TAB_SELECTION_MEMBERSHIP = 3 |
Definition at line 55 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::TAB_SELECTION_SOURCE_TREE = 2 |
Definition at line 54 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::TAB_SELECTION_TARGET_TREE = 1 |
Definition at line 53 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::TARGET_SELECTION = 2 |
Definition at line 46 of file class.ilObjectCopyGUI.php.