dokeos-exercise
[ class tree: dokeos-exercise ] [ index: dokeos-exercise ] [ all elements ]

Class: ExerciseResult

Source Location: /main/exercice/exercise_result.class.php

Class Overview


ExerciseResult class: This class allows to instantiate an object of type ExerciseResult


Author(s):

  • Yannick Warnier

Version:

  • $Id: $

Variables

Methods



Class Details

[line 30]
ExerciseResult class: This class allows to instantiate an object of type ExerciseResult

which allows you to export exercises results in multiple presentation forms




Tags:

author:  Yannick Warnier
version:  $Id: $
filesource:  Source Code for this file


[ Top ]


Class Variables

$exercises_list = array()

[line 32]



Tags:

access:  private

Type:   mixed


[ Top ]

$results = array()

[line 33]



Tags:

access:  private

Type:   mixed


[ Top ]



Class Methods


constructor ExerciseResult [line 38]

ExerciseResult ExerciseResult( [ $get_questions = false], [ $get_answers = false])

constructor of the class



Tags:

access:  public


Parameters:

   $get_questions  
   $get_answers  

[ Top ]

method exportCompleteReportCSV [line 220]

boolean exportCompleteReportCSV( [string $document_path = ''], [integer $user_id = null], boolean $export_user_fields)

Exports the complete report as a CSV file



Tags:

return:  False on error
access:  public


Parameters:

string   $document_path   Document path inside the document tool
integer   $user_id   Optional user ID
boolean   $export_user_fields   Whether to include user fields or not

[ Top ]

method exportCompleteReportXLS [line 301]

boolean exportCompleteReportXLS( [ $document_path = ''], [ $user_id = null], $export_user_fields)

Exports the complete report as an XLS file



Tags:

return:  False on error
access:  public


Parameters:

   $document_path  
   $user_id  
   $export_user_fields  

[ Top ]

method _getExercisesReporting [line 109]

void _getExercisesReporting( string $document_path, [integer $user_id = null])

Gets the results of all students (or just one student if access is limited)



Parameters:

string   $document_path   The document path (for HotPotatoes retrieval)
integer   $user_id   User ID. Optional. If no user ID is provided, we take all the results. Defauts to null

[ Top ]

method _readExerciseQuestionsList [line 85]

void _readExerciseQuestionsList( integer $e_id)

Gets the questions related to one exercise



Tags:

access:  private


Parameters:

integer   $e_id   Exercise ID

[ Top ]

method _readExercisesList [line 59]

array _readExercisesList( [boolean $only_visible = false])

Reads exercises information (minimal) from the data base



Tags:

return:  A list of exercises available
access:  private


Parameters:

boolean   $only_visible   Whether to get only visible exercises (true) or all of them (false). Defaults to false.

[ Top ]


Documentation generated on Thu, 12 Jun 2008 13:25:59 -0500 by phpDocumentor 1.4.1