ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Storage implementation for ilStudyProgrammeUserProgress. More...
Public Member Functions | |
__construct (ilStudyProgrammeProgressRepository $progress_repository, ilStudyProgrammeAssignmentRepository $assignment_repository, ilLanguage $lng, ilStudyProgrammeEvents $events) | |
getInstance ($a_assignment_id, $a_program_id, $a_user_id) | |
Get an instance. More... | |
getInstanceById ($a_prgrs_id) | |
Get an instance by progress id. More... | |
getInstancesForUser ($a_program_id, $a_user_id) | |
Get the instances that user has on program. More... | |
getInstanceForAssignment ($a_program_id, $a_assignment_id) | |
Get the instance for the assignment on the program. More... | |
getInstancesForAssignment ($a_assignment_id) | |
Get the instance for an assignment. More... | |
getInstancesForProgram ($a_program_id) | |
Get the instances for a program node. More... | |
getExpiredSuccessfulInstances () | |
Get all expired and successful progresses. More... | |
getPassedDeadline () | |
getRiskyToFailInstances () | |
statusToRepr ($a_status) | |
Get a user readable representation of a status. More... | |
reminderSendFor (int $assignment_id) | |
Protected Member Functions | |
getObjectsByModels (array $models) | |
Storage implementation for ilStudyProgrammeUserProgress.
Definition at line 9 of file class.ilStudyProgrammeUserProgressDB.php.
ilStudyProgrammeUserProgressDB::__construct | ( | ilStudyProgrammeProgressRepository | $progress_repository, |
ilStudyProgrammeAssignmentRepository | $assignment_repository, | ||
ilLanguage | $lng, | ||
ilStudyProgrammeEvents | $events | ||
) |
ilStudyProgrammeUserProgressDB::getExpiredSuccessfulInstances | ( | ) |
Get all expired and successful progresses.
Definition at line 143 of file class.ilStudyProgrammeUserProgressDB.php.
References getObjectsByModels().
ilStudyProgrammeUserProgressDB::getInstance | ( | $a_assignment_id, | |
$a_program_id, | |||
$a_user_id | |||
) |
Get an instance.
Just wraps constructor.
ilException |
int | $a_assignment_id | |
int | $a_program_id | |
int | $a_user_id |
Definition at line 32 of file class.ilStudyProgrammeUserProgressDB.php.
ilStudyProgrammeUserProgressDB::getInstanceById | ( | $a_prgrs_id | ) |
Get an instance by progress id.
int | $a_prgrs_id |
Definition at line 49 of file class.ilStudyProgrammeUserProgressDB.php.
ilStudyProgrammeUserProgressDB::getInstanceForAssignment | ( | $a_program_id, | |
$a_assignment_id | |||
) |
Get the instance for the assignment on the program.
Throws when the node does not belong to the assignment.
ilException |
int | $a_program_id | |
int | $a_user_id |
Definition at line 89 of file class.ilStudyProgrammeUserProgressDB.php.
ilStudyProgrammeUserProgressDB::getInstancesForAssignment | ( | $a_assignment_id | ) |
Get the instance for an assignment.
Throws when the node does not belong to the assignment.
ilException |
int | $a_program_id | |
int | $a_user_id |
Definition at line 116 of file class.ilStudyProgrammeUserProgressDB.php.
References getObjectsByModels().
ilStudyProgrammeUserProgressDB::getInstancesForProgram | ( | $a_program_id | ) |
Get the instances for a program node.
int | $a_program_id |
Definition at line 133 of file class.ilStudyProgrammeUserProgressDB.php.
References getObjectsByModels().
ilStudyProgrammeUserProgressDB::getInstancesForUser | ( | $a_program_id, | |
$a_user_id | |||
) |
Get the instances that user has on program.
int | $a_program_id | |
int | $a_user_id |
Definition at line 70 of file class.ilStudyProgrammeUserProgressDB.php.
References getObjectsByModels().
|
protected |
Definition at line 161 of file class.ilStudyProgrammeUserProgressDB.php.
Referenced by getExpiredSuccessfulInstances(), getInstancesForAssignment(), getInstancesForProgram(), getInstancesForUser(), getPassedDeadline(), and getRiskyToFailInstances().
ilStudyProgrammeUserProgressDB::getPassedDeadline | ( | ) |
Definition at line 148 of file class.ilStudyProgrammeUserProgressDB.php.
References getObjectsByModels().
ilStudyProgrammeUserProgressDB::getRiskyToFailInstances | ( | ) |
Definition at line 156 of file class.ilStudyProgrammeUserProgressDB.php.
References getObjectsByModels().
ilStudyProgrammeUserProgressDB::reminderSendFor | ( | int | $assignment_id | ) |
Definition at line 199 of file class.ilStudyProgrammeUserProgressDB.php.
ilStudyProgrammeUserProgressDB::statusToRepr | ( | $a_status | ) |
Get a user readable representation of a status.
Definition at line 176 of file class.ilStudyProgrammeUserProgressDB.php.
References $lng, ilStudyProgrammeProgress\STATUS_ACCREDITED, ilStudyProgrammeProgress\STATUS_COMPLETED, ilStudyProgrammeProgress\STATUS_FAILED, ilStudyProgrammeProgress\STATUS_IN_PROGRESS, and ilStudyProgrammeProgress\STATUS_NOT_RELEVANT.