ILIAS
Release_3_10_x_branch Revision 61812
|
Public Member Functions | |
saveOwner ($a_user_id) | |
Save owner for copy. | |
saveRoot ($a_root) | |
Save root node id. | |
isRootNode ($a_root) | |
Is root node. | |
disableSOAP () | |
Disable soap calls. | |
isSOAPEnabled () | |
Check if SOAP calls are disabled. | |
checkOwner ($a_user_id) | |
check owner | |
getCopyId () | |
Get copy id. | |
initContainer ($a_source_id, $a_target_id) | |
Init container Add copy entry. | |
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() | |
fetchFirstNode () | |
Fetch first node for cloneObject. | |
fetchFirstDependenciesNode () | |
Fetch first dependencies node. | |
dropFirstNodeById ($a_id) | |
Drop first node by id. | |
dropFirstNode () | |
Drop first node (for cloneObject()) | |
dropFirstDependenciesNode () | |
Drop first node (for cloneDependencies()) | |
getOptions ($a_source_id) | |
Get entry by source. | |
addEntry ($a_source_id, $a_options) | |
Add new entry. | |
appendMapping ($a_source_id, $a_target_id) | |
Add mapping of source -> target. | |
getMappings () | |
Get Mappings. | |
deleteAll () | |
Delete all entries. | |
read () | |
public |
Static Public Member Functions | |
static | _getInstance ($a_copy_id) |
Get instance of copy wizard options. | |
static | _isFinished ($a_copy_id) |
check if copy is finished | |
static | _allocateCopyId () |
Allocate a copy for further entries. |
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 |
Private Member Functions | |
__construct ($a_copy_id=0) | |
Private Constructor (Singleton class) | |
fetchFirstNodeById ($a_id) | |
Get first node of stored tree. | |
readTree ($a_source_id) | |
Purge ommitted node recursively. |
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 57 of file class.ilCopyWizardOptions.php.
References read().
|
static |
Allocate a copy for further entries.
public
Definition at line 112 of file class.ilCopyWizardOptions.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by ilContainer\cloneAllObject(), ilObjectGUI\cloneAllObject(), and ilSoapObjectAdministration\copyObject().
|
static |
Get instance of copy wizard options.
public
int | copy id |
Definition at line 78 of file class.ilCopyWizardOptions.php.
Referenced by ilObject\appendCopyInfo(), ilContainer\cloneAllObject(), ilObjectGUI\cloneAllObject(), ilLPCollections\cloneCollections(), ilCourseObjectiveMaterials\cloneDependencies(), ilCourseItems\cloneDependencies(), ilCourseObjectiveQuestion\cloneDependencies(), ilCourseStart\cloneDependencies(), ilEventItems\cloneItems(), ilObjForum\cloneObject(), ilObjTest\cloneObject(), ilSoapObjectAdministration\copyObject(), ilSoapUtils\ilClone(), and ilSoapUtils\ilCloneDependencies().
|
static |
check if copy is finished
public
int | copy id |
Definition at line 95 of file class.ilCopyWizardOptions.php.
References $res.
Referenced by ilContainer\cloneAllObject().
ilCopyWizardOptions::addEntry | ( | $a_source_id, | |
$a_options | |||
) |
Add new entry.
public
int | ref_id of source |
array | array of options |
Definition at line 396 of file class.ilCopyWizardOptions.php.
References $res.
Referenced by initContainer().
ilCopyWizardOptions::appendMapping | ( | $a_source_id, | |
$a_target_id | |||
) |
Add mapping of source -> target.
public
int | source ref_id |
int | target ref_id |
Definition at line 424 of file class.ilCopyWizardOptions.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by initContainer().
ilCopyWizardOptions::checkOwner | ( | $a_user_id | ) |
check owner
public
int | user_id |
Definition at line 215 of file class.ilCopyWizardOptions.php.
References getOptions().
ilCopyWizardOptions::deleteAll | ( | ) |
Delete all entries.
public
Definition at line 466 of file class.ilCopyWizardOptions.php.
ilCopyWizardOptions::disableSOAP | ( | ) |
Disable soap calls.
Recursive call of ilClone and ilCloneDependencies
public
Definition at line 181 of file class.ilCopyWizardOptions.php.
References DISABLE_SOAP, and getCopyId().
ilCopyWizardOptions::dropFirstDependenciesNode | ( | ) |
Drop first node (for cloneDependencies())
public
Definition at line 367 of file class.ilCopyWizardOptions.php.
References dropFirstNodeById().
ilCopyWizardOptions::dropFirstNode | ( | ) |
Drop first node (for cloneObject())
public
Definition at line 356 of file class.ilCopyWizardOptions.php.
References dropFirstNodeById().
ilCopyWizardOptions::dropFirstNodeById | ( | $a_id | ) |
Drop first node by id.
private
Definition at line 323 of file class.ilCopyWizardOptions.php.
References fetchFirstNodeById(), and read().
Referenced by dropFirstDependenciesNode(), and dropFirstNode().
ilCopyWizardOptions::fetchFirstDependenciesNode | ( | ) |
Fetch first dependencies node.
public
Definition at line 312 of file class.ilCopyWizardOptions.php.
References fetchFirstNodeById().
ilCopyWizardOptions::fetchFirstNode | ( | ) |
Fetch first node for cloneObject.
public
Definition at line 301 of file class.ilCopyWizardOptions.php.
References fetchFirstNodeById().
|
private |
Get first node of stored tree.
private
Definition at line 284 of file class.ilCopyWizardOptions.php.
References getOptions().
Referenced by dropFirstNodeById(), fetchFirstDependenciesNode(), and fetchFirstNode().
ilCopyWizardOptions::getCopyId | ( | ) |
Get copy id.
public
Definition at line 226 of file class.ilCopyWizardOptions.php.
References $copy_id.
Referenced by disableSOAP(), saveOwner(), and saveRoot().
ilCopyWizardOptions::getMappings | ( | ) |
Get Mappings.
public
Definition at line 451 of file class.ilCopyWizardOptions.php.
ilCopyWizardOptions::getOptions | ( | $a_source_id | ) |
Get entry by source.
public
int | source ref_id |
Definition at line 379 of file class.ilCopyWizardOptions.php.
Referenced by checkOwner(), fetchFirstNodeById(), and isRootNode().
ilCopyWizardOptions::initContainer | ( | $a_source_id, | |
$a_target_id | |||
) |
Init container Add copy entry.
public
Definition at line 240 of file class.ilCopyWizardOptions.php.
References addEntry(), appendMapping(), and COPY_WIZARD_COPY.
ilCopyWizardOptions::isRootNode | ( | $a_root | ) |
Is root node.
public
int | ref_id of copy |
Definition at line 169 of file class.ilCopyWizardOptions.php.
References getOptions().
ilCopyWizardOptions::isSOAPEnabled | ( | ) |
Check if SOAP calls are disabled.
public
Definition at line 197 of file class.ilCopyWizardOptions.php.
ilCopyWizardOptions::read | ( | ) |
public
Definition at line 480 of file class.ilCopyWizardOptions.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by __construct(), and dropFirstNodeById().
|
private |
Purge ommitted node recursively.
private
array | current node |
Definition at line 502 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 134 of file class.ilCopyWizardOptions.php.
References getCopyId().
ilCopyWizardOptions::saveRoot | ( | $a_root | ) |
Save root node id.
public
int | ref_id of copy source |
Definition at line 151 of file class.ilCopyWizardOptions.php.
References 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 259 of file class.ilCopyWizardOptions.php.
References $res, and readTree().
|
private |
Definition at line 46 of file class.ilCopyWizardOptions.php.
Referenced by getCopyId().
|
private |
Definition at line 44 of file class.ilCopyWizardOptions.php.
|
staticprivate |
Definition at line 34 of file class.ilCopyWizardOptions.php.
|
private |
Definition at line 48 of file class.ilCopyWizardOptions.php.
Referenced by readTree().
|
private |
Definition at line 47 of file class.ilCopyWizardOptions.php.
const ilCopyWizardOptions::COPY_WIZARD_COPY = 2 |
Definition at line 37 of file class.ilCopyWizardOptions.php.
Referenced by ilCopyWizardExplorer\buildSelect(), ilCopyWizardPage\fetchSelected(), ilCopyWizardPage\fillItemBlock(), ilCopyWizardPage\fillMainBlock(), 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 ilCopyWizardExplorer\buildSelect(), ilCopyWizardPage\fillItemBlock(), ilCopyWizardPage\fillMainBlock(), 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 ilCopyWizardExplorer\buildSelect(), ilCopyWizardPage\fillItemBlock(), ilCopyWizardPage\fillMainBlock(), ilCopyWizardPage\fillTreeSelection(), ilCopyWizardSettingsXMLParser\getActionForString(), ilSoapUtils\ilClone(), and ilSoapUtils\ilCloneDependencies().
const ilCopyWizardOptions::DISABLE_SOAP = -4 |
Definition at line 41 of file class.ilCopyWizardOptions.php.
Referenced by disableSOAP().
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.