ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 | ( | ) |
Definition at line 493 of file class.ilECSCmsData.php.
|
static |
Definition at line 513 of file class.ilECSCmsData.php.
Referenced by ilECSSetting\delete().
ilECSCmsData::deleteTree | ( | ) |
Definition at line 502 of file class.ilECSCmsData.php.
|
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 60 of file class.ilECSCmsData.php.
References $deleted, $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCmsTreeCommandQueueHandler\handleUpdate().
ilECSCmsData::getCmsId | ( | ) |
ilECSCmsData::getMid | ( | ) |
Definition at line 432 of file class.ilECSCmsData.php.
References $mid.
ilECSCmsData::getObjId | ( | ) |
ilECSCmsData::getServerId | ( | ) |
ilECSCmsData::getStatus | ( | ) |
ilECSCmsData::getTerm | ( | ) |
Definition at line 382 of file class.ilECSCmsData.php.
References $term.
ilECSCmsData::getTitle | ( | ) |
Definition at line 372 of file class.ilECSCmsData.php.
References $title.
Referenced by ilECSNodeMappingTreeTableGUI\parse().
ilECSCmsData::getTreeId | ( | ) |
ilECSCmsData::isDeleted | ( | ) |
Definition at line 452 of file class.ilECSCmsData.php.
References $deleted.
Referenced by update().
|
static |
Lookup cms id.
type | $a_obj_id |
Definition at line 238 of file class.ilECSCmsData.php.
References array.
Referenced by ilECSMappingSettingsGUI\dInitFormTreeSettings().
|
static |
Definition at line 245 of file class.ilECSCmsData.php.
References $ilDB, $query, $res, $row, array, 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 267 of file class.ilECSCmsData.php.
References $ilDB, $query, $res, $row, array, 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 106 of file class.ilECSCmsData.php.
References $cms_id, $GLOBALS, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCourseCreationHandler\syncParentContainer().
|
static |
Definition at line 79 of file class.ilECSCmsData.php.
References $cms_id, $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 196 of file class.ilECSCmsData.php.
References $cms_id, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSNodeMappingAssignments\deleteDisconnectableMappings().
|
static |
Lookup status.
int | $a_obj_id |
Definition at line 173 of file class.ilECSCmsData.php.
References $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 129 of file class.ilECSCmsData.php.
References $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 151 of file class.ilECSCmsData.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSNodeMappingTreeTableGUI\parse().
|
static |
Definition at line 350 of file class.ilECSCmsData.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSNodeMappingTreeTableGUI\parse().
|
protected |
Definition at line 522 of file class.ilECSCmsData.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by __construct().
ilECSCmsData::save | ( | ) |
Definition at line 458 of file class.ilECSCmsData.php.
ilECSCmsData::setCmsId | ( | $a_id | ) |
Definition at line 397 of file class.ilECSCmsData.php.
ilECSCmsData::setDeleted | ( | $a_is_deleted | ) |
Definition at line 447 of file class.ilECSCmsData.php.
ilECSCmsData::setMid | ( | $a_id | ) |
Definition at line 427 of file class.ilECSCmsData.php.
ilECSCmsData::setObjId | ( | $a_id | ) |
Definition at line 387 of file class.ilECSCmsData.php.
ilECSCmsData::setServerId | ( | $a_id | ) |
Definition at line 407 of file class.ilECSCmsData.php.
ilECSCmsData::setStatus | ( | $a_status | ) |
Definition at line 437 of file class.ilECSCmsData.php.
ilECSCmsData::setTerm | ( | $a_term | ) |
Definition at line 377 of file class.ilECSCmsData.php.
ilECSCmsData::setTitle | ( | $a_title | ) |
Definition at line 367 of file class.ilECSCmsData.php.
ilECSCmsData::setTreeId | ( | $a_id | ) |
Definition at line 417 of file class.ilECSCmsData.php.
|
static |
Definition at line 34 of file class.ilECSCmsData.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSTreeReader\read().
ilECSCmsData::update | ( | ) |
Definition at line 480 of file class.ilECSCmsData.php.
References $ilDB, $query, and isDeleted().
|
static |
Definition at line 212 of file class.ilECSCmsData.php.
References array, and 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 337 of file class.ilECSCmsData.php.
Referenced by ilECSCmsTreeCommandQueueHandler\handleUpdate().
|
static |
Update status $ilDB.
<type> | $a_server_id |
<type> | $a_mid |
<type> | $a_tree_id |
<type> | $cms_ids |
<type> | $status |
Definition at line 317 of file class.ilECSCmsData.php.
References $ilDB, $query, and $status.
|
static |
Update status $ilDB.
<type> | $a_server_id |
<type> | $a_mid |
<type> | $a_tree_id |
<type> | $cms_ids |
<type> | $status |
Definition at line 293 of file class.ilECSCmsData.php.
References $ilDB, $query, and $status.
|
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().