|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
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... | |
| getParentObject () | |
| Get parent gui object. More... | |
| getType () | |
| Returns $type. More... | |
| setType ($type) | |
| Sets $type. More... | |
| setSource ($a_source_id) | |
| Set source id. More... | |
| getSource () | |
| Get source id. More... | |
| setTarget ($a_target) | |
| Set target id. More... | |
| getTarget () | |
| Get copy 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 |
Protected Member Functions | |
| init () | |
| Init return, mode. More... | |
| initTargetSelection () | |
| Init copy from repository/search list commands. More... | |
| initSourceSelection () | |
| Init source selection. More... | |
| saveTarget () | |
| Save target selection. More... | |
| cancel () | |
| Cancel workflow. More... | |
| searchSource () | |
| Search source. More... | |
| saveSource () | |
| select source object More... | |
| showItemSelection () | |
| copySingleObject () | |
| Start cloning a single (not container) object. More... | |
| copyContainer () | |
| Copy a container. More... | |
| sourceExists () | |
| Check if there is any source object. More... | |
| initFormSearch () | |
| Init search form. More... | |
| unsetSession () | |
| Unset session variables. More... | |
Private Attributes | |
| $mode = 0 | |
| $lng | |
| $parent_obj = null | |
| $type = '' | |
| $source = 0 | |
| $target = 0 | |
GUI class for the workflow of copying objects.
@ilCtrl_Calls ilObjectCopyGUI:
Definition at line 14 of file class.ilObjectCopyGUI.php.
| ilObjectCopyGUI::__construct | ( | $a_parent_gui | ) |
Constructor.
Definition at line 35 of file class.ilObjectCopyGUI.php.
|
protected |
|
protected |
Copy a container.
Definition at line 855 of file class.ilObjectCopyGUI.php.
References $_COOKIE, $_POST, $_SESSION, $ilCtrl, $ilErr, $ilLog, $ilUser, $options, $result, $target_type, ilObject\_lookupObjId(), ilObject\_lookupType(), ilObjectFactory\getInstanceByRefId(), getSource(), getTarget(), getType(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
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 770 of file class.ilObjectCopyGUI.php.
References $_SESSION, $ilCtrl, $ilUser, ilCopyWizardOptions\_allocateCopyId(), ilCopyWizardOptions\_getInstance(), ilLink\_getLink(), ilObject\_lookupType(), ilRbacLog\add(), ilRbacLog\COPY_OBJECT, ilRbacLog\gatherFaPa(), ilObjectFactory\getInstanceByRefId(), getTarget(), ilRbacLog\isActive(), ilUtil\redirect(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
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 689 of file class.ilObjectCopyGUI.php.
References $ilCtrl, $ilErr, $ilUser, ilCopyWizardOptions\_allocateCopyId(), ilCopyWizardOptions\_getInstance(), ilLink\_getLink(), ilRbacLog\add(), ilRbacLog\COPY_OBJECT, copyMultipleNonContainer(), ilRbacLog\gatherFaPa(), ilObjectFactory\getInstanceByRefId(), getSource(), getTarget(), ilRbacLog\isActive(), ilUtil\redirect(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Referenced by saveSource(), 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 53 of file class.ilObjectCopyGUI.php.
References $cmd, $ilCtrl, and init().
Here is the call graph for this function:| ilObjectCopyGUI::getMode | ( | ) |
get copy mode
Definition at line 447 of file class.ilObjectCopyGUI.php.
References $mode.
Referenced by showItemSelection().
Here is the caller graph for this function:| ilObjectCopyGUI::getParentObject | ( | ) |
Get parent gui object.
Definition at line 456 of file class.ilObjectCopyGUI.php.
References $parent_obj.
| ilObjectCopyGUI::getSource | ( | ) |
Get source id.
Definition at line 496 of file class.ilObjectCopyGUI.php.
References $_GET, and $_SESSION.
Referenced by copyContainer(), copySingleObject(), init(), initTargetSelection(), keepObjectsInClipboard(), saveTarget(), searchSource(), showItemSelection(), showSourceSelectionTree(), and showTargetSelectionTree().
Here is the caller graph for this function:| ilObjectCopyGUI::getTarget | ( | ) |
Get copy target.
Definition at line 519 of file class.ilObjectCopyGUI.php.
References $_SESSION.
Referenced by copyContainer(), copyMultipleNonContainer(), copySingleObject(), initSourceSelection(), and saveTarget().
Here is the caller graph for this function:| ilObjectCopyGUI::getType | ( | ) |
Returns $type.
Definition at line 466 of file class.ilObjectCopyGUI.php.
References $type.
Referenced by copyContainer(), init(), initFormSearch(), showItemSelection(), showTargetSelectionTree(), and sourceExists().
Here is the caller graph for this function:
|
protected |
Init return, mode.
Definition at line 75 of file class.ilObjectCopyGUI.php.
References $_GET, $_REQUEST, $ilCtrl, ilObject\_lookupObjId(), ilObject\_lookupType(), getSource(), getType(), setMode(), setTarget(), 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 957 of file class.ilObjectCopyGUI.php.
References $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 155 of file class.ilObjectCopyGUI.php.
References $_GET, $_SESSION, $ilCtrl, $path, getTarget(), setMode(), setSource(), setTarget(), and showSourceSelectionTree().
Here is the call graph for this function:
|
protected |
Init copy from repository/search list commands.
Definition at line 114 of file class.ilObjectCopyGUI.php.
References $_GET, $_SESSION, $ilCtrl, $path, ilObject\_lookupObjId(), ilObject\_lookupType(), getSource(), setMode(), setSource(), setTarget(), setType(), and showTargetSelectionTree().
Here is the call graph for this function:| ilObjectCopyGUI::keepObjectsInClipboard | ( | ) |
Keep objects in clipboard.
Definition at line 536 of file class.ilObjectCopyGUI.php.
References $_GET, $_SESSION, $ilCtrl, and getSource().
Here is the call graph for this function:
|
protected |
select source object
Definition at line 616 of file class.ilObjectCopyGUI.php.
References $_POST, copySingleObject(), searchSource(), ilUtil\sendFailure(), setSource(), and showItemSelection().
Here is the call graph for this function:
|
protected |
Save target selection.
Definition at line 382 of file class.ilObjectCopyGUI.php.
References $_GET, $_REQUEST, ilObject\_lookupObjId(), ilObject\_lookupTitle(), copyMultipleNonContainer(), copySingleObject(), getSource(), getTarget(), ilUtil\sendFailure(), setTarget(), showItemSelection(), and showTargetSelectionTree().
Here is the call graph for this function:
|
protected |
Search source.
Definition at line 556 of file class.ilObjectCopyGUI.php.
References $_POST, $_REQUEST, $_SESSION, $ilCtrl, $lng, $res, $results, $tpl, getSource(), 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 438 of file class.ilObjectCopyGUI.php.
Referenced by init(), initSourceSelection(), and initTargetSelection().
Here is the caller graph for this function:| ilObjectCopyGUI::setSource | ( | $a_source_id | ) |
Set source id.
| int | $a_source_id |
Definition at line 487 of file class.ilObjectCopyGUI.php.
References $_SESSION.
Referenced by initSourceSelection(), initTargetSelection(), saveSource(), and unsetSession().
Here is the caller graph for this function:| ilObjectCopyGUI::setTarget | ( | $a_target | ) |
Set target id.
| int | $a_target |
Definition at line 510 of file class.ilObjectCopyGUI.php.
References $_SESSION.
Referenced by init(), initSourceSelection(), initTargetSelection(), and saveTarget().
Here is the caller graph for this function:| ilObjectCopyGUI::setType | ( | $type | ) |
Sets $type.
| object | $type |
Definition at line 477 of file class.ilObjectCopyGUI.php.
References $type.
Referenced by init(), and initTargetSelection().
Here is the caller graph for this function:
|
protected |
Definition at line 647 of file class.ilObjectCopyGUI.php.
References $tpl, getMode(), getSource(), getType(), SEARCH_SOURCE, searchSource(), ilUtil\sendFailure(), ilUtil\sendInfo(), SOURCE_SELECTION, and TARGET_SELECTION.
Referenced by saveSource(), 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 918 of file class.ilObjectCopyGUI.php.
References $tpl, initFormSearch(), and unsetSession().
Here is the call graph for this function:| ilObjectCopyGUI::showSourceSelectionTree | ( | ) |
Show target selection.
Definition at line 324 of file class.ilObjectCopyGUI.php.
References $_GET, $ilCtrl, $tpl, getSource(), 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 184 of file class.ilObjectCopyGUI.php.
References $_GET, $_POST, $ilCtrl, $lng, $t, $tpl, ilUtil\getImagePath(), ilPlugin\getPluginObject(), getSource(), getType(), IL_COMP_SERVICE, ilPlugin\lookupNameForId(), ilPasteIntoMultipleItemsExplorer\SEL_TYPE_RADIO, 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 946 of file class.ilObjectCopyGUI.php.
References $ilUser, ilUtil\_getObjectsByOperations(), and getType().
Here is the call graph for this function:
|
protected |
Unset session variables.
Definition at line 983 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:
|
private |
Definition at line 22 of file class.ilObjectCopyGUI.php.
Referenced by __construct(), initFormSearch(), searchSource(), and showTargetSelectionTree().
|
private |
Definition at line 20 of file class.ilObjectCopyGUI.php.
Referenced by getMode().
|
private |
Definition at line 24 of file class.ilObjectCopyGUI.php.
Referenced by getParentObject().
|
private |
Definition at line 27 of file class.ilObjectCopyGUI.php.
|
private |
Definition at line 28 of file class.ilObjectCopyGUI.php.
|
private |
Definition at line 26 of file class.ilObjectCopyGUI.php.
| const ilObjectCopyGUI::SEARCH_SOURCE = 3 |
Definition at line 18 of file class.ilObjectCopyGUI.php.
Referenced by showItemSelection().
| const ilObjectCopyGUI::SOURCE_SELECTION = 1 |
Definition at line 16 of file class.ilObjectCopyGUI.php.
Referenced by showItemSelection().
| const ilObjectCopyGUI::TARGET_SELECTION = 2 |
Definition at line 17 of file class.ilObjectCopyGUI.php.
Referenced by showItemSelection().