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 $key, and 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 113 of file class.ilUserQuestionResult.php.
References $key.
115 foreach ($this->solutions as $solution) {
116 if ($solution[self::$USER_SOLUTION_IDENTIFIER_KEY] ==
$key) {
◆ getSolutions()
ilUserQuestionResult::getSolutions |
( |
| ) |
|
◆ getUserSolutionsByIdentifier()
ilUserQuestionResult::getUserSolutionsByIdentifier |
( |
|
$identifier | ) |
|
- Parameters
-
- Returns
- array
- Exceptions
-
Definition at line 84 of file class.ilUserQuestionResult.php.
References $solutions, and array.
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) {
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.
References $key.
70 foreach ($this->solutions as $array_key => $solution) {
71 if ($solution[self::$USER_SOLUTION_IDENTIFIER_KEY] ==
$key) {
72 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: