ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
|
Storage of ecs course assignments. More...
Public Member Functions | |
__construct (int $a_id=0) | |
Constructor. More... | |
getId () | |
setServer (int $a_server) | |
Set server. More... | |
getServer () | |
Get server. More... | |
setMid (int $a_mid) | |
getMid () | |
setCmsId (int $a_id) | |
getCmsId () | |
setCmsSubId (int $a_id) | |
getCmsSubId () | |
setObjId (int $a_id) | |
getObjId () | |
setUid (string $a_id) | |
getUid () | |
setStatus (bool $a_status) | |
getStatus () | |
save () | |
Save new entry. More... | |
update () | |
Update assignemt. More... | |
delete () | |
Delete entry. More... | |
Static Public Member Functions | |
static | lookupMissingAssignmentsOfUser (string $a_usr_id) |
Lookup missing assignments;. More... | |
static | deleteByObjId (int $a_obj_id) |
Delete by obj_id. More... | |
static | deleteByServerId (int $a_server_id) |
Delete by server id. More... | |
static | lookupUserIds (int $a_cms_id, ?int $a_cms_sub_id, int $a_obj_id) |
Lookup user ids. More... | |
static | lookupAssignment (int $a_cms_id, ?int $a_cms_sub_id, int $a_obj_id, string $a_usr_id) |
Lookup assignment of user. More... | |
Data Fields | |
const | STATUS_ASSIGNED = 0 |
const | STATUS_LOCAL_DELETED = 1 |
Protected Member Functions | |
read () | |
Read from db. More... | |
Private Attributes | |
ilDBInterface | $db |
int | $id |
int | $server |
int | $mid |
int | $cms_id |
int | $cms_sub_id = 0 |
int | $obj_id |
string | $uid |
bool | $status = false |
Storage of ecs course assignments.
Definition at line 24 of file class.ilECSCourseMemberAssignment.php.
ilECSCourseMemberAssignment::__construct | ( | int | $a_id = 0 | ) |
Constructor.
Definition at line 44 of file class.ilECSCourseMemberAssignment.php.
ilECSCourseMemberAssignment::delete | ( | ) |
Delete entry.
Definition at line 300 of file class.ilECSCourseMemberAssignment.php.
References getId().
|
static |
|
static |
ilECSCourseMemberAssignment::getCmsId | ( | ) |
Definition at line 199 of file class.ilECSCourseMemberAssignment.php.
References $cms_id.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getCmsSubId | ( | ) |
Definition at line 209 of file class.ilECSCourseMemberAssignment.php.
References $cms_sub_id.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getId | ( | ) |
ilECSCourseMemberAssignment::getMid | ( | ) |
Definition at line 189 of file class.ilECSCourseMemberAssignment.php.
References $mid.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getObjId | ( | ) |
Definition at line 219 of file class.ilECSCourseMemberAssignment.php.
References $obj_id.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getServer | ( | ) |
Get server.
Definition at line 179 of file class.ilECSCourseMemberAssignment.php.
References $server.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getStatus | ( | ) |
Definition at line 239 of file class.ilECSCourseMemberAssignment.php.
References $status.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getUid | ( | ) |
Definition at line 229 of file class.ilECSCourseMemberAssignment.php.
References $uid.
Referenced by save(), and update().
|
static |
Lookup assignment of user.
Definition at line 138 of file class.ilECSCourseMemberAssignment.php.
References $DIC, $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, and null.
Referenced by ilECSCmsCourseMemberCommandQueueHandler\refreshAssignmentStatus().
|
static |
Lookup missing assignments;.
string | $a_usr_id | account |
Definition at line 60 of file class.ilECSCourseMemberAssignment.php.
References $DIC, $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilECSAppEventListener\handleMembership().
|
static |
Lookup user ids.
Definition at line 110 of file class.ilECSCourseMemberAssignment.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCmsCourseMemberCommandQueueHandler\refreshAssignmentStatus().
|
protected |
Read from db.
Definition at line 313 of file class.ilECSCourseMemberAssignment.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, getId(), setCmsId(), setCmsSubId(), setMid(), setObjId(), setServer(), setStatus(), and setUid().
Referenced by __construct().
ilECSCourseMemberAssignment::save | ( | ) |
Save new entry.
Definition at line 247 of file class.ilECSCourseMemberAssignment.php.
References getCmsId(), getCmsSubId(), getId(), getMid(), getObjId(), getServer(), getStatus(), and getUid().
ilECSCourseMemberAssignment::setCmsId | ( | int | $a_id | ) |
Definition at line 194 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setCmsSubId | ( | int | $a_id | ) |
Definition at line 204 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setMid | ( | int | $a_mid | ) |
Definition at line 184 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setObjId | ( | int | $a_id | ) |
Definition at line 214 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setServer | ( | int | $a_server | ) |
Set server.
Definition at line 171 of file class.ilECSCourseMemberAssignment.php.
References ILIAS\UI\examples\Progress\Bar\server().
Referenced by read().
ilECSCourseMemberAssignment::setStatus | ( | bool | $a_status | ) |
Definition at line 234 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setUid | ( | string | $a_id | ) |
Definition at line 224 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::update | ( | ) |
Update assignemt.
Definition at line 281 of file class.ilECSCourseMemberAssignment.php.
References getCmsId(), getCmsSubId(), getId(), getMid(), getObjId(), getServer(), getStatus(), and getUid().
|
private |
Definition at line 34 of file class.ilECSCourseMemberAssignment.php.
Referenced by getCmsId().
|
private |
Definition at line 35 of file class.ilECSCourseMemberAssignment.php.
Referenced by getCmsSubId().
|
private |
Definition at line 29 of file class.ilECSCourseMemberAssignment.php.
|
private |
Definition at line 31 of file class.ilECSCourseMemberAssignment.php.
Referenced by getId().
|
private |
Definition at line 33 of file class.ilECSCourseMemberAssignment.php.
Referenced by getMid().
|
private |
Definition at line 36 of file class.ilECSCourseMemberAssignment.php.
Referenced by getObjId().
|
private |
Definition at line 32 of file class.ilECSCourseMemberAssignment.php.
Referenced by getServer().
|
private |
Definition at line 38 of file class.ilECSCourseMemberAssignment.php.
Referenced by getStatus().
|
private |
Definition at line 37 of file class.ilECSCourseMemberAssignment.php.
Referenced by getUid().
const ilECSCourseMemberAssignment::STATUS_ASSIGNED = 0 |
Definition at line 26 of file class.ilECSCourseMemberAssignment.php.
const ilECSCourseMemberAssignment::STATUS_LOCAL_DELETED = 1 |
Definition at line 27 of file class.ilECSCourseMemberAssignment.php.