ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilAssLacQuestionProvider Class Reference

Class ilParserQuestionProvider. More...

+ Collaboration diagram for ilAssLacQuestionProvider:

Public Member Functions

 setQuestionId ($questionId)
 
 setQuestion (iQuestionCondition $question)
 
 getQuestion ()
 

Protected Attributes

 $question
 
 $questionId
 

Detailed Description

Class ilParserQuestionProvider.

Date: 04.12.13 Time: 15:04

Author
Thomas Joußen tjous.nosp@m.sen@.nosp@m.datab.nosp@m.ay.d.nosp@m.e

Definition at line 12 of file ilAssLacQuestionProvider.php.

Member Function Documentation

◆ getQuestion()

ilAssLacQuestionProvider::getQuestion ( )
Returns
iQuestionCondition

Definition at line 43 of file ilAssLacQuestionProvider.php.

References $question, and assQuestion\_instantiateQuestion().

44  {
45  if ($this->question === null && $this->questionId) {
46  require_once 'Modules/TestQuestionPool/classes/class.assQuestion.php';
47  $this->question = assQuestion::_instantiateQuestion($this->questionId);
48  }
49 
50  return $this->question;
51  }
static _instantiateQuestion($question_id)
+ Here is the call graph for this function:

◆ setQuestion()

ilAssLacQuestionProvider::setQuestion ( iQuestionCondition  $question)
Parameters
iQuestionCondition$question

Definition at line 35 of file ilAssLacQuestionProvider.php.

References $question.

36  {
37  $this->question = $question;
38  }

◆ setQuestionId()

ilAssLacQuestionProvider::setQuestionId (   $questionId)
Parameters
integer$questionId

Definition at line 27 of file ilAssLacQuestionProvider.php.

References $questionId.

28  {
29  $this->questionId = $questionId;
30  }

Field Documentation

◆ $question

ilAssLacQuestionProvider::$question
protected

Definition at line 17 of file ilAssLacQuestionProvider.php.

Referenced by getQuestion(), and setQuestion().

◆ $questionId

ilAssLacQuestionProvider::$questionId
protected

Definition at line 22 of file ilAssLacQuestionProvider.php.

Referenced by setQuestionId().


The documentation for this class was generated from the following file: