ILIAS
release_4-3 Revision
|
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. | |
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. | |
static | lookupTitle ($a_server_id, $a_mid, $a_tree_id) |
Lookup title by obj id. | |
static | lookupTopTerm ($a_server_id, $a_mid, $a_tree_id) |
Lookup term (highest term in cms tree) <type> $ilDB. | |
static | lookupStatusByObjId ($a_server_id, $a_mid, $a_tree_id, $obj_id) |
Lookup status. | |
static | lookupStatusByCmsId ($a_server_id, $a_mid, $a_tree_id, $cms_id) |
Lookup status. | |
static | updateStatus ($a_server_id, $a_mid, $a_tree_id) |
static | lookupCmsId ($a_obj_id) |
Lookup cms id. | |
static | lookupCmsIds ($a_obj_ids) |
static | lookupCmsIdsOfTree ($a_server_id, $a_mid, $a_tree_id) |
$ilDB $ilDB | |
static | writeStatus ($a_server_id, $a_mid, $a_tree_id, $cms_ids, $status) |
Update status $ilDB. | |
static | writeAllStatus ($a_server_id, $a_mid, $a_tree_id, $status) |
Update status $ilDB. | |
static | writeAllDeleted ($a_server_id, $a_mid, $a_tree_id, $a_deleted_flag) |
Write deleted status. | |
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 29 of file class.ilECSCmsData.php.
References read().
ilECSCmsData::delete | ( | ) |
Definition at line 504 of file class.ilECSCmsData.php.
References $query.
|
static |
Definition at line 524 of file class.ilECSCmsData.php.
References $query.
Referenced by ilECSSetting\delete().
ilECSCmsData::deleteTree | ( | ) |
Definition at line 513 of file class.ilECSCmsData.php.
References $query.
|
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, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSCmsTreeCommandQueueHandler\handleUpdate().
ilECSCmsData::getCmsId | ( | ) |
Definition at line 413 of file class.ilECSCmsData.php.
References $cms_id.
ilECSCmsData::getMid | ( | ) |
ilECSCmsData::getObjId | ( | ) |
Definition at line 403 of file class.ilECSCmsData.php.
References $obj_id.
ilECSCmsData::getServerId | ( | ) |
Definition at line 423 of file class.ilECSCmsData.php.
References $server_id.
ilECSCmsData::getStatus | ( | ) |
Definition at line 453 of file class.ilECSCmsData.php.
References $status.
ilECSCmsData::getTerm | ( | ) |
ilECSCmsData::getTitle | ( | ) |
Definition at line 383 of file class.ilECSCmsData.php.
References $title.
Referenced by ilECSNodeMappingTreeTableGUI\parse().
ilECSCmsData::getTreeId | ( | ) |
Definition at line 433 of file class.ilECSCmsData.php.
References $tree_id.
ilECSCmsData::isDeleted | ( | ) |
Definition at line 463 of file class.ilECSCmsData.php.
References $deleted.
Referenced by update().
|
static |
Lookup cms id.
type | $a_obj_id |
Definition at line 246 of file class.ilECSCmsData.php.
References lookupCmsIds().
Referenced by ilECSMappingSettingsGUI\dInitFormTreeSettings().
|
static |
Definition at line 253 of file class.ilECSCmsData.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by lookupCmsId(), ilECSCourseCreationHandler\syncNodeToTop(), and updateStatus().
|
static |
$ilDB $ilDB
type | $a_server_id | |
type | $a_mid | |
type | $a_tree_id |
Definition at line 276 of file class.ilECSCmsData.php.
References $query, $res, $row, and DB_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 110 of file class.ilECSCmsData.php.
References $cms_id, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSCourseCreationHandler\syncParentContainer().
|
static |
Definition at line 82 of file class.ilECSCmsData.php.
References $cms_id, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSCmsTreeCommandQueueHandler\handleCreate(), ilECSCmsTreeCommandQueueHandler\handleUpdate(), ilECSTreeReader\storeTree(), and ilECSCourseCreationHandler\syncNodeToTop().
|
static |
Lookup status.
int | $a_obj_id |
Definition at line 203 of file class.ilECSCmsData.php.
References $cms_id, $query, $res, $row, DB_FETCHMODE_OBJECT, and MAPPING_UNMAPPED.
Referenced by ilECSNodeMappingAssignments\deleteDisconnectableMappings().
|
static |
Lookup status.
int | $a_obj_id |
Definition at line 178 of file class.ilECSCmsData.php.
References $obj_id, $query, $res, $row, DB_FETCHMODE_OBJECT, MAPPING_DELETED, and MAPPING_UNMAPPED.
Referenced by ilECSNodeMappingCmsExplorer\buildFormItem(), and ilECSNodeMappingCmsExplorer\buildTitle().
|
static |
Lookup title by obj id.
int | $a_obj_id |
Definition at line 132 of file class.ilECSCmsData.php.
References $query, $res, $row, and DB_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 155 of file class.ilECSCmsData.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSNodeMappingTreeTableGUI\parse().
|
static |
Definition at line 360 of file class.ilECSCmsData.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSNodeMappingTreeTableGUI\parse().
|
protected |
Definition at line 533 of file class.ilECSCmsData.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by __construct().
ilECSCmsData::save | ( | ) |
Definition at line 469 of file class.ilECSCmsData.php.
References $query.
ilECSCmsData::setCmsId | ( | $a_id | ) |
Definition at line 408 of file class.ilECSCmsData.php.
ilECSCmsData::setDeleted | ( | $a_is_deleted | ) |
Definition at line 458 of file class.ilECSCmsData.php.
ilECSCmsData::setMid | ( | $a_id | ) |
Definition at line 438 of file class.ilECSCmsData.php.
ilECSCmsData::setObjId | ( | $a_id | ) |
Definition at line 398 of file class.ilECSCmsData.php.
ilECSCmsData::setServerId | ( | $a_id | ) |
Definition at line 418 of file class.ilECSCmsData.php.
ilECSCmsData::setStatus | ( | $a_status | ) |
Definition at line 448 of file class.ilECSCmsData.php.
ilECSCmsData::setTerm | ( | $a_term | ) |
Definition at line 388 of file class.ilECSCmsData.php.
ilECSCmsData::setTitle | ( | $a_title | ) |
Definition at line 378 of file class.ilECSCmsData.php.
ilECSCmsData::setTreeId | ( | $a_id | ) |
Definition at line 428 of file class.ilECSCmsData.php.
|
static |
Definition at line 35 of file class.ilECSCmsData.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSTreeReader\read().
ilECSCmsData::update | ( | ) |
Definition at line 491 of file class.ilECSCmsData.php.
References $query, and isDeleted().
|
static |
Definition at line 220 of file class.ilECSCmsData.php.
References ilECSNodeMappingAssignments\lookupAssignmentIds(), lookupCmsIds(), writeAllStatus(), and writeStatus().
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 347 of file class.ilECSCmsData.php.
References $query.
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 327 of file class.ilECSCmsData.php.
References $query, and $status.
Referenced by updateStatus().
|
static |
Update status $ilDB.
<type> | $a_server_id |
<type> | $a_mid |
<type> | $a_tree_id |
<type> | $cms_ids |
<type> | $status |
Definition at line 303 of file class.ilECSCmsData.php.
References $query, and $status.
Referenced by updateStatus().
|
private |
Definition at line 23 of file class.ilECSCmsData.php.
Referenced by getCmsId(), lookupFirstTreeOfNode(), lookupObjId(), and lookupStatusByCmsId().
|
private |
Definition at line 27 of file class.ilECSCmsData.php.
Referenced by findDeletedNodes(), and isDeleted().
|
private |
Definition at line 21 of file class.ilECSCmsData.php.
Referenced by getMid().
|
private |
Definition at line 19 of file class.ilECSCmsData.php.
Referenced by getObjId(), and lookupStatusByObjId().
|
private |
Definition at line 20 of file class.ilECSCmsData.php.
Referenced by getServerId().
|
private |
Definition at line 26 of file class.ilECSCmsData.php.
Referenced by getStatus(), writeAllStatus(), and writeStatus().
|
private |
Definition at line 25 of file class.ilECSCmsData.php.
Referenced by getTerm().
|
private |
Definition at line 24 of file class.ilECSCmsData.php.
Referenced by getTitle().
|
private |
Definition at line 22 of file class.ilECSCmsData.php.
Referenced by getTreeId().
const ilECSCmsData::MAPPING_DELETED = 5 |
Definition at line 17 of file class.ilECSCmsData.php.
Referenced by ilECSNodeMappingCmsExplorer\buildFormItem(), ilECSNodeMappingCmsExplorer\buildTitle(), ilECSNodeMappingAssignments\deleteDisconnectableMappings(), and lookupStatusByObjId().
const ilECSCmsData::MAPPING_MAPPED = 4 |
Definition at line 16 of file class.ilECSCmsData.php.
Referenced by ilECSNodeMappingCmsExplorer\buildTitle(), and ilECSNodeMappingAssignments\deleteDisconnectableMappings().
const ilECSCmsData::MAPPING_PENDING_DISCONNECTABLE = 2 |
Definition at line 14 of file class.ilECSCmsData.php.
Referenced by ilECSNodeMappingCmsExplorer\buildTitle(), and ilECSNodeMappingAssignments\deleteDisconnectableMappings().
const ilECSCmsData::MAPPING_PENDING_NOT_DISCONNECTABLE = 3 |
Definition at line 15 of file class.ilECSCmsData.php.
Referenced by ilECSNodeMappingCmsExplorer\buildTitle(), and ilECSNodeMappingAssignments\deleteDisconnectableMappings().
const ilECSCmsData::MAPPING_UNMAPPED = 1 |
Definition at line 13 of file class.ilECSCmsData.php.
Referenced by ilECSNodeMappingCmsExplorer\buildTitle(), ilECSNodeMappingAssignments\deleteDisconnectableMappings(), lookupStatusByCmsId(), and lookupStatusByObjId().