This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.  
 More...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilUserQuestionResult
Date: 10.01.14 Time: 10:03 
- Author
 - Thomas Joußen tjous.nosp@m.sen@.nosp@m.datab.nosp@m.ay.d.nosp@m.e 
 
Definition at line 26 of file class.ilUserQuestionResult.php.
 
◆ __construct()
      
        
          | ilUserQuestionResult::__construct  | 
          ( | 
            | 
          $question,  | 
        
        
           | 
           | 
            | 
          $active_id,  | 
        
        
           | 
           | 
            | 
          $pass  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ addKeyValue()
      
        
          | ilUserQuestionResult::addKeyValue  | 
          ( | 
            | 
          $key,  | 
        
        
           | 
           | 
            | 
          $value  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
- Parameters
 - 
  
  
 
Definition at line 68 of file class.ilUserQuestionResult.php.
   70         $this->solutions[] = [
    71             self::$USER_SOLUTION_IDENTIFIER_KEY => $key,
    72             self::$USER_SOLUTION_IDENTIFIER_VALUE => $value
  
 
 
◆ getReachedPercentage()
      
        
          | ilUserQuestionResult::getReachedPercentage  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getSolutionForKey()
      
        
          | ilUserQuestionResult::getSolutionForKey  | 
          ( | 
            | 
          $key | ) | 
           | 
        
      
 
- Parameters
 - 
  
  
 
- Returns
 - array 
 
Definition at line 124 of file class.ilUserQuestionResult.php.
  126         foreach ($this->solutions as $solution) {
   127             if ($solution[self::$USER_SOLUTION_IDENTIFIER_KEY] == $key) {
  
 
 
◆ getSolutions()
      
        
          | ilUserQuestionResult::getSolutions  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getUserSolutionsByIdentifier()
      
        
          | ilUserQuestionResult::getUserSolutionsByIdentifier  | 
          ( | 
            | 
          $identifier | ) | 
           | 
        
      
 
- Parameters
 - 
  
  
 
- Returns
 - array 
 
- Exceptions
 - 
  
  
 
Definition at line 95 of file class.ilUserQuestionResult.php.
References $solutions.
   98             $identifier != self::$USER_SOLUTION_IDENTIFIER_KEY &&
    99             $identifier != self::$USER_SOLUTION_IDENTIFIER_VALUE
   101             throw new Exception(sprintf(
"Unkown Identifier %s", $identifier));
   105         foreach ($this->solutions as $solution) {
 
 
 
 
◆ hasSolutions()
      
        
          | ilUserQuestionResult::hasSolutions  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ removeByKey()
      
        
          | ilUserQuestionResult::removeByKey  | 
          ( | 
            | 
          $key | ) | 
           | 
        
      
 
- Parameters
 - 
  
  
 
Definition at line 79 of file class.ilUserQuestionResult.php.
   81         foreach ($this->solutions as $array_key => $solution) {
    82             if ($solution[self::$USER_SOLUTION_IDENTIFIER_KEY] == $key) {
    83                 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 = [] | 
         
       
   | 
  
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: