ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Storage of ecs course assignments. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. More... | |
getId () | |
setServer ($a_server) | |
Set server. More... | |
getServer () | |
Get server. More... | |
setMid ($a_mid) | |
getMid () | |
setCmsId ($a_id) | |
getCmsId () | |
setCmsSubId ($a_id) | |
getCmsSubId () | |
setObjId ($a_id) | |
getObjId () | |
setUid ($a_id) | |
getUid () | |
setStatus ($a_status) | |
getStatus () | |
save () | |
Save new entry type $ilDB. More... | |
update () | |
Update assignemt type $ilDB. More... | |
delete () | |
Delete entry. More... | |
Static Public Member Functions | |
static | lookupMissingAssignmentsOfUser ($a_usr_id) |
Lookup missing assignments; type $ilDB. More... | |
static | deleteByObjId ($a_obj_id) |
Delete by obj_id. More... | |
static | deleteByServerId ($a_server_id) |
Delete by server id type $ilDB. More... | |
static | lookupUserIds ($a_cms_id, $a_cms_sub_id, $a_obj_id) |
Lookup user ids type $ilDB. More... | |
static | lookupAssignment ($a_cms_id, $a_cms_sub_id, $a_obj_id, $a_usr_id) |
Lookup assignment of user type $ilDB. More... | |
Data Fields | |
const | STATUS_ASSIGNED = 0 |
const | STATUS_LOCAL_DELETED = 1 |
Protected Member Functions | |
read () | |
Read from db. More... | |
Private Attributes | |
$id | |
$server | |
$mid | |
$cms_id | |
$cms_sub_id = 0 | |
$obj_id | |
$uid | |
$status = 0 | |
Storage of ecs course assignments.
Definition at line 9 of file class.ilECSCourseMemberAssignment.php.
ilECSCourseMemberAssignment::__construct | ( | $a_id = 0 | ) |
Constructor.
Definition at line 27 of file class.ilECSCourseMemberAssignment.php.
References read().
ilECSCourseMemberAssignment::delete | ( | ) |
Delete entry.
Definition at line 296 of file class.ilECSCourseMemberAssignment.php.
References $ilDB, $query, and getId().
|
static |
|
static |
Delete by server id type $ilDB.
type | $a_server_id |
Definition at line 76 of file class.ilECSCourseMemberAssignment.php.
ilECSCourseMemberAssignment::getCmsId | ( | ) |
Definition at line 188 of file class.ilECSCourseMemberAssignment.php.
References $cms_id.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getCmsSubId | ( | ) |
Definition at line 198 of file class.ilECSCourseMemberAssignment.php.
References $cms_sub_id.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getId | ( | ) |
ilECSCourseMemberAssignment::getMid | ( | ) |
Definition at line 178 of file class.ilECSCourseMemberAssignment.php.
References $mid.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getObjId | ( | ) |
Definition at line 208 of file class.ilECSCourseMemberAssignment.php.
References $obj_id.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getServer | ( | ) |
Get server.
Definition at line 168 of file class.ilECSCourseMemberAssignment.php.
References $server.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getStatus | ( | ) |
Definition at line 228 of file class.ilECSCourseMemberAssignment.php.
References $status.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getUid | ( | ) |
Definition at line 218 of file class.ilECSCourseMemberAssignment.php.
References $uid.
Referenced by save(), and update().
|
static |
Lookup assignment of user type $ilDB.
type | $a_cms_id | |
type | $a_obj_id | |
type | $a_usr_id |
Definition at line 126 of file class.ilECSCourseMemberAssignment.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCmsCourseMemberCommandQueueHandler\refreshAssignmentStatus().
|
static |
Lookup missing assignments; type $ilDB.
string | account |
Definition at line 40 of file class.ilECSCourseMemberAssignment.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSAppEventListener\handleMembership().
|
static |
Lookup user ids type $ilDB.
type | $a_cms_id | |
type | $a_obj_id |
Definition at line 93 of file class.ilECSCourseMemberAssignment.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCmsCourseMemberCommandQueueHandler\refreshAssignmentStatus().
|
protected |
Read from db.
Definition at line 312 of file class.ilECSCourseMemberAssignment.php.
References $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, getId(), setCmsId(), setCmsSubId(), setMid(), setObjId(), setServer(), setStatus(), and setUid().
Referenced by __construct().
ilECSCourseMemberAssignment::save | ( | ) |
Save new entry type $ilDB.
Definition at line 237 of file class.ilECSCourseMemberAssignment.php.
References $ilDB, $query, getCmsId(), getCmsSubId(), getId(), getMid(), getObjId(), getServer(), getStatus(), and getUid().
ilECSCourseMemberAssignment::setCmsId | ( | $a_id | ) |
Definition at line 183 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setCmsSubId | ( | $a_id | ) |
Definition at line 193 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setMid | ( | $a_mid | ) |
Definition at line 173 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setObjId | ( | $a_id | ) |
Definition at line 203 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setServer | ( | $a_server | ) |
Set server.
int | server_id |
Definition at line 159 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setStatus | ( | $a_status | ) |
Definition at line 223 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setUid | ( | $a_id | ) |
Definition at line 213 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::update | ( | ) |
Update assignemt type $ilDB.
Definition at line 275 of file class.ilECSCourseMemberAssignment.php.
References $ilDB, $query, getCmsId(), getCmsSubId(), getId(), getMid(), getObjId(), getServer(), getStatus(), and getUid().
|
private |
Definition at line 17 of file class.ilECSCourseMemberAssignment.php.
Referenced by getCmsId().
|
private |
Definition at line 18 of file class.ilECSCourseMemberAssignment.php.
Referenced by getCmsSubId().
|
private |
Definition at line 14 of file class.ilECSCourseMemberAssignment.php.
Referenced by getId().
|
private |
Definition at line 16 of file class.ilECSCourseMemberAssignment.php.
Referenced by getMid().
|
private |
Definition at line 19 of file class.ilECSCourseMemberAssignment.php.
Referenced by getObjId().
|
private |
Definition at line 15 of file class.ilECSCourseMemberAssignment.php.
Referenced by getServer().
|
private |
Definition at line 21 of file class.ilECSCourseMemberAssignment.php.
Referenced by getStatus().
|
private |
Definition at line 20 of file class.ilECSCourseMemberAssignment.php.
Referenced by getUid().
const ilECSCourseMemberAssignment::STATUS_ASSIGNED = 0 |
Definition at line 11 of file class.ilECSCourseMemberAssignment.php.
const ilECSCourseMemberAssignment::STATUS_LOCAL_DELETED = 1 |
Definition at line 12 of file class.ilECSCourseMemberAssignment.php.