ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Exercise peer review. More...
Public Member Functions | |
__construct (ilExAssignment $a_assignment) | |
hasPeerReviewGroups () | |
resetPeerReviews () | |
validatePeerReviewGroups () | |
getPeerReviewValues ($a_giver_id, $a_peer_id) | |
getPeerReviewsByGiver ($a_user_id) | |
getPeerMaskedId ($a_giver_id, $a_peer_id) | |
getPeerReviewsByPeerId ($a_user_id, $a_only_valid=false) | |
getAllPeerReviews ($a_only_valid=true) | |
hasPeerReviewAccess ($a_peer_id) | |
updatePeerReviewTimestamp ($a_peer_id) | |
updatePeerReview ($a_peer_id, array $a_values) | |
countGivenFeedback ($a_validate=true, $a_user_id=null) | |
getNumberOfMissingFeedbacksForReceived () | |
isFeedbackValidForPassed ($a_user_id) | |
Protected Member Functions | |
getValidPeerReviewUsers () | |
initPeerReviews () | |
validatePeerReview (array $a_data) | |
getMaxPossibleFeedbacks () | |
Protected Attributes | |
$db | |
$user | |
$assignment | |
$assignment_id | |
Exercise peer review.
Definition at line 10 of file class.ilExPeerReview.php.
ilExPeerReview::__construct | ( | ilExAssignment | $a_assignment | ) |
Definition at line 25 of file class.ilExPeerReview.php.
References $DIC, ilExAssignment\getId(), and user().
ilExPeerReview::countGivenFeedback | ( | $a_validate = true , |
|
$a_user_id = null |
|||
) |
Definition at line 404 of file class.ilExPeerReview.php.
References $db, $ilDB, $ilUser, $row, $user, and validatePeerReview().
Referenced by getNumberOfMissingFeedbacksForReceived(), and isFeedbackValidForPassed().
ilExPeerReview::getAllPeerReviews | ( | $a_only_valid = true | ) |
Definition at line 342 of file class.ilExPeerReview.php.
References $db, $ilDB, $res, $row, $valid, array, and validatePeerReview().
Referenced by resetPeerReviews(), and validatePeerReviewGroups().
|
protected |
Definition at line 431 of file class.ilExPeerReview.php.
Referenced by getNumberOfMissingFeedbacksForReceived(), and isFeedbackValidForPassed().
ilExPeerReview::getNumberOfMissingFeedbacksForReceived | ( | ) |
Definition at line 444 of file class.ilExPeerReview.php.
References countGivenFeedback(), and getMaxPossibleFeedbacks().
ilExPeerReview::getPeerMaskedId | ( | $a_giver_id, | |
$a_peer_id | |||
) |
Definition at line 266 of file class.ilExPeerReview.php.
References getPeerReviewsByGiver().
ilExPeerReview::getPeerReviewsByGiver | ( | $a_user_id | ) |
Definition at line 244 of file class.ilExPeerReview.php.
References $db, $ilDB, $res, $row, array, and initPeerReviews().
Referenced by getPeerMaskedId(), and getPeerReviewValues().
ilExPeerReview::getPeerReviewsByPeerId | ( | $a_user_id, | |
$a_only_valid = false |
|||
) |
Definition at line 317 of file class.ilExPeerReview.php.
References $db, $ilDB, $res, $row, array, and validatePeerReview().
ilExPeerReview::getPeerReviewValues | ( | $a_giver_id, | |
$a_peer_id | |||
) |
Definition at line 222 of file class.ilExPeerReview.php.
References $data, array, and getPeerReviewsByGiver().
|
protected |
Definition at line 46 of file class.ilExPeerReview.php.
References $db, $ilDB, $row, and array.
Referenced by initPeerReviews(), and validatePeerReviewGroups().
ilExPeerReview::hasPeerReviewAccess | ( | $a_peer_id | ) |
ilExPeerReview::hasPeerReviewGroups | ( | ) |
Definition at line 35 of file class.ilExPeerReview.php.
Referenced by initPeerReviews(), resetPeerReviews(), and validatePeerReviewGroups().
|
protected |
Definition at line 64 of file class.ilExPeerReview.php.
References $db, $ilDB, array, getValidPeerReviewUsers(), and hasPeerReviewGroups().
Referenced by getPeerReviewsByGiver().
ilExPeerReview::isFeedbackValidForPassed | ( | $a_user_id | ) |
Definition at line 466 of file class.ilExPeerReview.php.
References countGivenFeedback(), getMaxPossibleFeedbacks(), ilExAssignment\PEER_REVIEW_VALID_ALL, ilExAssignment\PEER_REVIEW_VALID_NONE, and ilExAssignment\PEER_REVIEW_VALID_ONE.
ilExPeerReview::resetPeerReviews | ( | ) |
Definition at line 143 of file class.ilExPeerReview.php.
References $db, $ilDB, array, getAllPeerReviews(), and hasPeerReviewGroups().
ilExPeerReview::updatePeerReview | ( | $a_peer_id, | |
array | $a_values | ||
) |
Definition at line 389 of file class.ilExPeerReview.php.
References $db, $ilDB, $ilUser, $user, and ilUtil\now().
ilExPeerReview::updatePeerReviewTimestamp | ( | $a_peer_id | ) |
Definition at line 377 of file class.ilExPeerReview.php.
References $db, $ilDB, $ilUser, $user, and ilUtil\now().
|
protected |
Definition at line 275 of file class.ilExPeerReview.php.
Referenced by countGivenFeedback(), getAllPeerReviews(), and getPeerReviewsByPeerId().
ilExPeerReview::validatePeerReviewGroups | ( | ) |
Definition at line 169 of file class.ilExPeerReview.php.
References $valid, ilExerciseMembers\_getMembers(), array, getAllPeerReviews(), getValidPeerReviewUsers(), and hasPeerReviewGroups().
|
protected |
Definition at line 22 of file class.ilExPeerReview.php.
|
protected |
Definition at line 23 of file class.ilExPeerReview.php.
|
protected |
Definition at line 15 of file class.ilExPeerReview.php.
Referenced by countGivenFeedback(), getAllPeerReviews(), getMaxPossibleFeedbacks(), getPeerReviewsByGiver(), getPeerReviewsByPeerId(), getValidPeerReviewUsers(), hasPeerReviewAccess(), hasPeerReviewGroups(), initPeerReviews(), resetPeerReviews(), updatePeerReview(), and updatePeerReviewTimestamp().
|
protected |
Definition at line 20 of file class.ilExPeerReview.php.
Referenced by countGivenFeedback(), hasPeerReviewAccess(), updatePeerReview(), and updatePeerReviewTimestamp().