|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Inheritance diagram for ilStudyProgrammeAssignmentDBRepository:
Collaboration diagram for ilStudyProgrammeAssignmentDBRepository:Public Member Functions | |
| __construct (ilDBInterface $db) | |
| createFor (int $root_prg_id, int $usr_id, int $assigning_usr_id) | |
| Create a record corresponding to a SP-Object and return represending settings.Will throw if a record allready exists. More... | |
| read (int $id) | |
Load settings belonging to a SP-Object.Will throw if the record does not exist yet.
| |
| readByUsrId (int $usr_id) | |
| Get all assignments of a user. More... | |
| readByPrgId (int $prg_id) | |
| Get all assignments to a prg. More... | |
| readByUsrIdAndPrgId (int $usr_id, int $prg_id) | |
| readDueToRestart () | |
| Get all assignments due to restart and not restrted yet. More... | |
| readDueToRestartAndMail () | |
| readDueToManuelRestart (int $days_before_end) | |
| Get all assignments due to restart and not restrted yet. More... | |
| update (ilStudyProgrammeAssignment $assignment) | |
| Update settings belonging to a SP-Object.Will throw if the record does not exist yet. More... | |
| delete (ilStudyProgrammeAssignment $assignment) | |
| Delete record corresponding to settings.Will throw if the record does not exist yet. More... | |
| reminderSendFor (int $assignment_id) | |
| getDashboardInstancesforUser (int $usr_id) | |
| createFor (int $prg_id, int $usr_id, int $assigning_usr_id) | |
| Create a record corresponding to a SP-Object and return represending settings. More... | |
| read (int $id) | |
| Load settings belonging to a SP-Object. More... | |
| readByUsrId (int $usr_id) | |
| Get all assignments of a user. More... | |
| readByPrgId (int $prg_id) | |
| Get all assignments to a prg. More... | |
| readDueToRestart () | |
| Get all assignments due to restart and not restrted yet. More... | |
| readDueToManuelRestart (int $days_before_end) | |
| Get all assignments due to restart and not restrted yet. More... | |
| update (ilStudyProgrammeAssignment $assignment) | |
| Update settings belonging to a SP-Object. More... | |
| delete (ilStudyProgrammeAssignment $assignment) | |
| Delete record corresponding to settings. More... | |
Data Fields | |
| const | TABLE = 'prg_usr_assignments' |
| const | FIELD_ID = 'id' |
| const | FIELD_USR_ID = 'usr_id' |
| const | FIELD_ROOT_PRG_ID = 'root_prg_id' |
| const | FIELD_LAST_CHANGE = 'last_change' |
| const | FIELD_LAST_CHANGE_BY = 'last_change_by' |
| const | FIELD_RESTART_DATE = 'restart_date' |
| const | FIELD_RESTARTED_ASSIGNMENT_ID = 'restarted_assignment_id' |
| const | FIELD_RESTART_MAIL = 'restart_mail_send' |
Protected Member Functions | |
| loadDueToRestart () | |
| loadDueToRestartAndMail () | |
| getSQLHeader () | |
| getDueToRestartBaseSQL () | |
| loadDueToManuelRestart (int $days_before_end) | |
| assignmentByRow (array $row) | |
| loadByFilterDB (array $filter) | |
| insertRowDB (array $row) | |
| updatedRowDB (array $values) | |
| deleteDB (int $id) | |
| nextId () | |
Protected Attributes | |
| $db | |
Definition at line 4 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| ilStudyProgrammeAssignmentDBRepository::__construct | ( | ilDBInterface | $db | ) |
Definition at line 22 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References $db.
|
protected |
| ilException |
Definition at line 307 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References ilStudyProgrammeAssignment\DATE_TIME_FORMAT, and ilStudyProgrammeAssignment\setRootId().
Referenced by createFor(), getDashboardInstancesforUser(), read(), readByPrgId(), readByUsrId(), readByUsrIdAndPrgId(), readDueToManuelRestart(), readDueToRestart(), and readDueToRestartAndMail().
Here is the call graph for this function:
Here is the caller graph for this function:| ilStudyProgrammeAssignmentDBRepository::createFor | ( | int | $root_prg_id, |
| int | $usr_id, | ||
| int | $assigning_usr_id | ||
| ) |
Create a record corresponding to a SP-Object and return represending settings.Will throw if a record allready exists.
| ilException |
Implements ilStudyProgrammeAssignmentRepository.
Definition at line 32 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References ilObject\_lookupType(), assignmentByRow(), insertRowDB(), nextId(), ilStudyProgrammeAssignment\NO_RESTARTED_ASSIGNMENT, and ilUtil\now().
Here is the call graph for this function:| ilStudyProgrammeAssignmentDBRepository::delete | ( | ilStudyProgrammeAssignment | $assignment | ) |
Delete record corresponding to settings.Will throw if the record does not exist yet.
Implements ilStudyProgrammeAssignmentRepository.
Definition at line 241 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References deleteDB().
Here is the call graph for this function:
|
protected |
Definition at line 375 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by delete().
Here is the caller graph for this function:| ilStudyProgrammeAssignmentDBRepository::getDashboardInstancesforUser | ( | int | $usr_id | ) |
| ilException |
Definition at line 268 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References $db, $DIC, $res, $ret, assignmentByRow(), and FIELD_ID.
Here is the call graph for this function:
|
protected |
Definition at line 163 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References ilStudyProgrammeAssignment\DATE_FORMAT, getSQLHeader(), and ilStudyProgrammeAssignment\NO_RESTARTED_ASSIGNMENT.
Referenced by loadDueToRestart(), and loadDueToRestartAndMail().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 151 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by getDueToRestartBaseSQL(), and loadDueToManuelRestart().
Here is the caller graph for this function:
|
protected |
Definition at line 345 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by createFor().
Here is the caller graph for this function:
|
protected |
Definition at line 325 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References $res.
Referenced by read(), readByPrgId(), readByUsrId(), and readByUsrIdAndPrgId().
Here is the caller graph for this function:
|
protected |
| Exception |
Definition at line 197 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References $res, ilStudyProgrammeAssignment\DATE_FORMAT, getSQLHeader(), and ilStudyProgrammeAssignment\NO_RESTARTED_ASSIGNMENT.
Referenced by readDueToManuelRestart().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 131 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References $res, and getDueToRestartBaseSQL().
Referenced by readDueToRestart().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 140 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References $res, and getDueToRestartBaseSQL().
Referenced by readDueToRestartAndMail().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 380 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by createFor().
Here is the caller graph for this function:| ilStudyProgrammeAssignmentDBRepository::read | ( | int | $id | ) |
Load settings belonging to a SP-Object.Will throw if the record does not exist yet.
| ilException |
Implements ilStudyProgrammeAssignmentRepository.
Definition at line 59 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References assignmentByRow(), and loadByFilterDB().
Here is the call graph for this function:| ilStudyProgrammeAssignmentDBRepository::readByPrgId | ( | int | $prg_id | ) |
Get all assignments to a prg.
| ilException |
Implements ilStudyProgrammeAssignmentRepository.
Definition at line 84 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References assignmentByRow(), and loadByFilterDB().
Here is the call graph for this function:| ilStudyProgrammeAssignmentDBRepository::readByUsrId | ( | int | $usr_id | ) |
Get all assignments of a user.
| ilException |
Implements ilStudyProgrammeAssignmentRepository.
Definition at line 71 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References assignmentByRow(), and loadByFilterDB().
Here is the call graph for this function:| ilStudyProgrammeAssignmentDBRepository::readByUsrIdAndPrgId | ( | int | $usr_id, |
| int | $prg_id | ||
| ) |
| ilException |
Definition at line 97 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References assignmentByRow(), and loadByFilterDB().
Here is the call graph for this function:| ilStudyProgrammeAssignmentDBRepository::readDueToManuelRestart | ( | int | $days_before_end | ) |
Get all assignments due to restart and not restrted yet.
| Exception |
Implements ilStudyProgrammeAssignmentRepository.
Definition at line 185 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References assignmentByRow(), and loadDueToManuelRestart().
Here is the call graph for this function:| ilStudyProgrammeAssignmentDBRepository::readDueToRestart | ( | ) |
Get all assignments due to restart and not restrted yet.
| ilException |
Implements ilStudyProgrammeAssignmentRepository.
Definition at line 113 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References assignmentByRow(), and loadDueToRestart().
Here is the call graph for this function:| ilStudyProgrammeAssignmentDBRepository::readDueToRestartAndMail | ( | ) |
Definition at line 122 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References assignmentByRow(), and loadDueToRestartAndMail().
Here is the call graph for this function:| ilStudyProgrammeAssignmentDBRepository::reminderSendFor | ( | int | $assignment_id | ) |
Definition at line 246 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| ilStudyProgrammeAssignmentDBRepository::update | ( | ilStudyProgrammeAssignment | $assignment | ) |
Update settings belonging to a SP-Object.Will throw if the record does not exist yet.
Implements ilStudyProgrammeAssignmentRepository.
Definition at line 224 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References ilStudyProgrammeAssignment\DATE_TIME_FORMAT, ilStudyProgrammeAssignment\getId(), ilStudyProgrammeAssignment\getLastChange(), ilStudyProgrammeAssignment\getLastChangeBy(), ilStudyProgrammeAssignment\getRestartDate(), ilStudyProgrammeAssignment\getRestartedAssignmentId(), ilStudyProgrammeAssignment\getRootId(), ilStudyProgrammeAssignment\getUserId(), and updatedRowDB().
Here is the call graph for this function:
|
protected |
Definition at line 361 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by update().
Here is the caller graph for this function:
|
protected |
Definition at line 9 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by __construct(), and getDashboardInstancesforUser().
| const ilStudyProgrammeAssignmentDBRepository::FIELD_ID = 'id' |
Definition at line 13 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by getDashboardInstancesforUser(), and ilStudyProgrammeAssignmentRepositoryTest\tearDownAfterClass().
| const ilStudyProgrammeAssignmentDBRepository::FIELD_LAST_CHANGE = 'last_change' |
Definition at line 16 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| const ilStudyProgrammeAssignmentDBRepository::FIELD_LAST_CHANGE_BY = 'last_change_by' |
Definition at line 17 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| const ilStudyProgrammeAssignmentDBRepository::FIELD_RESTART_DATE = 'restart_date' |
Definition at line 18 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| const ilStudyProgrammeAssignmentDBRepository::FIELD_RESTART_MAIL = 'restart_mail_send' |
Definition at line 20 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| const ilStudyProgrammeAssignmentDBRepository::FIELD_RESTARTED_ASSIGNMENT_ID = 'restarted_assignment_id' |
Definition at line 19 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| const ilStudyProgrammeAssignmentDBRepository::FIELD_ROOT_PRG_ID = 'root_prg_id' |
Definition at line 15 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| const ilStudyProgrammeAssignmentDBRepository::FIELD_USR_ID = 'usr_id' |
Definition at line 14 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| const ilStudyProgrammeAssignmentDBRepository::TABLE = 'prg_usr_assignments' |
Definition at line 11 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by ilStudyProgrammeMembersTableGUI\getFrom(), ilStudyProgrammeAssignmentRepositoryTest\tearDownAfterClass(), ilStudyProgrammeUserAssignmentTest\testDeassignRemovesEntriesInPrgUsrAssignment(), and ilStudyProgrammeUserAssignmentTest\testDeleteOfProgrammeRemovesEntriesInPrgUsrAssignment().