59 $this->solutions[] = array(
60 self::$USER_SOLUTION_IDENTIFIER_KEY =>
$key,
61 self::$USER_SOLUTION_IDENTIFIER_VALUE => $value
70 foreach ($this->solutions as $array_key => $solution) {
71 if ($solution[self::$USER_SOLUTION_IDENTIFIER_KEY] ==
$key) {
72 unset($this->solutions[$array_key]);
87 $identifier != self::$USER_SOLUTION_IDENTIFIER_KEY &&
88 $identifier != self::$USER_SOLUTION_IDENTIFIER_VALUE
90 throw new Exception(sprintf(
"Unkown Identifier %s", $identifier));
94 foreach ($this->solutions as $solution) {
115 foreach ($this->solutions as $solution) {
116 if ($solution[self::$USER_SOLUTION_IDENTIFIER_KEY] ==
$key) {
144 return count($this->solutions) > 0;
static $USER_SOLUTION_IDENTIFIER_KEY
getUserSolutionsByIdentifier($identifier)
Class ilUserQuestionResult.
static $USER_SOLUTION_IDENTIFIER_VALUE
addKeyValue($key, $value)
__construct($question, $active_id, $pass)
setReachedPercentage($reached_percentage)