ILIAS
release_8 Revision v8.19
|
Public Member Functions | |
__construct (ilECSSetting $server, int $mid, int $tree_id) | |
getServer () | |
Get server. More... | |
getECSTree () | |
getDefaultSettings () | |
Get default settings. More... | |
getGlobalSettings () | |
get global settings More... | |
sync () | |
Synchronize tree. More... | |
Protected Member Functions | |
checkTreeUpdates (int $a_root_obj_id) | |
Start tree update check. More... | |
handleTreeUpdate (int $a_parent_ref_id, int $a_tnode_id) | |
Handle tree update (recursively) More... | |
syncNode ($tree_obj_id, $parent_id, $a_mapped=false) | |
Sync node. More... | |
syncCategory (ilECSNodeMappingAssignment $ass, $parent_id) | |
Sync category. More... | |
Private Attributes | |
ilLogger | $logger |
ilLanguage | $lng |
ilTree | $tree |
ilECSSetting | $server = null |
int | $mid |
int | $tree_id |
ilECSCmsTree | $ecs_tree = null |
array | $default_settings = array() |
ilECSNodeMappingSettings | $global_settings = null |
Definition at line 25 of file class.ilECSCmsTreeSynchronizer.php.
ilECSCmsTreeSynchronizer::__construct | ( | ilECSSetting | $server, |
int | $mid, | ||
int | $tree_id | ||
) |
Definition at line 39 of file class.ilECSCmsTreeSynchronizer.php.
References $DIC, $mid, $server, $tree_id, ilECSNodeMappingSettings\getInstanceByServerMid(), ILIAS\Repository\lng(), and ILIAS\Repository\logger().
|
protected |
Start tree update check.
Definition at line 116 of file class.ilECSCmsTreeSynchronizer.php.
References $mid, $tree_id, ilECSNodeMappingAssignment\getRefId(), handleTreeUpdate(), and ILIAS\Repository\logger().
Referenced by sync().
ilECSCmsTreeSynchronizer::getDefaultSettings | ( | ) |
Get default settings.
Definition at line 72 of file class.ilECSCmsTreeSynchronizer.php.
References $default_settings.
Referenced by sync().
ilECSCmsTreeSynchronizer::getECSTree | ( | ) |
Definition at line 64 of file class.ilECSCmsTreeSynchronizer.php.
References $ecs_tree.
ilECSCmsTreeSynchronizer::getGlobalSettings | ( | ) |
get global settings
Definition at line 80 of file class.ilECSCmsTreeSynchronizer.php.
References $global_settings.
ilECSCmsTreeSynchronizer::getServer | ( | ) |
Get server.
Definition at line 59 of file class.ilECSCmsTreeSynchronizer.php.
References $server.
|
protected |
Handle tree update (recursively)
Definition at line 139 of file class.ilECSCmsTreeSynchronizer.php.
References $mid, ilObject\_getAllReferences(), ilECSImportManager\getInstance(), ILIAS\Repository\int(), and ILIAS\Repository\logger().
Referenced by checkTreeUpdates().
ilECSCmsTreeSynchronizer::sync | ( | ) |
Synchronize tree.
Definition at line 88 of file class.ilECSCmsTreeSynchronizer.php.
References $mid, $tree_id, checkTreeUpdates(), getDefaultSettings(), ILIAS\Repository\logger(), ilECSCmsTree\lookupRootId(), ilECSNodeMappingAssignments\lookupSettings(), and syncNode().
|
protected |
Sync category.
Definition at line 216 of file class.ilECSCmsTreeSynchronizer.php.
References $data, $mid, $ref_id, ilObject\_getAllReferences(), ilECSNodeMappingAssignment\getCSId(), ilECSImportManager\getInstance(), ilObjectFactory\getInstanceByRefId(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), ilECSImport\setMID(), and SYSTEM_USER_ID.
Referenced by syncNode().
|
protected |
Sync node.
Definition at line 178 of file class.ilECSCmsTreeSynchronizer.php.
References $mid, $tree_id, ilECSNodeMappingAssignment\getRefId(), and syncCategory().
Referenced by sync().
|
private |
Definition at line 36 of file class.ilECSCmsTreeSynchronizer.php.
Referenced by getDefaultSettings().
|
private |
Definition at line 34 of file class.ilECSCmsTreeSynchronizer.php.
Referenced by getECSTree().
|
private |
Definition at line 37 of file class.ilECSCmsTreeSynchronizer.php.
Referenced by getGlobalSettings().
|
private |
Definition at line 28 of file class.ilECSCmsTreeSynchronizer.php.
|
private |
Definition at line 27 of file class.ilECSCmsTreeSynchronizer.php.
|
private |
Definition at line 32 of file class.ilECSCmsTreeSynchronizer.php.
Referenced by __construct(), checkTreeUpdates(), handleTreeUpdate(), sync(), syncCategory(), and syncNode().
|
private |
Definition at line 31 of file class.ilECSCmsTreeSynchronizer.php.
Referenced by __construct(), and getServer().
|
private |
Definition at line 29 of file class.ilECSCmsTreeSynchronizer.php.
|
private |
Definition at line 33 of file class.ilECSCmsTreeSynchronizer.php.
Referenced by __construct(), checkTreeUpdates(), sync(), and syncNode().