ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilStudyProgrammeAssignment. More...
Public Member Functions | |
getId () | |
Get the id of the assignment. More... | |
getRootId () | |
Get the object id of the program the user was assigned to. More... | |
getUserId () | |
Get the id of the user who is assigned. More... | |
getLastChangeBy () | |
Get the id of the user who did the last change on this assignment. More... | |
setLastChangeBy ($a_usr_id) | |
Set the id of the user who did the last change on this assignment. More... | |
getLastChange () | |
Get the timestamp of the last change on this program or a sub program. More... | |
updateLastChange () | |
Update the last change timestamp to the current time. More... | |
setLastChange (ilDateTime $a_timestamp) | |
Set the last change timestamp to the given time. More... | |
Public Member Functions inherited from ActiveRecord | |
getArConnector () | |
getArFieldList () | |
getConnectorContainerName () | |
setConnectorContainerName ($connector_container_name) | |
getPrimaryFieldValue () | |
setPrimaryFieldValue ($value) | |
__construct ($primary_key=0, arConnector $connector=null) | |
storeObjectToCache () | |
__getConvertedDateFieldsAsArray ($format=null) | |
__asCsv ($separator=';', $header=false) | |
__asArray () | |
__asStdClass () | |
__asSerializedObject () | |
buildFromArray (array $array) | |
fixDateField ($field_name, $value) | |
sleep ($field_name) | |
wakeUp ($field_name, $field_value) | |
getArrayForDb () | |
getArrayForConnector () | |
installConnector () | |
store () | |
save () | |
create () | |
copy ($new_id=0) | |
afterObjectLoad () | |
read () | |
update () | |
delete () | |
__call ($name, $arguments) | |
Static Public Member Functions | |
static | returnDbTableName () |
static | createFor (ilStudyProgramme $a_prg, $a_usr_id, $a_assigning_usr_id) |
Create new assignment object for study program and user. More... | |
Static Public Member Functions inherited from ActiveRecord | |
static | returnDbTableName () |
static | installDB () |
static | renameDBField ($old_name, $new_name) |
static | tableExists () |
static | fieldExists ($field_name) |
static | removeDBField ($field_name) |
static | updateDB () |
static | resetDB () |
static | truncateDB () |
static | flushDB () |
static | preloadObjects () |
static | additionalParams (array $additional_params) |
static | findOrFail ($primary_key, array $add_constructor_args=array()) |
Tries to find the object and throws an Exception if object is not found, instead of returning null. More... | |
static | findOrGetInstance ($primary_key, array $add_constructor_args=array()) |
static | where ($where, $operator=null) |
static | innerjoinAR (ActiveRecord $ar, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) |
static | innerjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) |
static | leftjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false) |
static | orderBy ($orderBy, $orderDirection='ASC') |
static | dateFormat ($date_format='d.m.Y - H:i:s') |
static | limit ($start, $end) |
static | affectedRows () |
static | count () |
static | get () |
static | debug () |
static | first () |
static | getCollection () |
static | last () |
static | getFirstFromLastQuery () |
static | connector (arConnector $connector) |
static | raw ($set_raw=true) |
static | getArray ($key=null, $values=null) |
static | _toCamelCase ($str, $capitalise_first_char=false) |
Protected Member Functions | |
setRootId ($a_id) | |
setUserId ($a_usr_id) | |
Protected Member Functions inherited from ActiveRecord | |
serializeToCSV ($field) | |
This method is called for every field of your instance if you use __asCsv. More... | |
installDatabase () | |
Protected Attributes | |
$id | |
$usr_id | |
$root_prg_id | |
$last_change | |
$last_change_by | |
Protected Attributes inherited from ActiveRecord | |
$ar_safe_read = true | |
$connector_container_name = '' | |
Additional Inherited Members | |
Data Fields inherited from ActiveRecord | |
const | ACTIVE_RECORD_VERSION = '2.0.7' |
Static Protected Member Functions inherited from ActiveRecord | |
static | getCalledClass () |
static | fromCamelCase ($str) |
Class ilStudyProgrammeAssignment.
Represents one assignment of the user to a program tree.
One user can have multiple assignments to the same tree. This makes it possible to represent programs that need to be accomplished periodically as well.
Definition at line 19 of file class.ilStudyProgrammeAssignment.php.
|
static |
Create new assignment object for study program and user.
Throws when $a_usr_id does not point to a user.
ilException |
int | $a_usr_id | |
int | $a_assigning_usr_id |
Definition at line 103 of file class.ilStudyProgrammeAssignment.php.
References ilObject\_lookupType(), ilStudyProgramme\getObjId(), and setUserId().
Referenced by ilObjStudyProgramme\assignUser().
ilStudyProgrammeAssignment::getId | ( | ) |
Get the id of the assignment.
Definition at line 124 of file class.ilStudyProgrammeAssignment.php.
References $id.
Referenced by ilStudyProgrammeProgress\createFor().
ilStudyProgrammeAssignment::getLastChange | ( | ) |
Get the timestamp of the last change on this program or a sub program.
Definition at line 194 of file class.ilStudyProgrammeAssignment.php.
References IL_CAL_DATETIME.
Referenced by setLastChange().
ilStudyProgrammeAssignment::getLastChangeBy | ( | ) |
Get the id of the user who did the last change on this assignment.
Definition at line 166 of file class.ilStudyProgrammeAssignment.php.
References $last_change_by.
ilStudyProgrammeAssignment::getRootId | ( | ) |
Get the object id of the program the user was assigned to.
Definition at line 134 of file class.ilStudyProgrammeAssignment.php.
References $root_prg_id.
ilStudyProgrammeAssignment::getUserId | ( | ) |
Get the id of the user who is assigned.
Definition at line 150 of file class.ilStudyProgrammeAssignment.php.
References $usr_id.
Referenced by ilStudyProgrammeProgress\createFor().
|
static |
Definition at line 24 of file class.ilStudyProgrammeAssignment.php.
Referenced by ilStudyProgrammeMembersTableGUI\getFrom(), ilStudyProgrammeUserAssignmentTest\testDeassignRemovesEntriesInPrgUsrAssignment(), and ilStudyProgrammeUserAssignmentTest\testDeleteOfProgrammeRemovesEntriesInPrgUsrAssignment().
ilStudyProgrammeAssignment::setLastChange | ( | ilDateTime | $a_timestamp | ) |
Set the last change timestamp to the given time.
Throws when given time is smaller then current timestamp since that is logically impossible.
ilException |
Definition at line 219 of file class.ilStudyProgrammeAssignment.php.
References ilDateTime\_before(), ilDateTime\get(), getLastChange(), and IL_CAL_DATETIME.
Referenced by updateLastChange().
ilStudyProgrammeAssignment::setLastChangeBy | ( | $a_usr_id | ) |
Set the id of the user who did the last change on this assignment.
Throws when $a_usr_id is not the id of a user.
ilException |
Definition at line 179 of file class.ilStudyProgrammeAssignment.php.
References ilObject\_lookupType().
|
protected |
Definition at line 139 of file class.ilStudyProgrammeAssignment.php.
|
protected |
Definition at line 155 of file class.ilStudyProgrammeAssignment.php.
Referenced by createFor().
ilStudyProgrammeAssignment::updateLastChange | ( | ) |
Update the last change timestamp to the current time.
Definition at line 204 of file class.ilStudyProgrammeAssignment.php.
References IL_CAL_DATETIME, ilUtil\now(), and setLastChange().
|
protected |
Definition at line 41 of file class.ilStudyProgrammeAssignment.php.
Referenced by getId().
|
protected |
Definition at line 78 of file class.ilStudyProgrammeAssignment.php.
|
protected |
Definition at line 90 of file class.ilStudyProgrammeAssignment.php.
Referenced by getLastChangeBy().
|
protected |
Definition at line 66 of file class.ilStudyProgrammeAssignment.php.
Referenced by getRootId().
|
protected |
Definition at line 53 of file class.ilStudyProgrammeAssignment.php.
Referenced by getUserId().