\EHSoapReportMapper

EHSoapReporMapper Gathers all necesery information that will be displayed in the HTML report to crate a EHReport object. It implements the interface EHReportMapper by using the SOAP EvaExam interface to retrieve all the data.

Summary

Methods
Properties
Constants
__construct()
setSoapClient()
getSoapClient()
buildReport()
getGradingKey()
readCsvResults()
collectExamInformation()
getExamsByUser()
getCsvSeparator()
setCsvSeparator()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$m_oSoapClient
$m_sCsvSeparator
N/A

Properties

$m_oSoapClient

$m_oSoapClient

$m_sCsvSeparator

$m_sCsvSeparator

Methods

__construct()

__construct()

setSoapClient()

setSoapClient( $soapClient)

Parameters

$soapClient

getSoapClient()

getSoapClient()

buildReport()

buildReport( $examId,  $EHReport)

buildReport function wrapps the construction of EHReport method, returns null if the exam does not exist, is not open, or the results from the CSV file could not be correctly read.

Parameters

$examId
$EHReport

getGradingKey()

getGradingKey( $nKeyId)

getGradingKey returns a EHGraingKey object build with the information from a grading key existing in EvaExam. Use the soap function also called GetGradingKey and receives as parameter the grading key id.

Parameters

$nKeyId

readCsvResults()

readCsvResults( $examId,  $isOnline,  $hasNote,  $fMinThreshold,  $gradingKey)

Parameters

$examId
$isOnline
$hasNote
$fMinThreshold
$gradingKey

collectExamInformation()

collectExamInformation( $examId, \EHReport $EHReport)

collecExamInformation maps all values returned from the 'GetExam' soap function to the corresponding placeholders in the EHReport object.

Parameters

$examId
\EHReport $EHReport

getExamsByUser()

getExamsByUser( $userId)

Returns an array of soap response objects each corresponding to an exams for the current user, NOTE: This are not EHReport objects, and do not have any GET or SET methods, the public members need to be called by its name directly, the response object correspond to the one returne vy the SOAP method GetExam.

Some of the mot importan variable names:

ExamId Status Name ExamCount FormId ShortName GradingKeyId

Parameters

$userId

getCsvSeparator()

getCsvSeparator()

setCsvSeparator()

setCsvSeparator( $sCsvSeparator)

Parameters

$sCsvSeparator