ILIAS
release_8 Revision v8.19
|
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 assignment. 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 23 of file class.ilECSCourseMemberAssignment.php.
ilECSCourseMemberAssignment::__construct | ( | int | $a_id = 0 | ) |
Constructor.
Definition at line 43 of file class.ilECSCourseMemberAssignment.php.
ilECSCourseMemberAssignment::delete | ( | ) |
Delete entry.
Definition at line 299 of file class.ilECSCourseMemberAssignment.php.
References $query, and getId().
|
static |
Delete by obj_id.
Definition at line 79 of file class.ilECSCourseMemberAssignment.php.
References $DIC, $ilDB, and $query.
|
static |
Delete by server id.
Definition at line 94 of file class.ilECSCourseMemberAssignment.php.
References $DIC, $ilDB, and $query.
ilECSCourseMemberAssignment::getCmsId | ( | ) |
Definition at line 198 of file class.ilECSCourseMemberAssignment.php.
References $cms_id.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getCmsSubId | ( | ) |
Definition at line 208 of file class.ilECSCourseMemberAssignment.php.
References $cms_sub_id.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getId | ( | ) |
ilECSCourseMemberAssignment::getMid | ( | ) |
Definition at line 188 of file class.ilECSCourseMemberAssignment.php.
References $mid.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getObjId | ( | ) |
Definition at line 218 of file class.ilECSCourseMemberAssignment.php.
References $obj_id.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getServer | ( | ) |
Get server.
Definition at line 178 of file class.ilECSCourseMemberAssignment.php.
References $server.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getStatus | ( | ) |
Definition at line 238 of file class.ilECSCourseMemberAssignment.php.
References $status.
Referenced by save(), and update().
ilECSCourseMemberAssignment::getUid | ( | ) |
Definition at line 228 of file class.ilECSCourseMemberAssignment.php.
References $uid.
Referenced by save(), and update().
|
static |
Lookup assignment of user.
Definition at line 137 of file class.ilECSCourseMemberAssignment.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCmsCourseMemberCommandQueueHandler\refreshAssignmentStatus().
|
static |
Lookup missing assignments;.
string | $a_usr_id | account |
Definition at line 59 of file class.ilECSCourseMemberAssignment.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilECSAppEventListener\handleMembership().
|
static |
Lookup user ids.
Definition at line 109 of file class.ilECSCourseMemberAssignment.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilECSCmsCourseMemberCommandQueueHandler\refreshAssignmentStatus().
|
protected |
Read from db.
Definition at line 312 of file class.ilECSCourseMemberAssignment.php.
References $query, $res, ilDBConstants\FETCHMODE_OBJECT, getId(), setCmsId(), setCmsSubId(), setMid(), setObjId(), setServer(), setStatus(), and setUid().
Referenced by __construct().
ilECSCourseMemberAssignment::save | ( | ) |
Save new entry.
Definition at line 246 of file class.ilECSCourseMemberAssignment.php.
References $query, getCmsId(), getCmsSubId(), getId(), getMid(), getObjId(), getServer(), getStatus(), and getUid().
ilECSCourseMemberAssignment::setCmsId | ( | int | $a_id | ) |
Definition at line 193 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setCmsSubId | ( | int | $a_id | ) |
Definition at line 203 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setMid | ( | int | $a_mid | ) |
Definition at line 183 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setObjId | ( | int | $a_id | ) |
Definition at line 213 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setServer | ( | int | $a_server | ) |
Set server.
Definition at line 170 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setStatus | ( | bool | $a_status | ) |
Definition at line 233 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::setUid | ( | string | $a_id | ) |
Definition at line 223 of file class.ilECSCourseMemberAssignment.php.
Referenced by read().
ilECSCourseMemberAssignment::update | ( | ) |
Update assignment.
Definition at line 280 of file class.ilECSCourseMemberAssignment.php.
References $query, getCmsId(), getCmsSubId(), getId(), getMid(), getObjId(), getServer(), getStatus(), and getUid().
|
private |
Definition at line 33 of file class.ilECSCourseMemberAssignment.php.
Referenced by getCmsId().
|
private |
Definition at line 34 of file class.ilECSCourseMemberAssignment.php.
Referenced by getCmsSubId().
|
private |
Definition at line 28 of file class.ilECSCourseMemberAssignment.php.
|
private |
Definition at line 30 of file class.ilECSCourseMemberAssignment.php.
Referenced by getId().
|
private |
Definition at line 32 of file class.ilECSCourseMemberAssignment.php.
Referenced by getMid().
|
private |
Definition at line 35 of file class.ilECSCourseMemberAssignment.php.
Referenced by getObjId().
|
private |
Definition at line 31 of file class.ilECSCourseMemberAssignment.php.
Referenced by getServer().
|
private |
Definition at line 37 of file class.ilECSCourseMemberAssignment.php.
Referenced by getStatus().
|
private |
Definition at line 36 of file class.ilECSCourseMemberAssignment.php.
Referenced by getUid().
const ilECSCourseMemberAssignment::STATUS_ASSIGNED = 0 |
Definition at line 25 of file class.ilECSCourseMemberAssignment.php.
const ilECSCourseMemberAssignment::STATUS_LOCAL_DELETED = 1 |
Definition at line 26 of file class.ilECSCourseMemberAssignment.php.