Class ilUserQuestionResult.
More...
◆ __construct()
ilUserQuestionResult::__construct |
( |
|
$question, |
|
|
|
$active_id, |
|
|
|
$pass |
|
) |
| |
◆ addKeyValue()
ilUserQuestionResult::addKeyValue |
( |
|
$key, |
|
|
|
$value |
|
) |
| |
- Parameters
-
Definition at line 57 of file class.ilUserQuestionResult.php.
References array.
59 $this->solutions[] =
array(
60 self::$USER_SOLUTION_IDENTIFIER_KEY => $key,
61 self::$USER_SOLUTION_IDENTIFIER_VALUE => $value
Create styles array
The data for the language used.
◆ getReachedPercentage()
ilUserQuestionResult::getReachedPercentage |
( |
| ) |
|
◆ getSolutionForKey()
ilUserQuestionResult::getSolutionForKey |
( |
|
$key | ) |
|
- Parameters
-
- Returns
- array
Definition at line 117 of file class.ilUserQuestionResult.php.
119 foreach($this->solutions as $solution)
121 if($solution[self::$USER_SOLUTION_IDENTIFIER_KEY] == $key)
◆ getSolutions()
ilUserQuestionResult::getSolutions |
( |
| ) |
|
◆ getUserSolutionsByIdentifier()
ilUserQuestionResult::getUserSolutionsByIdentifier |
( |
|
$identifier | ) |
|
- Parameters
-
- Returns
- array
- Exceptions
-
Definition at line 86 of file class.ilUserQuestionResult.php.
References $solutions, and array.
89 $identifier != self::$USER_SOLUTION_IDENTIFIER_KEY &&
90 $identifier != self::$USER_SOLUTION_IDENTIFIER_VALUE
93 throw new Exception(sprintf(
"Unkown Identifier %s", $identifier));
97 foreach($this->solutions as $solution)
Create styles array
The data for the language used.
◆ hasSolutions()
ilUserQuestionResult::hasSolutions |
( |
| ) |
|
◆ removeByKey()
ilUserQuestionResult::removeByKey |
( |
|
$key | ) |
|
- Parameters
-
Definition at line 68 of file class.ilUserQuestionResult.php.
70 foreach($this->solutions as $array_key => $solution)
72 if($solution[self::$USER_SOLUTION_IDENTIFIER_KEY] == $key)
74 unset($this->solutions[$array_key]);
◆ setReachedPercentage()
ilUserQuestionResult::setReachedPercentage |
( |
|
$reached_percentage | ) |
|
◆ $active_id
ilUserQuestionResult::$active_id |
|
protected |
◆ $pass
ilUserQuestionResult::$pass |
|
protected |
◆ $question
ilUserQuestionResult::$question |
|
protected |
◆ $reached_percentage
ilUserQuestionResult::$reached_percentage |
|
protected |
◆ $solutions
ilUserQuestionResult::$solutions = array() |
|
protected |
◆ $USER_SOLUTION_IDENTIFIER_KEY
ilUserQuestionResult::$USER_SOLUTION_IDENTIFIER_KEY = "key" |
|
static |
◆ $USER_SOLUTION_IDENTIFIER_VALUE
ilUserQuestionResult::$USER_SOLUTION_IDENTIFIER_VALUE = "value" |
|
static |
The documentation for this class was generated from the following file: