\EHReport

EHReport Class The EHREport class works as an aggreageted from other objects and should contain all data to be displayed in the PDF report. For scalar type data that are set once and are not changed later, the PlaceHolders array can be used this an associative array that contain arbitrary data to be displayed in the report.

Summary

Methods
Properties
Constants
__construct()
setPlaceHolder()
getPlaceHolder()
getExamId()
setExamId()
getParticipantsResult()
setParticipantsResult()
getGradingKey()
setGradingKey()
getAllPlaceHolders()
getReportName()
setReportName()
getParticipantTotalPointsArray()
getParticipantsResultByGrade()
getParticipantResultById()
getParticipantsByFailedPassed()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$m_sReportName
$m_nExamId
$m_aParticipants
$m_oGradingKey
$m_aPlaceHolders
N/A

Properties

$m_sReportName

$m_sReportName

$m_nExamId

$m_nExamId

$m_aParticipants

$m_aParticipants

$m_oGradingKey

$m_oGradingKey

$m_aPlaceHolders

$m_aPlaceHolders

Methods

__construct()

__construct()

setPlaceHolder()

setPlaceHolder( $name,  $value)

Parameters

$name
$value

getPlaceHolder()

getPlaceHolder( $name)

Parameters

$name

getExamId()

getExamId()

setExamId()

setExamId( $nExamId)

Parameters

$nExamId

getParticipantsResult()

getParticipantsResult()

setParticipantsResult()

setParticipantsResult( $aParticipants)

Parameters

$aParticipants

getGradingKey()

getGradingKey()

setGradingKey()

setGradingKey( $oGradindKey)

Parameters

$oGradindKey

getAllPlaceHolders()

getAllPlaceHolders()

getReportName()

getReportName()

setReportName()

setReportName( $m_sReportName)

Parameters

$m_sReportName

getParticipantTotalPointsArray()

getParticipantTotalPointsArray()

The getParticipantTotalPointsArray fucntion builds an array with the total points obtained by each participant, it is useful for some calculation as the mean and median.

getParticipantsResultByGrade()

getParticipantsResultByGrade()

getParticipantsResultByGrade Returns an array with the grade name as key and the number of participants that got such grade as the value. For instance : 'A' => 3 'B => 10

getParticipantResultById()

getParticipantResultById( $pId)

Returns the participantResult object having the id given.

Parameters

$pId

getParticipantsByFailedPassed()

getParticipantsByFailedPassed( $cVal)

Returns the participants based on if they passed or failed the exam,

@parameters: if $cVal 0 returns an associative array with two elements 'passed' and 'failed', 'passed' is an array with all passed participants and 'failed a an array with all 'failed' participants. if $cVal 1 returns an array of all passed participant if $cVal 2 returns an array of all failed participant.

Parameters

$cVal