|
ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Manages random mandatory assignments of an exercise. More...
Collaboration diagram for ilExcRandomAssignmentManager:Public Member Functions | |
| __construct (ilObjExercise $exc, ilExcRandomAssignmentDBRepository $rand_ass_repo, ilObjUser $user=null, ilLanguage $lng=null) | |
| Constructor. More... | |
| canBeDeactivated () | |
| Checks if the random assignment can be activated (if no learner has already submitted stuff) More... | |
| getDeniedDeactivationReasons () | |
| Get reasons for denied deactivation. More... | |
| isActivated () | |
| Is random assignment activated? More... | |
| getTotalNumberOfAssignments () | |
| Get total number of assignments. More... | |
| getNumberOfMandatoryAssignments () | |
| Get total number of mandatory assignments. More... | |
| needsStart () | |
| Needs current user to start the exercise (by selecting the random assignments)? More... | |
| getMandatoryAssignmentsOfUser ($user_id) | |
| Get mandatory assignments of user. More... | |
| startExercise () | |
| Start exercise. More... | |
| isAssignmentVisible (int $ass_id, int $user_id) | |
| Is assignment visible for user. More... | |
Data Fields | |
| const | DENIED_SUBMISSIONS = "has_submissions" |
| const | DENIED_PEER_REVIEWS = "has_peer_reviews" |
| const | DENIED_TEAM_ASSIGNMENTS = "has_team_assignments" |
Protected Member Functions | |
| getAssignmentSelection () | |
| Get random assignment selection. More... | |
Protected Attributes | |
| $exc | |
| $exc_id | |
| $user | |
| $rand_ass_repo | |
| $lng | |
| $submission_repo | |
Manages random mandatory assignments of an exercise.
(business logic)
Definition at line 12 of file class.ilExcRandomAssignmentManager.php.
| ilExcRandomAssignmentManager::__construct | ( | ilObjExercise | $exc, |
| ilExcRandomAssignmentDBRepository | $rand_ass_repo, | ||
| ilObjUser | $user = null, |
||
| ilLanguage | $lng = null |
||
| ) |
Constructor.
Definition at line 51 of file class.ilExcRandomAssignmentManager.php.
References $DIC, $exc, $lng, $rand_ass_repo, $user, and user().
Here is the call graph for this function:| ilExcRandomAssignmentManager::canBeDeactivated | ( | ) |
Checks if the random assignment can be activated (if no learner has already submitted stuff)
Definition at line 126 of file class.ilExcRandomAssignmentManager.php.
|
protected |
Get random assignment selection.
Definition at line 236 of file class.ilExcRandomAssignmentManager.php.
References $i, ilExAssignment\getInstancesByExercise(), and getNumberOfMandatoryAssignments().
Here is the call graph for this function:| ilExcRandomAssignmentManager::getDeniedDeactivationReasons | ( | ) |
Get reasons for denied deactivation.
Definition at line 136 of file class.ilExcRandomAssignmentManager.php.
References $lng, and DENIED_SUBMISSIONS.
| ilExcRandomAssignmentManager::getMandatoryAssignmentsOfUser | ( | $user_id | ) |
Get mandatory assignments of user.
| int | $user_id |
Definition at line 213 of file class.ilExcRandomAssignmentManager.php.
Referenced by isAssignmentVisible().
Here is the caller graph for this function:| ilExcRandomAssignmentManager::getNumberOfMandatoryAssignments | ( | ) |
Get total number of mandatory assignments.
Definition at line 172 of file class.ilExcRandomAssignmentManager.php.
Referenced by getAssignmentSelection().
Here is the caller graph for this function:| ilExcRandomAssignmentManager::getTotalNumberOfAssignments | ( | ) |
Get total number of assignments.
Definition at line 162 of file class.ilExcRandomAssignmentManager.php.
References ilExAssignment\getInstancesByExercise().
Here is the call graph for this function:| ilExcRandomAssignmentManager::isActivated | ( | ) |
Is random assignment activated?
Definition at line 152 of file class.ilExcRandomAssignmentManager.php.
References ilObjExercise\PASS_MODE_RANDOM.
Referenced by isAssignmentVisible(), and needsStart().
Here is the caller graph for this function:| ilExcRandomAssignmentManager::isAssignmentVisible | ( | int | $ass_id, |
| int | $user_id | ||
| ) |
Is assignment visible for user.
| int | $ass_id | |
| int | $user_id |
Definition at line 258 of file class.ilExcRandomAssignmentManager.php.
References getMandatoryAssignmentsOfUser(), and isActivated().
Here is the call graph for this function:| ilExcRandomAssignmentManager::needsStart | ( | ) |
Needs current user to start the exercise (by selecting the random assignments)?
Definition at line 196 of file class.ilExcRandomAssignmentManager.php.
References isActivated(), and user().
Referenced by startExercise().
Here is the call graph for this function:
Here is the caller graph for this function:| ilExcRandomAssignmentManager::startExercise | ( | ) |
Start exercise.
Definition at line 222 of file class.ilExcRandomAssignmentManager.php.
References needsStart(), and user().
Here is the call graph for this function:
|
protected |
Definition at line 21 of file class.ilExcRandomAssignmentManager.php.
Referenced by __construct().
|
protected |
Definition at line 26 of file class.ilExcRandomAssignmentManager.php.
|
protected |
Definition at line 41 of file class.ilExcRandomAssignmentManager.php.
Referenced by __construct(), and getDeniedDeactivationReasons().
|
protected |
Definition at line 36 of file class.ilExcRandomAssignmentManager.php.
Referenced by __construct().
|
protected |
Definition at line 46 of file class.ilExcRandomAssignmentManager.php.
|
protected |
Definition at line 31 of file class.ilExcRandomAssignmentManager.php.
Referenced by __construct().
| const ilExcRandomAssignmentManager::DENIED_PEER_REVIEWS = "has_peer_reviews" |
Definition at line 15 of file class.ilExcRandomAssignmentManager.php.
| const ilExcRandomAssignmentManager::DENIED_SUBMISSIONS = "has_submissions" |
Definition at line 14 of file class.ilExcRandomAssignmentManager.php.
Referenced by getDeniedDeactivationReasons().
| const ilExcRandomAssignmentManager::DENIED_TEAM_ASSIGNMENTS = "has_team_assignments" |
Definition at line 16 of file class.ilExcRandomAssignmentManager.php.