|
|
|
|
@ -10946,14 +10946,17 @@ class Exercise |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Returns true if the exercise is locked by percentage. an exercise attempt must be passed |
|
|
|
|
* Returns true if the exercise is locked by percentage. an exercise attempt must be passed. |
|
|
|
|
* |
|
|
|
|
* @param array $attemp |
|
|
|
|
* |
|
|
|
|
* @return bool |
|
|
|
|
*/ |
|
|
|
|
public function isBlockedByPercentage($attemp = []){ |
|
|
|
|
if(empty($attemp)) return false; |
|
|
|
|
public function isBlockedByPercentage($attemp = []) |
|
|
|
|
{ |
|
|
|
|
if (empty($attemp)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
$extraFieldValue = new ExtraFieldValue('exercise'); |
|
|
|
|
$blockExercise = $extraFieldValue->get_values_by_handler_and_field_variable( |
|
|
|
|
$this->iId, |
|
|
|
|
@ -10970,7 +10973,6 @@ class Exercise |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* When a student completes the number of attempts and fails the exam, she is enrolled in a series of remedial |
|
|
|
|
* courses BT#18165. |
|
|
|
|
|