|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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... | |
| get (int $id) | |
Load settings belonging to a SP-Object.Will throw if the record does not exist yet.
| |
| getByUsrId (int $usr_id) | |
| Get all assignments of a user. More... | |
| getByPrgId (int $prg_id) | |
| Get all assignments to a prg. More... | |
| getByUsrIdAndPrgId (int $usr_id, int $prg_id) | |
| getDueToRestart () | |
Get all assignments due to restart and not restrted yet.
| |
| getDueToRestartAndMail () | |
| getDueToManuelRestart (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) | |
| deleteAllAssignmentsForProgrammeId (int $prg_obj_id) | |
| getTableAndFieldOfAssignmentIds () | |
| getInstanceById (int $id) | |
| getInstanceByModel (\ilStudyProgrammeAssignment $assignment) | |
| getInstancesOfUser (int $user_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... | |
| get (int $id) | |
| Load settings belonging to a SP-Object. More... | |
| getByUsrId (int $usr_id) | |
| Get all assignments of a user. More... | |
| getByPrgId (int $prg_id) | |
| Get all assignments to a prg. More... | |
| getDueToRestart () | |
| Get all assignments due to restart and not restrted yet. More... | |
| getDueToManuelRestart (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 3 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| ilStudyProgrammeAssignmentDBRepository::__construct | ( | ilDBInterface | $db | ) |
Definition at line 21 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References $db.
|
protected |
| ilException |
Definition at line 311 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References ilStudyProgrammeAssignment\DATE_TIME_FORMAT, and ilStudyProgrammeAssignment\withRootId().
Referenced by createFor(), get(), getByPrgId(), getByUsrId(), getByUsrIdAndPrgId(), getDashboardInstancesforUser(), getDueToManuelRestart(), getDueToRestart(), and getDueToRestartAndMail().
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 31 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 244 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References deleteDB().
Here is the call graph for this function:| ilStudyProgrammeAssignmentDBRepository::deleteAllAssignmentsForProgrammeId | ( | int | $prg_obj_id | ) |
Definition at line 392 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References $query.
|
protected |
Definition at line 381 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by delete().
Here is the caller graph for this function:| ilStudyProgrammeAssignmentDBRepository::get | ( | 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::getByPrgId | ( | 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::getByUsrId | ( | 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().
Referenced by getInstancesOfUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilStudyProgrammeAssignmentDBRepository::getByUsrIdAndPrgId | ( | 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::getDashboardInstancesforUser | ( | int | $usr_id | ) |
| ilException |
Definition at line 271 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References $db, $DIC, $res, $ret, assignmentByRow(), and FIELD_ID.
Here is the call graph for this function:| ilStudyProgrammeAssignmentDBRepository::getDueToManuelRestart | ( | int | $days_before_end | ) |
Get all assignments due to restart and not restrted yet.
| Exception |
Implements ilStudyProgrammeAssignmentRepository.
Definition at line 188 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References assignmentByRow(), and loadDueToManuelRestart().
Here is the call graph for this function:| ilStudyProgrammeAssignmentDBRepository::getDueToRestart | ( | ) |
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::getDueToRestartAndMail | ( | ) |
Definition at line 125 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References assignmentByRow(), and loadDueToRestartAndMail().
Here is the call graph for this function:
|
protected |
Definition at line 166 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:| ilStudyProgrammeAssignmentDBRepository::getInstanceById | ( | int | $id | ) |
Definition at line 411 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| ilStudyProgrammeAssignmentDBRepository::getInstanceByModel | ( | \ilStudyProgrammeAssignment | $assignment | ) |
Definition at line 416 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| ilStudyProgrammeAssignmentDBRepository::getInstancesOfUser | ( | int | $user_id | ) |
Definition at line 421 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References $DIC, $ret, ilObject\_getAllReferences(), and getByUsrId().
Here is the call graph for this function:
|
protected |
Definition at line 154 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by getDueToRestartBaseSQL(), and loadDueToManuelRestart().
Here is the caller graph for this function:| ilStudyProgrammeAssignmentDBRepository::getTableAndFieldOfAssignmentIds | ( | ) |
Definition at line 399 of file class.ilStudyProgrammeAssignmentDBRepository.php.
|
protected |
Definition at line 351 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by createFor().
Here is the caller graph for this function:
|
protected |
Definition at line 331 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References $res.
Referenced by get(), getByPrgId(), getByUsrId(), and getByUsrIdAndPrgId().
Here is the caller graph for this function:
|
protected |
| Exception |
Definition at line 200 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References $res, ilStudyProgrammeAssignment\DATE_FORMAT, getSQLHeader(), and ilStudyProgrammeAssignment\NO_RESTARTED_ASSIGNMENT.
Referenced by getDueToManuelRestart().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 134 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References $res, and getDueToRestartBaseSQL().
Referenced by getDueToRestart().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 143 of file class.ilStudyProgrammeAssignmentDBRepository.php.
References $res, and getDueToRestartBaseSQL().
Referenced by getDueToRestartAndMail().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 386 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by createFor().
Here is the caller graph for this function:| ilStudyProgrammeAssignmentDBRepository::reminderSendFor | ( | int | $assignment_id | ) |
Definition at line 249 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 227 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 367 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by update().
Here is the caller graph for this function:
|
protected |
Definition at line 8 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by __construct(), and getDashboardInstancesforUser().
| const ilStudyProgrammeAssignmentDBRepository::FIELD_ID = 'id' |
Definition at line 12 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by getDashboardInstancesforUser(), getTableAndFieldOfAssignmentIds(), and ilStudyProgrammeAssignmentRepositoryTest\tearDownAfterClass().
| const ilStudyProgrammeAssignmentDBRepository::FIELD_LAST_CHANGE = 'last_change' |
Definition at line 15 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| const ilStudyProgrammeAssignmentDBRepository::FIELD_LAST_CHANGE_BY = 'last_change_by' |
Definition at line 16 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| const ilStudyProgrammeAssignmentDBRepository::FIELD_RESTART_DATE = 'restart_date' |
Definition at line 17 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| const ilStudyProgrammeAssignmentDBRepository::FIELD_RESTART_MAIL = 'restart_mail_send' |
Definition at line 19 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| const ilStudyProgrammeAssignmentDBRepository::FIELD_RESTARTED_ASSIGNMENT_ID = 'restarted_assignment_id' |
Definition at line 18 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| const ilStudyProgrammeAssignmentDBRepository::FIELD_ROOT_PRG_ID = 'root_prg_id' |
Definition at line 14 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| const ilStudyProgrammeAssignmentDBRepository::FIELD_USR_ID = 'usr_id' |
Definition at line 13 of file class.ilStudyProgrammeAssignmentDBRepository.php.
| const ilStudyProgrammeAssignmentDBRepository::TABLE = 'prg_usr_assignments' |
Definition at line 10 of file class.ilStudyProgrammeAssignmentDBRepository.php.
Referenced by ilStudyProgrammeMembersTableGUI\getFrom(), getTableAndFieldOfAssignmentIds(), ilStudyProgrammeAssignmentRepositoryTest\tearDownAfterClass(), ilStudyProgrammeUserAssignmentTest\testDeassignRemovesEntriesInPrgUsrAssignment(), and ilStudyProgrammeUserAssignmentTest\testDeleteOfProgrammeRemovesEntriesInPrgUsrAssignment().