|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilStudyProgrammeAssignment. More...
Inheritance diagram for ilStudyProgrammeAssignment:
Collaboration diagram for ilStudyProgrammeAssignment: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 101 of file class.ilStudyProgrammeAssignment.php.
References ilObject\_lookupType(), and ilStudyProgramme\getObjId().
Referenced by ilObjStudyProgramme\assignUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilStudyProgrammeAssignment::getId | ( | ) |
Get the id of the assignment.
Definition at line 121 of file class.ilStudyProgrammeAssignment.php.
References $id.
Referenced by ilStudyProgrammeProgress\createFor().
Here is the caller graph for this function:| ilStudyProgrammeAssignment::getLastChange | ( | ) |
Get the timestamp of the last change on this program or a sub program.
Definition at line 184 of file class.ilStudyProgrammeAssignment.php.
References IL_CAL_DATETIME.
Referenced by setLastChange().
Here is the caller graph for this function:| ilStudyProgrammeAssignment::getLastChangeBy | ( | ) |
Get the id of the user who did the last change on this assignment.
Definition at line 158 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 130 of file class.ilStudyProgrammeAssignment.php.
References $root_prg_id.
| ilStudyProgrammeAssignment::getUserId | ( | ) |
Get the id of the user who is assigned.
Definition at line 144 of file class.ilStudyProgrammeAssignment.php.
References $usr_id.
Referenced by ilStudyProgrammeProgress\createFor().
Here is the caller graph for this function:
|
static |
Reimplemented from ActiveRecord.
Definition at line 23 of file class.ilStudyProgrammeAssignment.php.
Referenced by ilStudyProgrammeMembersTableGUI\getFrom(), ilStudyProgrammeUserAssignmentTest\testDeassignRemovesEntriesInPrgUsrAssignment(), and ilStudyProgrammeUserAssignmentTest\testDeleteOfProgrammeRemovesEntriesInPrgUsrAssignment().
Here is the caller graph for this function:| 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 207 of file class.ilStudyProgrammeAssignment.php.
References ilDateTime\_before(), ilDateTime\get(), getLastChange(), and IL_CAL_DATETIME.
Referenced by updateLastChange().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 170 of file class.ilStudyProgrammeAssignment.php.
References ilObject\_lookupType().
Here is the call graph for this function:
|
protected |
Definition at line 134 of file class.ilStudyProgrammeAssignment.php.
|
protected |
Definition at line 148 of file class.ilStudyProgrammeAssignment.php.
| ilStudyProgrammeAssignment::updateLastChange | ( | ) |
Update the last change timestamp to the current time.
Definition at line 193 of file class.ilStudyProgrammeAssignment.php.
References IL_CAL_DATETIME, ilUtil\now(), and setLastChange().
Here is the call graph for this function:
|
protected |
Definition at line 39 of file class.ilStudyProgrammeAssignment.php.
Referenced by getId().
|
protected |
Definition at line 76 of file class.ilStudyProgrammeAssignment.php.
|
protected |
Definition at line 88 of file class.ilStudyProgrammeAssignment.php.
Referenced by getLastChangeBy().
|
protected |
Definition at line 64 of file class.ilStudyProgrammeAssignment.php.
Referenced by getRootId().
|
protected |
Definition at line 51 of file class.ilStudyProgrammeAssignment.php.
Referenced by getUserId().