ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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... | |
getRootNode () | |
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_UNDEFINED = 0 |
const | COPY_WIZARD_OMIT = 1 |
const | COPY_WIZARD_COPY = 2 |
const | COPY_WIZARD_LINK = 3 |
const | COPY_WIZARD_LINK_TO_TARGET = 4 |
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 60 of file class.ilCopyWizardOptions.php.
References $DIC, $ilDB, and read().
|
static |
Allocate a copy for further entries.
public
Definition at line 135 of file class.ilCopyWizardOptions.php.
References $DIC, $ilDB, $query, $res, $row, 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 82 of file class.ilCopyWizardOptions.php.
Referenced by ilObjTest\_getAvailableTests(), ilObject\_prepareCloneSelection(), ilObject\appendCopyInfo(), ilContainer\cloneAllObject(), ilObjectGUI\cloneAllObject(), ilLPCollection\cloneCollection(), ilLPCollectionOfRepositoryObjects\cloneCollection(), ilCourseObjectiveMaterials\cloneDependencies(), ilCourseStart\cloneDependencies(), ilObjCategory\cloneDependencies(), ilCourseObjectiveQuestion\cloneDependencies(), ilContainerStartObjects\cloneDependencies(), ilObjectActivation\cloneDependencies(), ilConditionHandler\cloneDependencies(), ilObjCourseGrouping\cloneGrouping(), ilEventItems\cloneItems(), ilItemGroupItems\cloneItems(), ilObjSurveyQuestionPool\cloneObject(), ilObjFileBasedLM\cloneObject(), ilObjBookingPool\cloneObject(), ilObjWiki\cloneObject(), ilObjCourse\cloneObject(), ilObjGlossary\cloneObject(), ilObjQuestionPool\cloneObject(), ilObjContentObject\cloneObject(), ilTestFixedQuestionSetConfig\cloneQuestionSetRelatedData(), ilLOTestAssignment\cloneSettings(), ilLOSettings\cloneSettings(), ilContainerSorting\cloneSorting(), ilLORandomTestQuestionPools\copy(), ilObjContentObject\copyAllPagesAndChapters(), ilObjectCopyGUI\copyMultipleNonContainer(), ilSoapObjectAdministration\copyObject(), ilObjCloud\doClone(), ilObjPortfolioTemplate\doCloneObject(), ilObjDataCollection\doCloneObject(), ilObjPoll\doCloneObject(), ilObjBibliographic\doCloneObject(), ilObjItemGroup\fixContainerItemGroupRefsAfterCloning(), ilContainer\getCompleteDescriptions(), ilSoapUtils\ilClone(), ilSoapUtils\ilCloneDependencies(), ilObjSurvey\importObject(), ilObjectCopyProgressTableGUI\parse(), ilObjWorkspaceFolderGUI\performPasteIntoMultipleObjects(), ilObjSAHSLearningModule\populateByDirectoy(), ilTestRandomQuestionSetConfig\registerClonedSourcePoolDefinitionIdMapping(), ilObjMediaCast\saveOrder(), ilObjForum\update(), and ilObjectCopyGUI\updateProgress().
|
static |
check if copy is finished
public
int | copy id |
Definition at line 116 of file class.ilCopyWizardOptions.php.
References $DIC, $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 487 of file class.ilCopyWizardOptions.php.
References $DIC, $ilDB, $query, and $res.
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 518 of file class.ilCopyWizardOptions.php.
References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, and getCopyId().
Referenced by initContainer().
ilCopyWizardOptions::checkOwner | ( | $a_user_id | ) |
check owner
public
int | user_id |
Definition at line 297 of file class.ilCopyWizardOptions.php.
References getOptions().
ilCopyWizardOptions::deleteAll | ( | ) |
ilCopyWizardOptions::disableSOAP | ( | ) |
Disable soap calls.
Recursive call of ilClone and ilCloneDependencies
public
Definition at line 227 of file class.ilCopyWizardOptions.php.
References $DIC, $ilDB, and getCopyId().
ilCopyWizardOptions::disableTreeCopy | ( | ) |
Disable copying of tree.
Used for workspace copies type $ilDB
Definition at line 247 of file class.ilCopyWizardOptions.php.
References $DIC, $ilDB, and getCopyId().
ilCopyWizardOptions::dropFirstDependenciesNode | ( | ) |
Drop first node (for cloneDependencies())
public
Definition at line 459 of file class.ilCopyWizardOptions.php.
References dropFirstNodeById().
ilCopyWizardOptions::dropFirstNode | ( | ) |
Drop first node (for cloneObject())
public
Definition at line 448 of file class.ilCopyWizardOptions.php.
References dropFirstNodeById().
ilCopyWizardOptions::dropFirstNodeById | ( | $a_id | ) |
Drop first node by id.
private
Definition at line 413 of file class.ilCopyWizardOptions.php.
References $DIC, $ilDB, fetchFirstNodeById(), getCopyId(), and read().
Referenced by dropFirstDependenciesNode(), and dropFirstNode().
ilCopyWizardOptions::fetchFirstDependenciesNode | ( | ) |
Fetch first dependencies node.
public
Definition at line 402 of file class.ilCopyWizardOptions.php.
References fetchFirstNodeById().
ilCopyWizardOptions::fetchFirstNode | ( | ) |
Fetch first node for cloneObject.
public
Definition at line 391 of file class.ilCopyWizardOptions.php.
References fetchFirstNodeById().
|
private |
Get first node of stored tree.
private
Definition at line 375 of file class.ilCopyWizardOptions.php.
References $tree, and getOptions().
Referenced by dropFirstNodeById(), fetchFirstDependenciesNode(), and fetchFirstNode().
ilCopyWizardOptions::getCopyId | ( | ) |
Get copy id.
public
Definition at line 308 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 555 of file class.ilCopyWizardOptions.php.
Referenced by ilSoapUtils\findMappedReferenceForNode().
ilCopyWizardOptions::getOptions | ( | $a_source_id | ) |
Get entry by source.
public
int | source ref_id |
Definition at line 471 of file class.ilCopyWizardOptions.php.
Referenced by checkOwner(), fetchFirstNodeById(), getRootNode(), and isRootNode().
ilCopyWizardOptions::getRequiredSteps | ( | ) |
Get required steps.
Definition at line 95 of file class.ilCopyWizardOptions.php.
References $steps.
ilCopyWizardOptions::getRootNode | ( | ) |
Definition at line 211 of file class.ilCopyWizardOptions.php.
References $options, and getOptions().
Referenced by ilSoapUtils\findMappedReferenceForNode().
ilCopyWizardOptions::initContainer | ( | $a_source_id, | |
$a_target_id | |||
) |
Init container Add copy entry.
public
Definition at line 322 of file class.ilCopyWizardOptions.php.
References $DIC, $tree, addEntry(), appendMapping(), and COPY_WIZARD_COPY.
ilCopyWizardOptions::isRootNode | ( | $a_root | ) |
Is root node.
public
int | ref_id of copy |
Definition at line 203 of file class.ilCopyWizardOptions.php.
References getOptions().
Referenced by ilSoapUtils\rewriteActionForNode().
ilCopyWizardOptions::isSOAPEnabled | ( | ) |
Check if SOAP calls are disabled.
public
Definition at line 280 of file class.ilCopyWizardOptions.php.
ilCopyWizardOptions::isTreeCopyDisabled | ( | ) |
Check if tree copy is enabled.
Definition at line 266 of file class.ilCopyWizardOptions.php.
ilCopyWizardOptions::read | ( | ) |
public
Definition at line 587 of file class.ilCopyWizardOptions.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by __construct(), and dropFirstNodeById().
|
private |
Purge ommitted node recursively.
private
array | current node |
Definition at line 612 of file class.ilCopyWizardOptions.php.
References $DIC, $options, and $tree.
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 159 of file class.ilCopyWizardOptions.php.
References $DIC, $ilDB, and getCopyId().
ilCopyWizardOptions::saveRoot | ( | $a_root | ) |
Save root node id.
public
int | ref_id of copy source |
Definition at line 181 of file class.ilCopyWizardOptions.php.
References $DIC, $ilDB, 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 343 of file class.ilCopyWizardOptions.php.
References $DIC, $ilDB, getCopyId(), and readTree().
|
private |
Definition at line 49 of file class.ilCopyWizardOptions.php.
Referenced by getCopyId().
|
private |
Definition at line 47 of file class.ilCopyWizardOptions.php.
|
staticprivate |
Definition at line 34 of file class.ilCopyWizardOptions.php.
|
private |
Definition at line 51 of file class.ilCopyWizardOptions.php.
Referenced by getRootNode(), and readTree().
|
private |
Definition at line 50 of file class.ilCopyWizardOptions.php.
const ilCopyWizardOptions::COPY_WIZARD_COPY = 2 |
Definition at line 38 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(), initContainer(), and ilSoapUtils\rewriteActionForNode().
const ilCopyWizardOptions::COPY_WIZARD_LINK = 3 |
Definition at line 39 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_LINK_TO_TARGET = 4 |
Definition at line 40 of file class.ilCopyWizardOptions.php.
const ilCopyWizardOptions::COPY_WIZARD_OMIT = 1 |
Definition at line 37 of file class.ilCopyWizardOptions.php.
Referenced by ilCopyWizardPage\fillItemBlock(), ilCopyWizardPage\fillMainBlock(), ilObjectCopySelectionTableGUI\fillRow(), ilCopyWizardPage\fillTreeSelection(), ilCopyWizardSettingsXMLParser\getActionForString(), ilSoapUtils\ilClone(), and ilSoapUtils\ilCloneDependencies().
const ilCopyWizardOptions::COPY_WIZARD_UNDEFINED = 0 |
Definition at line 36 of file class.ilCopyWizardOptions.php.
Referenced by ilSoapUtils\rewriteActionForNode().
const ilCopyWizardOptions::DISABLE_SOAP = -4 |
Definition at line 43 of file class.ilCopyWizardOptions.php.
const ilCopyWizardOptions::DISABLE_TREE_COPY = -6 |
Definition at line 45 of file class.ilCopyWizardOptions.php.
const ilCopyWizardOptions::OWNER_KEY = -3 |
Definition at line 42 of file class.ilCopyWizardOptions.php.
const ilCopyWizardOptions::ROOT_NODE = -5 |
Definition at line 44 of file class.ilCopyWizardOptions.php.