ILIAS
Release_4_2_x_branch Revision 61807
|
GUI class for the workflow of copying objects. More...
Public Member Functions | |
__construct ($a_parent_gui) | |
Constructor. | |
executeCommand () | |
Control class handling. | |
showTargetSelectionTree () | |
Show target selection. | |
showSourceSelectionTree () | |
Show target selection. | |
setMode ($a_mode) | |
set copy mode | |
getMode () | |
get copy mode | |
getParentObject () | |
Get parent gui object. | |
getType () | |
Returns $type. | |
setType ($type) | |
Sets $type. | |
setSource ($a_source_id) | |
Set source id. | |
getSource () | |
Get source id. | |
setTarget ($a_target) | |
Set target id. | |
getTarget () | |
Get copy target. | |
showSourceSearch ($a_tplvar) | |
Show init screen Normally shown below the create and import form when creating a new object. |
Data Fields | |
const | SOURCE_SELECTION = 1 |
const | TARGET_SELECTION = 2 |
const | SEARCH_SOURCE = 3 |
Protected Member Functions | |
init () | |
Init return, mode. | |
initTargetSelection () | |
Init copy from repository/search list commands. | |
initSourceSelection () | |
Init source selection. | |
saveTarget () | |
Save target selection. | |
cancel () | |
Cancel workflow. | |
searchSource () | |
Search source. | |
saveSource () | |
select source object | |
showItemSelection () | |
copySingleObject () | |
Start cloning a single (not container) object. | |
copyContainer () | |
Copy a container. | |
sourceExists () | |
Check if there is any source object. | |
initFormSearch () | |
Init search form. | |
unsetSession () | |
Unset session variables. |
Private Attributes | |
$mode = 0 | |
$lng | |
$parent_obj = null | |
$type = '' | |
$source = 0 | |
$target = 0 |
GUI class for the workflow of copying objects.
Definition at line 14 of file class.ilObjectCopyGUI.php.
ilObjectCopyGUI::__construct | ( | $a_parent_gui | ) |
|
protected |
Cancel workflow.
Definition at line 427 of file class.ilObjectCopyGUI.php.
References $ilCtrl.
|
protected |
Copy a container.
Definition at line 635 of file class.ilObjectCopyGUI.php.
References $_COOKIE, $_POST, $ilCtrl, $ilErr, $ilLog, $result, $target_type, ilObject\_lookupObjId(), ilObject\_lookupType(), ilObjectFactory\getInstanceByRefId(), getSource(), getTarget(), getType(), ilUtil\redirect(), ilUtil\sendFailure(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
|
protected |
Start cloning a single (not container) object.
Definition at line 570 of file class.ilObjectCopyGUI.php.
References $ilCtrl, $ilErr, ilCopyWizardOptions\_allocateCopyId(), ilCopyWizardOptions\_getInstance(), ilLink\_getLink(), ilRbacLog\add(), ilRbacLog\COPY_OBJECT, ilRbacLog\gatherFaPa(), ilObjectFactory\getInstanceByRefId(), getSource(), getTarget(), getType(), ilRbacLog\isActive(), ilUtil\redirect(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Referenced by saveSource(), and saveTarget().
ilObjectCopyGUI::executeCommand | ( | ) |
Control class handling.
Definition at line 49 of file class.ilObjectCopyGUI.php.
References $cmd, $ilCtrl, and init().
ilObjectCopyGUI::getMode | ( | ) |
get copy mode
Definition at line 350 of file class.ilObjectCopyGUI.php.
References $mode.
Referenced by showItemSelection().
ilObjectCopyGUI::getParentObject | ( | ) |
Get parent gui object.
Definition at line 359 of file class.ilObjectCopyGUI.php.
References $parent_obj.
ilObjectCopyGUI::getSource | ( | ) |
Get source id.
Definition at line 399 of file class.ilObjectCopyGUI.php.
References $_SESSION.
Referenced by copyContainer(), copySingleObject(), init(), initTargetSelection(), searchSource(), showItemSelection(), and showSourceSelectionTree().
ilObjectCopyGUI::getTarget | ( | ) |
Get copy target.
Definition at line 418 of file class.ilObjectCopyGUI.php.
References $_SESSION.
Referenced by copyContainer(), copySingleObject(), and initSourceSelection().
ilObjectCopyGUI::getType | ( | ) |
Returns $type.
Definition at line 369 of file class.ilObjectCopyGUI.php.
References $type.
Referenced by copyContainer(), copySingleObject(), init(), initFormSearch(), showItemSelection(), showTargetSelectionTree(), and sourceExists().
|
protected |
Init return, mode.
Definition at line 71 of file class.ilObjectCopyGUI.php.
References $_GET, $_REQUEST, $ilCtrl, ilObject\_lookupObjId(), ilObject\_lookupType(), getSource(), getType(), setMode(), setTarget(), and setType().
Referenced by executeCommand().
|
protected |
Init search form.
Definition at line 728 of file class.ilObjectCopyGUI.php.
References $ilCtrl, $lng, getType(), and ilTextInputGUI\setSize().
Referenced by searchSource(), and showSourceSearch().
|
protected |
Init source selection.
Definition at line 141 of file class.ilObjectCopyGUI.php.
References $_GET, $_SESSION, $ilCtrl, $path, getTarget(), setMode(), setSource(), setTarget(), and showSourceSelectionTree().
|
protected |
Init copy from repository/search list commands.
Definition at line 107 of file class.ilObjectCopyGUI.php.
References $_GET, $_SESSION, $ilCtrl, $path, ilObject\_lookupObjId(), ilObject\_lookupType(), getSource(), setMode(), setSource(), setTarget(), setType(), and showTargetSelectionTree().
|
protected |
select source object
Definition at line 497 of file class.ilObjectCopyGUI.php.
References $_POST, copySingleObject(), searchSource(), ilUtil\sendFailure(), setSource(), and showItemSelection().
|
protected |
Save target selection.
Definition at line 311 of file class.ilObjectCopyGUI.php.
References $_POST, $_REQUEST, copySingleObject(), ilUtil\sendFailure(), setTarget(), showItemSelection(), and showTargetSelectionTree().
|
protected |
Search source.
Definition at line 437 of file class.ilObjectCopyGUI.php.
References $_POST, $_REQUEST, $_SESSION, $ilCtrl, $lng, $res, $results, $tpl, getSource(), initFormSearch(), QP_COMBINATION_AND, 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 341 of file class.ilObjectCopyGUI.php.
Referenced by init(), initSourceSelection(), and initTargetSelection().
ilObjectCopyGUI::setSource | ( | $a_source_id | ) |
Set source id.
int | $a_source_id |
Definition at line 390 of file class.ilObjectCopyGUI.php.
References $_SESSION.
Referenced by initSourceSelection(), initTargetSelection(), saveSource(), and unsetSession().
ilObjectCopyGUI::setTarget | ( | $a_target | ) |
Set target id.
int | $a_target |
Definition at line 409 of file class.ilObjectCopyGUI.php.
References $_SESSION.
Referenced by init(), initSourceSelection(), initTargetSelection(), and saveTarget().
ilObjectCopyGUI::setType | ( | $type | ) |
Sets $type.
object | $type |
Definition at line 380 of file class.ilObjectCopyGUI.php.
References $type.
Referenced by init(), and initTargetSelection().
|
protected |
Definition at line 528 of file class.ilObjectCopyGUI.php.
References $tpl, getMode(), getSource(), getType(), searchSource(), ilUtil\sendFailure(), and ilUtil\sendInfo().
Referenced by saveSource(), 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 690 of file class.ilObjectCopyGUI.php.
References $tpl, initFormSearch(), sourceExists(), and unsetSession().
ilObjectCopyGUI::showSourceSelectionTree | ( | ) |
Show target selection.
Definition at line 254 of file class.ilObjectCopyGUI.php.
References $_GET, $ilCtrl, $tpl, getSource(), ilPasteIntoMultipleItemsExplorer\SEL_TYPE_RADIO, and ilUtil\sendInfo().
Referenced by initSourceSelection().
ilObjectCopyGUI::showTargetSelectionTree | ( | ) |
Show target selection.
Definition at line 171 of file class.ilObjectCopyGUI.php.
References $_GET, $_POST, $ilCtrl, $tpl, ilPlugin\getPluginObject(), getType(), IL_COMP_SERVICE, ilPlugin\lookupNameForId(), ilPasteIntoMultipleItemsExplorer\SEL_TYPE_RADIO, and ilUtil\sendInfo().
Referenced by initTargetSelection(), and saveTarget().
|
protected |
Check if there is any source object.
Definition at line 717 of file class.ilObjectCopyGUI.php.
References ilUtil\_getObjectsByOperations(), and getType().
Referenced by showSourceSearch().
|
protected |
Unset session variables.
Definition at line 754 of file class.ilObjectCopyGUI.php.
References $_SESSION, and setSource().
Referenced by showSourceSearch().
|
private |
Definition at line 22 of file class.ilObjectCopyGUI.php.
Referenced by __construct(), initFormSearch(), and searchSource().
|
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.
const ilObjectCopyGUI::SOURCE_SELECTION = 1 |
Definition at line 16 of file class.ilObjectCopyGUI.php.
const ilObjectCopyGUI::TARGET_SELECTION = 2 |
Definition at line 17 of file class.ilObjectCopyGUI.php.