public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/quizcustomfeedback.php
/**
		 * Determine if the grading scores tag data matches the criteria for this particular
		 * message.
		 *
		 * @param Array $tagBucketList The list of tags and the grades for each.
		 *
		 * @return Boolean True if the criteria matches, false otherwise.
		 */
Determine if the grading scores tag data matches the criteria for this particular
message.

@param Array $tagBucketList The list of tags and the grades for each.

@return Boolean True if the criteria matches, false otherwise.
Determine if the grading scores tag data matches the criteria for this particular message . @param Array $tagBucketList The list of tags and the grades for each . @return Boolean True if the criteria matches false otherwise .
public function doesMessageMatchCriteria( $tagBucketList ) {
			if ( ! isset( $tagBucketList[ $this->feedbackMsgDetails->qfeedback_tag_id ] ) ) {
				return false;
			}
			$thisTagDetails = $tagBucketList[ $this->feedbackMsgDetails->qfeedback_tag_id ];
			switch ( $this->feedbackMsgDetails->qfeedback_score_type ) {
				case 'above':
					return $thisTagDetails['score_total'] > $this->feedbackMsgDetails->qfeedback_score_grade;
					break;
				case 'below':
					return $thisTagDetails['score_total'] <= $this->feedbackMsgDetails->qfeedback_score_grade;
					break;
			}
			return false;
		}
public function doesMessageMatchCriteria ( $ tagBucketList ) { if ( ! isset ( $ tagBucketList [ $ this -> feedbackMsgDetails -> qfeedback_tag_id ] ) ) { return false ; } $ thisTagDetails = $ tagBucketList [ $ this -> feedbackMsgDetails -> qfeedback_tag_id ] ; switch ( $ this -> feedbackMsgDetails -> qfeedback_score_type ) { case 'above' : return $ thisTagDetails [ 'score_total' ] > $ this -> feedbackMsgDetails -> qfeedback_score_grade ; break ; case 'below' : return $ thisTagDetails [ 'score_total' ] <= $ this -> feedbackMsgDetails -> qfeedback_score_grade ; break ; } return false ; }
Determine if the grading scores tag data matches the criteria for this particular
 message.
Determine if the grading scores tag data matches the criteria for this particular message .
// #### 1) Check to see if the details exist in the tag bucket. It may not // as we may have feedback, but not the associated tag score/grading. // #### 2) Check if the trigger grade is a match. // If we get here, we have an unknown score type. Default to false.