ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestSequenceRandomQuestionSet Class Reference
+ Inheritance diagram for ilTestSequenceRandomQuestionSet:
+ Collaboration diagram for ilTestSequenceRandomQuestionSet:

Public Member Functions

 hasRandomQuestionsForPass ($active_id, $pass)
 !!! LEGACY CODE !!!
- Public Member Functions inherited from ilTestSequence
 ilTestSequence ($active_id, $pass, $randomtest)
 ilTestSequence constructor
 getActiveId ()
 createNewSequence ($max, $shuffle)
 loadQuestions (ilTestQuestionSetConfig $testQuestionSetConfig=null, $taxonomyFilterSelection=array())
 Loads the question mapping.
 loadFromDb ()
 Loads the sequence data for a given active id.
 saveToDb ()
 Saves the sequence data for a given pass to the database.
 postponeQuestion ($question_id)
 hideQuestion ($question_id)
 isPostponedQuestion ($question_id)
 isHiddenQuestion ($question_id)
 isPostponedSequence ($sequence)
 isHiddenSequence ($sequence)
 postponeSequence ($sequence)
 hideSequence ($sequence)
 getPositionOfSequence ($sequence)
 getUserQuestionCount ()
 getOrderedSequence ()
 getOrderedSequenceQuestions ()
 getUserSequence ()
 getUserSequenceQuestions ()
 getSequenceForQuestion ($question_id)
 getFirstSequence ()
 getLastSequence ()
 getNextSequence ($sequence)
 getPreviousSequence ($sequence)
 pcArrayShuffle ($array)
 Shuffles the values of a given array.
 getQuestionForSequence ($sequence)
getSequenceSummary ($obligationsFilter=false)
 getPass ()
 setPass ($pass)
 hasSequence ()
 hasHiddenQuestions ()
 clearHiddenQuestions ()
 hasStarted (ilTestSession $testSession)
 openQuestionExists ()
 questionExists ($questionId)

Additional Inherited Members

- Data Fields inherited from ilTestSequence
 $sequencedata
 $questions
 $active_id
 $pass
 $isRandomTest
- Protected Member Functions inherited from ilTestSequence
 getCorrectedSequence ($with_hidden_questions=FALSE)

Detailed Description

Definition at line 12 of file class.ilTestSequenceRandomQuestionSet.php.

Member Function Documentation

ilTestSequenceRandomQuestionSet::hasRandomQuestionsForPass (   $active_id,
  $pass 
)

!!! LEGACY CODE !!!

Checkes wheather a random test has already created questions for a given pass or not

private

Parameters
$active_idActive id of the test
$passPass of the test
Returns
boolean TRUE if the test already contains questions, FALSE otherwise

Definition at line 24 of file class.ilTestSequenceRandomQuestionSet.php.

References ilTestSequence\$active_id, ilTestSequence\$pass, and $result.

{
global $ilDB;
$result = $ilDB->queryF("SELECT test_random_question_id FROM tst_test_rnd_qst WHERE active_fi = %s AND pass = %s",
array('integer','integer'),
array($active_id, $pass)
);
return ($result->numRows() > 0) ? true : false;
}

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