5include_once 
"Modules/Exercise/classes/class.ilExcCriteria.php";
 
   27                $tpl->addJavaScript(
"Modules/Exercise/js/ilExcPeerReview.js");
 
   28                $tpl->addOnLoadCode(
"il.ExcPeerReview.setAjax('".
 
   29                        $ilCtrl->getLinkTargetByClass(
"ilExPeerReviewGUI", 
"updateCritAjax", 
"", 
true, 
false).
 
   32                $field_id = 
"prccc_rating_".$this->getId();
 
   38                $this->form->addItem($input);   
 
   42                        array_key_exists(
"cmd", 
$_POST))
 
   47                $this->form_item = $input;
 
   53                        ? 
"peer_".(int)$this->
getId()
 
   59                include_once 
'./Services/Rating/classes/class.ilRatingGUI.php';
 
   65                        $this->getRatingSubType()
 
   67                $rating->setUserId($this->giver_id);
 
   69                $ajax_id = $this->
getId()
 
   73                if(!(
bool)$a_read_only)
 
   75                        $html = 
'<div class="crit_widget">'.
 
   76                                $rating->getHTML(
false, 
true, 
"il.ExcPeerReview.saveCrit(this, ".$this->peer_id.
", ".$ajax_id.
", %rating%)").                           
 
   81                        $html = $rating->getHTML(
false, 
false);         
 
   95                include_once 
'./Services/Rating/classes/class.ilRating.php';
 
  100                        $this->getRatingSubType(),
 
  107                return $this->
renderWidget($a_ass, $a_giver_id, $a_peer_id);                                    
 
  120                                        $this->form->getItemByPostVar(
"prccc_rating_".$this->
getId())->setAlert($lng->txt(
"msg_input_is_required"));
 
  130                include_once 
'./Services/Rating/classes/class.ilRating.php';
 
  135                        $this->getRatingSubType(),
 
  142                return $this->
renderWidget($this->ass, $this->giver_id, $this->peer_id, 
true);  
 
  147                include_once 
'./Services/Rating/classes/class.ilRating.php';
 
  152                        $this->getRatingSubType(),
 
An exception for terminatinating execution or to throw for unit testing.
Class ilExcCriteriaRating.
addToPeerReviewForm($a_value=null)
renderWidget($a_read_only=false)
importFromPeerReviewForm()
static writeRatingForUserAndObject($a_obj_id, $a_obj_type, $a_sub_obj_id, $a_sub_obj_type, $a_user_id, $a_rating, $a_category_id=0)
Write rating for a user and an object.
static getRatingForUserAndObject($a_obj_id, $a_obj_type, $a_sub_obj_id, $a_sub_obj_type, $a_user_id, $a_category_id=null)
Get rating for a user and an object.
static resetRatingForUserAndObject($a_obj_id, $a_obj_type, $a_sub_obj_id, $a_sub_obj_type, $a_user_id)
Reset rating for a user and an object.