ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($a_obj_id=0) | |
setTitle ($a_title) | |
getTitle () | |
setTerm ($a_term) | |
getTerm () | |
setObjId ($a_id) | |
getObjId () | |
setCmsId ($a_id) | |
getCmsId () | |
setServerId ($a_id) | |
getServerId () | |
setTreeId ($a_id) | |
getTreeId () | |
setMid ($a_id) | |
getMid () | |
setStatus ($a_status) | |
getStatus () | |
setDeleted ($a_is_deleted) | |
isDeleted () | |
save () | |
update () | |
delete () | |
deleteTree () | |
Static Public Member Functions | |
static | treeExists ($a_server_id, $a_mid, $a_tree_id) |
static | findDeletedNodes ($a_server_id, $a_mid, $a_tree_id) |
Find deleted nodes Uses a left join since this is more robust. More... | |
static | lookupObjId ($a_server_id, $a_mid, $a_tree_id, $cms_id) |
static | lookupFirstTreeOfNode ($a_server_id, $a_mid, $cms_id) |
Lookup first obj_id of cms node $ilDB $ilDB. More... | |
static | lookupTitle ($a_server_id, $a_mid, $a_tree_id) |
Lookup title by obj id. More... | |
static | lookupTopTerm ($a_server_id, $a_mid, $a_tree_id) |
Lookup term (highest term in cms tree) <type> $ilDB. More... | |
static | lookupStatusByObjId ($a_server_id, $a_mid, $a_tree_id, $obj_id) |
Lookup status. More... | |
static | lookupStatusByCmsId ($a_server_id, $a_mid, $a_tree_id, $cms_id) |
Lookup status. More... | |
static | updateStatus ($a_server_id, $a_mid, $a_tree_id) |
static | lookupCmsId ($a_obj_id) |
Lookup cms id. More... | |
static | lookupCmsIds ($a_obj_ids) |
static | lookupCmsIdsOfTree ($a_server_id, $a_mid, $a_tree_id) |
$ilDB $ilDB More... | |
static | writeStatus ($a_server_id, $a_mid, $a_tree_id, $cms_ids, $status) |
Update status $ilDB. More... | |
static | writeAllStatus ($a_server_id, $a_mid, $a_tree_id, $status) |
Update status $ilDB. More... | |
static | writeAllDeleted ($a_server_id, $a_mid, $a_tree_id, $a_deleted_flag) |
Write deleted status. More... | |
static | lookupTreeIds ($a_server_id, $a_mid) |
static | deleteByServerId ($a_server_id) |
Data Fields | |
const | MAPPING_UNMAPPED = 1 |
const | MAPPING_PENDING_DISCONNECTABLE = 2 |
const | MAPPING_PENDING_NOT_DISCONNECTABLE = 3 |
const | MAPPING_MAPPED = 4 |
const | MAPPING_DELETED = 5 |
Protected Member Functions | |
read () | |
Private Attributes | |
$obj_id | |
$server_id | |
$mid | |
$tree_id | |
$cms_id | |
$title | |
$term | |
$status = self::MAPPING_UNMAPPED | |
$deleted = false | |
Definition at line 10 of file class.ilECSCmsData.php.
ilECSCmsData::__construct | ( | $a_obj_id = 0 | ) |
Definition at line 28 of file class.ilECSCmsData.php.
References read().
ilECSCmsData::delete | ( | ) |
|
static |
Definition at line 549 of file class.ilECSCmsData.php.
References $DIC, $ilDB, and $query.
Referenced by ilECSSetting\delete().
ilECSCmsData::deleteTree | ( | ) |
|
static |
Find deleted nodes Uses a left join since this is more robust.
An alternative implementation could simply check the deleted flag in ecs_cms_data. $ilDB
type | $a_server_id | |
type | $a_mid | |
type | $a_tree_id |
Definition at line 62 of file class.ilECSCmsData.php.
References $deleted, $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCmsTreeCommandQueueHandler\handleUpdate().
ilECSCmsData::getCmsId | ( | ) |
ilECSCmsData::getMid | ( | ) |
Definition at line 460 of file class.ilECSCmsData.php.
References $mid.
ilECSCmsData::getObjId | ( | ) |
ilECSCmsData::getServerId | ( | ) |
ilECSCmsData::getStatus | ( | ) |
ilECSCmsData::getTerm | ( | ) |
Definition at line 410 of file class.ilECSCmsData.php.
References $term.
ilECSCmsData::getTitle | ( | ) |
Definition at line 400 of file class.ilECSCmsData.php.
References $title.
Referenced by ilECSNodeMappingTreeTableGUI\parse().
ilECSCmsData::getTreeId | ( | ) |
ilECSCmsData::isDeleted | ( | ) |
Definition at line 480 of file class.ilECSCmsData.php.
References $deleted.
Referenced by update().
|
static |
Lookup cms id.
type | $a_obj_id |
Definition at line 254 of file class.ilECSCmsData.php.
Referenced by ilECSMappingSettingsGUI\dInitFormTreeSettings().
|
static |
Definition at line 261 of file class.ilECSCmsData.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCourseCreationHandler\syncNodeToTop().
|
static |
$ilDB $ilDB
type | $a_server_id | |
type | $a_mid | |
type | $a_tree_id |
Definition at line 285 of file class.ilECSCmsData.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSMappingSettingsGUI\dDeleteTree().
|
static |
Lookup first obj_id of cms node $ilDB $ilDB.
type | $a_server_id | |
type | $a_mid | |
type | $cms_id |
Definition at line 112 of file class.ilECSCmsData.php.
References $cms_id, $DIC, $GLOBALS, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCourseCreationHandler\syncParentContainer().
|
static |
Definition at line 83 of file class.ilECSCmsData.php.
References $cms_id, $DIC, $GLOBALS, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCmsTreeCommandQueueHandler\handleCreate(), ilECSCmsTreeCommandQueueHandler\handleUpdate(), ilECSTreeReader\storeTree(), and ilECSCourseCreationHandler\syncNodeToTop().
|
static |
Lookup status.
int | $a_obj_id |
Definition at line 210 of file class.ilECSCmsData.php.
References $cms_id, $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSNodeMappingAssignments\deleteDisconnectableMappings().
|
static |
Lookup status.
int | $a_obj_id |
Definition at line 185 of file class.ilECSCmsData.php.
References $DIC, $ilDB, $obj_id, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSNodeMappingCmsExplorer\buildFormItem(), and ilECSNodeMappingCmsExplorer\buildTitle().
|
static |
Lookup title by obj id.
int | $a_obj_id |
Definition at line 137 of file class.ilECSCmsData.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSMappingSettingsGUI\dConfirmDeleteTree().
|
static |
Lookup term (highest term in cms tree) <type> $ilDB.
<type> | $a_server_id |
<type> | $a_mid |
<type> | $a_tree_id |
Definition at line 161 of file class.ilECSCmsData.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSNodeMappingTreeTableGUI\parse().
|
static |
Definition at line 376 of file class.ilECSCmsData.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSNodeMappingTreeTableGUI\parse().
|
protected |
Definition at line 560 of file class.ilECSCmsData.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by __construct().
ilECSCmsData::save | ( | ) |
ilECSCmsData::setCmsId | ( | $a_id | ) |
Definition at line 425 of file class.ilECSCmsData.php.
ilECSCmsData::setDeleted | ( | $a_is_deleted | ) |
Definition at line 475 of file class.ilECSCmsData.php.
ilECSCmsData::setMid | ( | $a_id | ) |
Definition at line 455 of file class.ilECSCmsData.php.
ilECSCmsData::setObjId | ( | $a_id | ) |
Definition at line 415 of file class.ilECSCmsData.php.
ilECSCmsData::setServerId | ( | $a_id | ) |
Definition at line 435 of file class.ilECSCmsData.php.
ilECSCmsData::setStatus | ( | $a_status | ) |
Definition at line 465 of file class.ilECSCmsData.php.
ilECSCmsData::setTerm | ( | $a_term | ) |
Definition at line 405 of file class.ilECSCmsData.php.
ilECSCmsData::setTitle | ( | $a_title | ) |
Definition at line 395 of file class.ilECSCmsData.php.
ilECSCmsData::setTreeId | ( | $a_id | ) |
Definition at line 445 of file class.ilECSCmsData.php.
|
static |
Definition at line 34 of file class.ilECSCmsData.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSTreeReader\read().
ilECSCmsData::update | ( | ) |
Definition at line 510 of file class.ilECSCmsData.php.
References $DIC, $ilDB, $query, and isDeleted().
|
static |
Definition at line 228 of file class.ilECSCmsData.php.
References ilECSNodeMappingAssignments\lookupAssignmentIds().
Referenced by ilECSMappingSettingsGUI\dInitEditTree(), and ilECSMappingSettingsGUI\dMap().
|
static |
Write deleted status.
type | $a_server_id | |
type | $a_mid | |
type | $a_tree_id | |
type | $a_deleted_flag |
Definition at line 361 of file class.ilECSCmsData.php.
References $DIC, $ilDB, and $query.
Referenced by ilECSCmsTreeCommandQueueHandler\handleUpdate().
|
static |
|
static |
|
private |
Definition at line 22 of file class.ilECSCmsData.php.
Referenced by getCmsId(), lookupFirstTreeOfNode(), lookupObjId(), and lookupStatusByCmsId().
|
private |
Definition at line 26 of file class.ilECSCmsData.php.
Referenced by findDeletedNodes(), and isDeleted().
|
private |
Definition at line 20 of file class.ilECSCmsData.php.
Referenced by getMid().
|
private |
Definition at line 18 of file class.ilECSCmsData.php.
Referenced by getObjId(), and lookupStatusByObjId().
|
private |
Definition at line 19 of file class.ilECSCmsData.php.
Referenced by getServerId().
|
private |
Definition at line 25 of file class.ilECSCmsData.php.
Referenced by getStatus(), writeAllStatus(), and writeStatus().
|
private |
Definition at line 24 of file class.ilECSCmsData.php.
Referenced by getTerm().
|
private |
Definition at line 23 of file class.ilECSCmsData.php.
Referenced by getTitle().
|
private |
Definition at line 21 of file class.ilECSCmsData.php.
Referenced by getTreeId().
const ilECSCmsData::MAPPING_DELETED = 5 |
Definition at line 16 of file class.ilECSCmsData.php.
Referenced by ilECSNodeMappingCmsExplorer\buildFormItem(), ilECSNodeMappingCmsExplorer\buildTitle(), and ilECSNodeMappingAssignments\deleteDisconnectableMappings().
const ilECSCmsData::MAPPING_MAPPED = 4 |
Definition at line 15 of file class.ilECSCmsData.php.
Referenced by ilECSNodeMappingCmsExplorer\buildTitle(), and ilECSNodeMappingAssignments\deleteDisconnectableMappings().
const ilECSCmsData::MAPPING_PENDING_DISCONNECTABLE = 2 |
Definition at line 13 of file class.ilECSCmsData.php.
Referenced by ilECSNodeMappingCmsExplorer\buildTitle(), and ilECSNodeMappingAssignments\deleteDisconnectableMappings().
const ilECSCmsData::MAPPING_PENDING_NOT_DISCONNECTABLE = 3 |
Definition at line 14 of file class.ilECSCmsData.php.
Referenced by ilECSNodeMappingCmsExplorer\buildTitle(), and ilECSNodeMappingAssignments\deleteDisconnectableMappings().
const ilECSCmsData::MAPPING_UNMAPPED = 1 |
Definition at line 12 of file class.ilECSCmsData.php.
Referenced by ilECSNodeMappingCmsExplorer\buildTitle(), and ilECSNodeMappingAssignments\deleteDisconnectableMappings().