ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
getRequiredSteps () | |
Get required steps. More... | |
saveOwner ($a_user_id) | |
Save owner for copy. More... | |
saveRoot ($a_root) | |
Save root node id. More... | |
isRootNode ($a_root) | |
Is root node. More... | |
disableSOAP () | |
Disable soap calls. More... | |
disableTreeCopy () | |
Disable copying of tree. More... | |
isTreeCopyDisabled () | |
Check if tree copy is enabled. More... | |
isSOAPEnabled () | |
Check if SOAP calls are disabled. More... | |
checkOwner ($a_user_id) | |
check owner More... | |
getCopyId () | |
Get copy id. More... | |
initContainer ($a_source_id, $a_target_id) | |
Init container Add copy entry. More... | |
storeTree ($a_source_id) | |
Save tree Stores two copies of the tree structure: id 0 is used for recursive call of cloneObject() id -1 is used for recursive call of cloneDependencies() More... | |
fetchFirstNode () | |
Fetch first node for cloneObject. More... | |
fetchFirstDependenciesNode () | |
Fetch first dependencies node. More... | |
dropFirstNodeById ($a_id) | |
Drop first node by id. More... | |
dropFirstNode () | |
Drop first node (for cloneObject()) More... | |
dropFirstDependenciesNode () | |
Drop first node (for cloneDependencies()) More... | |
getOptions ($a_source_id) | |
Get entry by source. More... | |
addEntry ($a_source_id, $a_options) | |
Add new entry. More... | |
appendMapping ($a_source_id, $a_target_id) | |
Add mapping of source -> target. More... | |
getMappings () | |
Get Mappings. More... | |
deleteAll () | |
Delete all entries. More... | |
read () | |
public More... | |
Static Public Member Functions | |
static | _getInstance ($a_copy_id) |
Get instance of copy wizard options. More... | |
static | _isFinished ($a_copy_id) |
check if copy is finished More... | |
static | _allocateCopyId () |
Allocate a copy for further entries. More... | |
Data Fields | |
const | COPY_WIZARD_OMIT = 1 |
const | COPY_WIZARD_COPY = 2 |
const | COPY_WIZARD_LINK = 3 |
const | OWNER_KEY = -3 |
const | DISABLE_SOAP = -4 |
const | ROOT_NODE = -5 |
const | DISABLE_TREE_COPY = -6 |
Private Member Functions | |
__construct ($a_copy_id=0) | |
Private Constructor (Singleton class) More... | |
fetchFirstNodeById ($a_id) | |
Get first node of stored tree. More... | |
readTree ($a_source_id) | |
Purge ommitted node recursively. More... | |
Private Attributes | |
$db | |
$copy_id | |
$source_id | |
$options = array() | |
Static Private Attributes | |
static | $instances = null |
Definition at line 32 of file class.ilCopyWizardOptions.php.
|
private |
Private Constructor (Singleton class)
private
int | copy_id |
Definition at line 58 of file class.ilCopyWizardOptions.php.
|
static |
Allocate a copy for further entries.
public
Definition at line 124 of file class.ilCopyWizardOptions.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilContainer\cloneAllObject(), ilObjectGUI\cloneAllObject(), ilObjectCopyGUI\copyMultipleNonContainer(), ilSoapObjectAdministration\copyObject(), and ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects().
|
static |
Get instance of copy wizard options.
public
ilCopyWizardOptions |
Definition at line 79 of file class.ilCopyWizardOptions.php.
Referenced by ilObjTest\_getAvailableTests(), ilObject\appendCopyInfo(), ilContainer\cloneAllObject(), ilObjectGUI\cloneAllObject(), ilLPCollection\cloneCollection(), ilLPCollectionOfRepositoryObjects\cloneCollection(), ilCourseObjectiveMaterials\cloneDependencies(), ilCourseStart\cloneDependencies(), ilCourseObjectiveQuestion\cloneDependencies(), ilObjCategory\cloneDependencies(), ilContainerStartObjects\cloneDependencies(), ilObjectActivation\cloneDependencies(), ilConditionHandler\cloneDependencies(), ilEventItems\cloneItems(), ilItemGroupItems\cloneItems(), ilObjSurveyQuestionPool\cloneObject(), ilObjBookingPool\cloneObject(), ilObjFileBasedLM\cloneObject(), ilObjMediaCast\cloneObject(), ilObjWiki\cloneObject(), ilObjCourse\cloneObject(), ilObjGlossary\cloneObject(), ilObjSAHSLearningModule\cloneObject(), ilObjQuestionPool\cloneObject(), ilObject\cloneObject(), ilObjContentObject\cloneObject(), ilObjSurvey\cloneObject(), ilTestFixedQuestionSetConfig\cloneQuestionSetRelatedData(), ilLOTestAssignment\cloneSettings(), ilLOSettings\cloneSettings(), ilContainerSorting\cloneSorting(), ilLORandomTestQuestionPools\copy(), ilObjContentObject\copyAllPagesAndChapters(), ilObjectCopyGUI\copyMultipleNonContainer(), ilSoapObjectAdministration\copyObject(), ilObjCloud\doClone(), ilObjPortfolioTemplate\doCloneObject(), ilObjDataCollection\doCloneObject(), ilObjBibliographic\doCloneObject(), ilObjPoll\doCloneObject(), ilObjItemGroup\fixContainerItemGroupRefsAfterCloning(), ilContainer\fixInternalLinksAfterCopy(), ilObjForum\getDiskUsage(), ilSoapUtils\ilClone(), ilSoapUtils\ilCloneDependencies(), ilObjectCopyProgressTableGUI\parse(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilTestRandomQuestionSetConfig\registerClonedSourcePoolDefinitionIdMapping(), and ilObjectCopyGUI\updateProgress().
|
static |
check if copy is finished
public
int | copy id |
Definition at line 107 of file class.ilCopyWizardOptions.php.
References $ilDB, $query, and $res.
Referenced by ilContainerGUI\cloneAllObject(), and ilObjectCopyGUI\copyContainerToTargets().
ilCopyWizardOptions::addEntry | ( | $a_source_id, | |
$a_options | |||
) |
Add new entry.
public
int | ref_id of source |
array | array of options |
Definition at line 457 of file class.ilCopyWizardOptions.php.
References $ilDB, $query, $res, and array.
Referenced by initContainer().
ilCopyWizardOptions::appendMapping | ( | $a_source_id, | |
$a_target_id | |||
) |
Add mapping of source -> target.
public
int | string | $a_source_id | array key of mapping entry |
mixed | $a_target_id | array value of mapping entry |
Definition at line 487 of file class.ilCopyWizardOptions.php.
References $ilDB, $query, $res, $row, array, ilDBConstants\FETCHMODE_OBJECT, and getCopyId().
Referenced by initContainer().
ilCopyWizardOptions::checkOwner | ( | $a_user_id | ) |
check owner
public
int | user_id |
Definition at line 268 of file class.ilCopyWizardOptions.php.
References getOptions().
ilCopyWizardOptions::deleteAll | ( | ) |
Delete all entries.
public
Definition at line 538 of file class.ilCopyWizardOptions.php.
References $ilDB, $query, and $res.
ilCopyWizardOptions::disableSOAP | ( | ) |
Disable soap calls.
Recursive call of ilClone and ilCloneDependencies
public
Definition at line 199 of file class.ilCopyWizardOptions.php.
References $ilDB, array, and getCopyId().
ilCopyWizardOptions::disableTreeCopy | ( | ) |
Disable copying of tree.
Used for workspace copies type $ilDB
Definition at line 217 of file class.ilCopyWizardOptions.php.
References $ilDB, array, and getCopyId().
ilCopyWizardOptions::dropFirstDependenciesNode | ( | ) |
Drop first node (for cloneDependencies())
public
Definition at line 428 of file class.ilCopyWizardOptions.php.
References dropFirstNodeById().
ilCopyWizardOptions::dropFirstNode | ( | ) |
Drop first node (for cloneObject())
public
Definition at line 417 of file class.ilCopyWizardOptions.php.
References dropFirstNodeById().
ilCopyWizardOptions::dropFirstNodeById | ( | $a_id | ) |
Drop first node by id.
private
Definition at line 381 of file class.ilCopyWizardOptions.php.
References $ilDB, array, fetchFirstNodeById(), getCopyId(), and read().
Referenced by dropFirstDependenciesNode(), and dropFirstNode().
ilCopyWizardOptions::fetchFirstDependenciesNode | ( | ) |
Fetch first dependencies node.
public
Definition at line 370 of file class.ilCopyWizardOptions.php.
References fetchFirstNodeById().
ilCopyWizardOptions::fetchFirstNode | ( | ) |
Fetch first node for cloneObject.
public
Definition at line 359 of file class.ilCopyWizardOptions.php.
References fetchFirstNodeById().
|
private |
Get first node of stored tree.
private
Definition at line 342 of file class.ilCopyWizardOptions.php.
References getOptions().
Referenced by dropFirstNodeById(), fetchFirstDependenciesNode(), and fetchFirstNode().
ilCopyWizardOptions::getCopyId | ( | ) |
Get copy id.
public
Definition at line 279 of file class.ilCopyWizardOptions.php.
References $copy_id.
Referenced by appendMapping(), disableSOAP(), disableTreeCopy(), dropFirstNodeById(), saveOwner(), saveRoot(), and storeTree().
ilCopyWizardOptions::getMappings | ( | ) |
Get Mappings.
public
Definition at line 523 of file class.ilCopyWizardOptions.php.
References array.
ilCopyWizardOptions::getOptions | ( | $a_source_id | ) |
Get entry by source.
public
int | source ref_id |
Definition at line 440 of file class.ilCopyWizardOptions.php.
References array.
Referenced by checkOwner(), fetchFirstNodeById(), and isRootNode().
ilCopyWizardOptions::getRequiredSteps | ( | ) |
ilCopyWizardOptions::initContainer | ( | $a_source_id, | |
$a_target_id | |||
) |
Init container Add copy entry.
public
Definition at line 293 of file class.ilCopyWizardOptions.php.
References addEntry(), appendMapping(), array, and COPY_WIZARD_COPY.
ilCopyWizardOptions::isRootNode | ( | $a_root | ) |
Is root node.
public
int | ref_id of copy |
Definition at line 187 of file class.ilCopyWizardOptions.php.
References getOptions().
ilCopyWizardOptions::isSOAPEnabled | ( | ) |
Check if SOAP calls are disabled.
public
Definition at line 250 of file class.ilCopyWizardOptions.php.
ilCopyWizardOptions::isTreeCopyDisabled | ( | ) |
Check if tree copy is enabled.
Definition at line 234 of file class.ilCopyWizardOptions.php.
ilCopyWizardOptions::read | ( | ) |
public
Definition at line 554 of file class.ilCopyWizardOptions.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by __construct(), and dropFirstNodeById().
|
private |
Purge ommitted node recursively.
private
array | current node |
Definition at line 578 of file class.ilCopyWizardOptions.php.
References $options.
Referenced by storeTree().
ilCopyWizardOptions::saveOwner | ( | $a_user_id | ) |
Save owner for copy.
It will be checked against this user id in all soap calls
public
Definition at line 146 of file class.ilCopyWizardOptions.php.
References $ilDB, array, and getCopyId().
ilCopyWizardOptions::saveRoot | ( | $a_root | ) |
Save root node id.
public
int | ref_id of copy source |
Definition at line 166 of file class.ilCopyWizardOptions.php.
References $ilDB, array, and getCopyId().
ilCopyWizardOptions::storeTree | ( | $a_source_id | ) |
Save tree Stores two copies of the tree structure: id 0 is used for recursive call of cloneObject() id -1 is used for recursive call of cloneDependencies()
public
int | source id |
Definition at line 312 of file class.ilCopyWizardOptions.php.
References $ilDB, array, getCopyId(), and readTree().
|
private |
Definition at line 47 of file class.ilCopyWizardOptions.php.
Referenced by getCopyId().
|
private |
Definition at line 45 of file class.ilCopyWizardOptions.php.
|
staticprivate |
Definition at line 34 of file class.ilCopyWizardOptions.php.
|
private |
Definition at line 49 of file class.ilCopyWizardOptions.php.
Referenced by readTree().
|
private |
Definition at line 48 of file class.ilCopyWizardOptions.php.
const ilCopyWizardOptions::COPY_WIZARD_COPY = 2 |
Definition at line 37 of file class.ilCopyWizardOptions.php.
Referenced by ilCopyWizardPage\fetchSelected(), ilCopyWizardPage\fillItemBlock(), ilCopyWizardPage\fillMainBlock(), ilObjectCopySelectionTableGUI\fillRow(), ilCopyWizardPage\fillTreeSelection(), ilCopyWizardSettingsXMLParser\getActionForString(), ilCopyWizardSettingsXMLParser\handlerBeginTag(), ilSoapUtils\ilClone(), ilSoapUtils\ilCloneDependencies(), and initContainer().
const ilCopyWizardOptions::COPY_WIZARD_LINK = 3 |
Definition at line 38 of file class.ilCopyWizardOptions.php.
Referenced by ilCopyWizardPage\fillItemBlock(), ilCopyWizardPage\fillMainBlock(), ilObjectCopySelectionTableGUI\fillRow(), ilCopyWizardPage\fillTreeSelection(), ilCopyWizardSettingsXMLParser\getActionForString(), ilCopyWizardSettingsXMLParser\handlerBeginTag(), ilSoapUtils\ilClone(), and ilSoapUtils\ilCloneDependencies().
const ilCopyWizardOptions::COPY_WIZARD_OMIT = 1 |
Definition at line 36 of file class.ilCopyWizardOptions.php.
Referenced by ilCopyWizardPage\fillItemBlock(), ilCopyWizardPage\fillMainBlock(), ilObjectCopySelectionTableGUI\fillRow(), ilCopyWizardPage\fillTreeSelection(), ilCopyWizardSettingsXMLParser\getActionForString(), ilSoapUtils\ilClone(), and ilSoapUtils\ilCloneDependencies().
const ilCopyWizardOptions::DISABLE_SOAP = -4 |
Definition at line 41 of file class.ilCopyWizardOptions.php.
const ilCopyWizardOptions::DISABLE_TREE_COPY = -6 |
Definition at line 43 of file class.ilCopyWizardOptions.php.
const ilCopyWizardOptions::OWNER_KEY = -3 |
Definition at line 40 of file class.ilCopyWizardOptions.php.
const ilCopyWizardOptions::ROOT_NODE = -5 |
Definition at line 42 of file class.ilCopyWizardOptions.php.