ILIAS
Release_5_0_x_branch Revision 61816
|
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 | ( | ) |
|
static |
Definition at line 526 of file class.ilECSCmsData.php.
Referenced by ilECSSetting\delete().
ilECSCmsData::deleteTree | ( | ) |
Definition at line 515 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 62 of file class.ilECSCmsData.php.
References $deleted, $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSCmsTreeCommandQueueHandler\handleUpdate().
ilECSCmsData::getCmsId | ( | ) |
Definition at line 415 of file class.ilECSCmsData.php.
References $cms_id.
ilECSCmsData::getMid | ( | ) |
ilECSCmsData::getObjId | ( | ) |
Definition at line 405 of file class.ilECSCmsData.php.
References $obj_id.
ilECSCmsData::getServerId | ( | ) |
Definition at line 425 of file class.ilECSCmsData.php.
References $server_id.
ilECSCmsData::getStatus | ( | ) |
Definition at line 455 of file class.ilECSCmsData.php.
References $status.
ilECSCmsData::getTerm | ( | ) |
ilECSCmsData::getTitle | ( | ) |
Definition at line 385 of file class.ilECSCmsData.php.
References $title.
Referenced by ilECSNodeMappingTreeTableGUI\parse().
ilECSCmsData::getTreeId | ( | ) |
Definition at line 435 of file class.ilECSCmsData.php.
References $tree_id.
ilECSCmsData::isDeleted | ( | ) |
Definition at line 465 of file class.ilECSCmsData.php.
References $deleted.
Referenced by update().
|
static |
Lookup cms id.
type | $a_obj_id |
Definition at line 248 of file class.ilECSCmsData.php.
References lookupCmsIds().
Referenced by ilECSMappingSettingsGUI\dInitFormTreeSettings().
|
static |
Definition at line 255 of file class.ilECSCmsData.php.
References $ilDB, $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 278 of file class.ilECSCmsData.php.
References $ilDB, $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, $GLOBALS, $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSCourseCreationHandler\syncParentContainer().
|
static |
Definition at line 82 of file class.ilECSCmsData.php.
References $cms_id, $GLOBALS, $ilDB, $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 205 of file class.ilECSCmsData.php.
References $cms_id, $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and MAPPING_UNMAPPED.
Referenced by ilECSNodeMappingAssignments\deleteDisconnectableMappings().
|
static |
Lookup status.
int | $a_obj_id |
Definition at line 180 of file class.ilECSCmsData.php.
References $ilDB, $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 134 of file class.ilECSCmsData.php.
References $ilDB, $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 157 of file class.ilECSCmsData.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSNodeMappingTreeTableGUI\parse().
|
static |
Definition at line 362 of file class.ilECSCmsData.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSNodeMappingTreeTableGUI\parse().
|
protected |
Definition at line 535 of file class.ilECSCmsData.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by __construct().
ilECSCmsData::save | ( | ) |
Definition at line 471 of file class.ilECSCmsData.php.
ilECSCmsData::setCmsId | ( | $a_id | ) |
Definition at line 410 of file class.ilECSCmsData.php.
ilECSCmsData::setDeleted | ( | $a_is_deleted | ) |
Definition at line 460 of file class.ilECSCmsData.php.
ilECSCmsData::setMid | ( | $a_id | ) |
Definition at line 440 of file class.ilECSCmsData.php.
ilECSCmsData::setObjId | ( | $a_id | ) |
Definition at line 400 of file class.ilECSCmsData.php.
ilECSCmsData::setServerId | ( | $a_id | ) |
Definition at line 420 of file class.ilECSCmsData.php.
ilECSCmsData::setStatus | ( | $a_status | ) |
Definition at line 450 of file class.ilECSCmsData.php.
ilECSCmsData::setTerm | ( | $a_term | ) |
Definition at line 390 of file class.ilECSCmsData.php.
ilECSCmsData::setTitle | ( | $a_title | ) |
Definition at line 380 of file class.ilECSCmsData.php.
ilECSCmsData::setTreeId | ( | $a_id | ) |
Definition at line 430 of file class.ilECSCmsData.php.
|
static |
Definition at line 35 of file class.ilECSCmsData.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSTreeReader\read().
ilECSCmsData::update | ( | ) |
Definition at line 493 of file class.ilECSCmsData.php.
References $ilDB, $query, and isDeleted().
|
static |
Definition at line 222 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 349 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 329 of file class.ilECSCmsData.php.
References $ilDB, $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 305 of file class.ilECSCmsData.php.
References $ilDB, $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().