|
ILIAS
release_8 Revision v8.24
|
GUI class for the workflow of copying objects. More...
Collaboration diagram for ilObjectCopyGUI:Public Member Functions | |
| __construct (ImplementsCreationCallback $parent_gui) | |
| executeCommand () | |
| showTargetSelectionTree () | |
| showSourceSelectionTree () | |
| 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... | |
| saveTarget () | |
| cancel () | |
| searchSource () | |
| saveSource () | |
| saveSourceMembership () | |
| Save selected source from membership screen. More... | |
| showItemSelection () | |
| copySingleObject () | |
| Start cloning a single (not container) object. More... | |
| copyContainerToTargets () | |
| showCopyProgress () | |
| updateProgress () | |
| copyContainer (int $target_ref_id) | |
| sourceExists () | |
| Check if there is any source object. More... | |
| initFormSearch () | |
| unsetSession () | |
| Unset session variables. More... | |
Protected Attributes | |
| ilCtrl | $ctrl |
| ilTree | $tree |
| ilTabsGUI | $tabs |
| ilToolbarGUI | $toolbar |
| ilGlobalTemplateInterface | $tpl |
| ilObjectDefinition | $obj_definition |
| ilObjectDataCache | $obj_data_cache |
| ilAccessHandler | $access |
| ilErrorHandling | $error |
| ilRbacSystem | $rbacsystem |
| ilObjUser | $user |
| ilRbacReview | $rbacreview |
| ilLogger | $log |
| ilLanguage | $lng |
| ILIAS HTTP Wrapper RequestWrapper | $request_wrapper |
| ILIAS HTTP Wrapper ArrayBasedRequestWrapper | $post_wrapper |
| ILIAS Refinery Factory | $refinery |
| 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 Attributes | |
| ilObjectRequestRetriever | $retriever |
GUI class for the workflow of copying objects.
Definition at line 31 of file class.ilObjectCopyGUI.php.
| ilObjectCopyGUI::__construct | ( | ImplementsCreationCallback | $parent_gui | ) |
Definition at line 78 of file class.ilObjectCopyGUI.php.
References $DIC, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), error(), ilLoggerFactory\getLogger(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), and ILIAS\Repository\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 221 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\ctrl(), initSourceSelection(), setMode(), setSubMode(), and setTarget().
Here is the call graph for this function:
|
protected |
Definition at line 574 of file class.ilObjectCopyGUI.php.
References $ctrl, and ilCtrl\setReturnByClass().
Here is the call graph for this function:
|
protected |
Definition at line 939 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 856 of file class.ilObjectCopyGUI.php.
References ilLink\_getLink(), ilCopyWizardOptions\_isFinished(), copyContainer(), ILIAS\Repository\ctrl(), getSources(), getSubMode(), getTargets(), 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 767 of file class.ilObjectCopyGUI.php.
References $ref_id, $sources, ilCopyWizardOptions\_allocateCopyId(), ilCopyWizardOptions\_getInstance(), ilLink\_getLink(), 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:
|
protected |
Start cloning a single (not container) object.
Definition at line 751 of file class.ilObjectCopyGUI.php.
References copyMultipleNonContainer(), ILIAS\Repository\ctrl(), getSources(), and ILIAS\Repository\lng().
Referenced by saveSource(), saveSourceMembership(), and saveTarget().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::executeCommand | ( | ) |
Definition at line 115 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\ctrl(), init(), and initTabs().
Here is the call graph for this function:| ilObjectCopyGUI::getFirstSource | ( | ) |
Definition at line 538 of file class.ilObjectCopyGUI.php.
Referenced by copyContainer(), init(), saveSourceMembership(), saveTarget(), searchSource(), and showItemSelection().
Here is the caller graph for this function:| ilObjectCopyGUI::getFirstTarget | ( | ) |
Definition at line 564 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 493 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 511 of file class.ilObjectCopyGUI.php.
References $parent_obj.
Referenced by init().
Here is the caller graph for this function:| ilObjectCopyGUI::getSources | ( | ) |
Definition at line 533 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 503 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 | ( | ) |
Definition at line 559 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 | ( | ) |
Definition at line 516 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 |
Definition at line 126 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 1027 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 265 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 187 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 236 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:| ilObjectCopyGUI::keepObjectsInClipboard | ( | ) |
Definition at line 581 of file class.ilObjectCopyGUI.php.
References $ctrl, getSources(), ILIAS\Repository\lng(), and ilCtrl\setCmd().
Here is the call graph for this function:
|
protected |
Definition at line 639 of file class.ilObjectCopyGUI.php.
References $source, $target_type, ilObject\_lookupType(), copySingleObject(), ILIAS\Repository\ctrl(), ilObjectFactory\getClassByType(), getSources(), getSubMode(), getTargets(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), searchSource(), setSource(), setType(), and showItemSelection().
Here is the call graph for this function:
|
protected |
Save selected source from membership screen.
Definition at line 691 of file class.ilObjectCopyGUI.php.
References $source, ilObject\_lookupType(), copySingleObject(), ILIAS\Repository\ctrl(), getFirstSource(), ILIAS\Repository\lng(), setSource(), setType(), and showItemSelection().
Here is the call graph for this function:
|
protected |
Definition at line 413 of file class.ilObjectCopyGUI.php.
References $target_type, 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 590 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 488 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 526 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 498 of file class.ilObjectCopyGUI.php.
References $mode.
Referenced by adoptContent(), and init().
Here is the caller graph for this function:
|
protected |
Definition at line 197 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 547 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 552 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 521 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 883 of file class.ilObjectCopyGUI.php.
References $ref_id, ilLink\_getLink(), ILIAS\Repository\refinery(), and ROOT_FOLDER_ID.
Referenced by copyContainerToTargets().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 712 of file class.ilObjectCopyGUI.php.
References getFirstSource(), getMode(), getSources(), getTargets(), getType(), ILIAS\Repository\lng(), SEARCH_SOURCE, searchSource(), 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 | ( | ?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 1006 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 294 of file class.ilObjectCopyGUI.php.
References ilParticipants\_getMembershipByType(), ILIAS\Repository\lng(), setTabs(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilObjectCopyGUI::showSourceSelectionTree | ( | ) |
Definition at line 363 of file class.ilObjectCopyGUI.php.
References $container, ILIAS\Repository\ctrl(), getFirstTarget(), getSources(), ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ilPasteIntoMultipleItemsExplorer\SEL_TYPE_RADIO, and ILIAS\Repository\toolbar().
Referenced by initSourceSelection().
Here is the call graph for this function:
Here is the caller graph for this function:| ilObjectCopyGUI::showTargetSelectionTree | ( | ) |
Definition at line 316 of file class.ilObjectCopyGUI.php.
References ILIAS\Repository\ctrl(), ilUtil\getImagePath(), ilSubmitButton\getInstance(), 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 |
Check if there is any source object.
Definition at line 1022 of file class.ilObjectCopyGUI.php.
References ilUtil\_getObjectsByOperations(), getType(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
protected |
Unset session variables.
Definition at line 1048 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 907 of file class.ilObjectCopyGUI.php.
References ilCopyWizardOptions\_getInstance(), and exit.
Here is the call graph for this function:
|
protected |
Definition at line 55 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 67 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 48 of file class.ilObjectCopyGUI.php.
Referenced by cancel(), and keepObjectsInClipboard().
|
protected |
Definition at line 56 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 75 of file class.ilObjectCopyGUI.php.
Referenced by showSourceSearch().
|
protected |
Definition at line 61 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 60 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 69 of file class.ilObjectCopyGUI.php.
Referenced by getMode(), setMode(), and setSubMode().
|
protected |
Definition at line 54 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 53 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 66 of file class.ilObjectCopyGUI.php.
Referenced by getParentObject().
|
protected |
Definition at line 63 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 59 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 57 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 64 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 62 of file class.ilObjectCopyGUI.php.
|
private |
Definition at line 76 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 72 of file class.ilObjectCopyGUI.php.
Referenced by copyMultipleNonContainer(), and getSources().
|
protected |
Definition at line 70 of file class.ilObjectCopyGUI.php.
Referenced by getSubMode().
|
protected |
Definition at line 50 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 73 of file class.ilObjectCopyGUI.php.
Referenced by getTargets().
|
protected |
Definition at line 74 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 51 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 52 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 49 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 71 of file class.ilObjectCopyGUI.php.
|
protected |
Definition at line 58 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::SEARCH_SOURCE = 3 |
Definition at line 35 of file class.ilObjectCopyGUI.php.
Referenced by showItemSelection().
| const ilObjectCopyGUI::SOURCE_SELECTION = 1 |
Definition at line 33 of file class.ilObjectCopyGUI.php.
Referenced by showItemSelection().
| const ilObjectCopyGUI::SUBMODE_COMPLETE = 1 |
Definition at line 37 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::SUBMODE_CONTENT_ONLY = 2 |
Definition at line 38 of file class.ilObjectCopyGUI.php.
Referenced by ilObjectCopySelectionTableGUI\__construct().
| const ilObjectCopyGUI::TAB_GROUP_SC_SELECTION = 1 |
Definition at line 46 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::TAB_SELECTION_MEMBERSHIP = 3 |
Definition at line 43 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::TAB_SELECTION_SOURCE_TREE = 2 |
Definition at line 42 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::TAB_SELECTION_TARGET_TREE = 1 |
Definition at line 41 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::TARGET_SELECTION = 2 |
Definition at line 34 of file class.ilObjectCopyGUI.php.
Referenced by showItemSelection().