ILIAS
Release_4_4_x_branch Revision 61816
|
Storage of ecs course assignments. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. | |
getId () | |
setServer ($a_server) | |
Set server. | |
getServer () | |
Get server. | |
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. | |
update () | |
Update assignemt type $ilDB. | |
delete () | |
Delete entry. |
Static Public Member Functions | |
static | deleteByObjId ($a_obj_id) |
Delete by obj_id. | |
static | deleteByServerId ($a_server_id) |
Delete by server id type $ilDB. | |
static | lookupUserIds ($a_cms_id, $a_cms_sub_id, $a_obj_id) |
Lookup user ids type $ilDB. | |
static | lookupAssignment ($a_cms_id, $a_cms_sub_id, $a_obj_id, $a_usr_id) |
Lookup assignment of user type $ilDB. |
Data Fields | |
const | STATUS_ASSIGNED = 0 |
const | STATUS_LOCAL_DELETED = 1 |
Protected Member Functions | |
read () | |
Read from db. |
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 | ( | ) |
|
static |
Delete by obj_id.
Definition at line 37 of file class.ilECSCourseMemberAssignment.php.
References $query.
|
static |
Delete by server id type $ilDB.
type | $a_server_id |
Definition at line 53 of file class.ilECSCourseMemberAssignment.php.
References $query.
ilECSCourseMemberAssignment::getCmsId | ( | ) |
Definition at line 152 of file class.ilECSCourseMemberAssignment.php.
References $cms_id.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getCmsSubId | ( | ) |
Definition at line 162 of file class.ilECSCourseMemberAssignment.php.
References $cms_sub_id.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getId | ( | ) |
ilECSCourseMemberAssignment::getMid | ( | ) |
Definition at line 142 of file class.ilECSCourseMemberAssignment.php.
References $mid.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getObjId | ( | ) |
Definition at line 172 of file class.ilECSCourseMemberAssignment.php.
References $obj_id.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getServer | ( | ) |
Get server.
Definition at line 132 of file class.ilECSCourseMemberAssignment.php.
References $server.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getStatus | ( | ) |
Definition at line 192 of file class.ilECSCourseMemberAssignment.php.
References $status.
Referenced by save().
ilECSCourseMemberAssignment::getUid | ( | ) |
Definition at line 182 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 96 of file class.ilECSCourseMemberAssignment.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSCmsCourseMemberCommandQueueHandler\refreshAssignmentStatus().
|
static |
Lookup user ids type $ilDB.
type | $a_cms_id | |
type | $a_obj_id |
Definition at line 70 of file class.ilECSCourseMemberAssignment.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilECSCmsCourseMemberCommandQueueHandler\refreshAssignmentStatus().
|
protected |
Read from db.
Definition at line 264 of file class.ilECSCourseMemberAssignment.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, getId(), setCmsId(), setCmsSubId(), setMid(), setObjId(), setServer(), and setStatus().
Referenced by __construct().
ilECSCourseMemberAssignment::save | ( | ) |
Save new entry type $ilDB.
Definition at line 201 of file class.ilECSCourseMemberAssignment.php.
References $query, getCmsId(), getCmsSubId(), getId(), getMid(), getObjId(), getServer(), getStatus(), and getUid().
ilECSCourseMemberAssignment::setCmsId | ( | $a_id | ) |
Definition at line 147 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setCmsSubId | ( | $a_id | ) |
Definition at line 157 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setMid | ( | $a_mid | ) |
Definition at line 137 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setObjId | ( | $a_id | ) |
Definition at line 167 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setServer | ( | $a_server | ) |
Set server.
int | server_id |
Definition at line 123 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setStatus | ( | $a_status | ) |
Definition at line 187 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setUid | ( | $a_id | ) |
Definition at line 177 of file class.ilECSCourseMemberAssignment.php.
ilECSCourseMemberAssignment::update | ( | ) |
Update assignemt type $ilDB.
Definition at line 227 of file class.ilECSCourseMemberAssignment.php.
References $query, getCmsId(), getCmsSubId(), getId(), getMid(), getObjId(), getServer(), 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.