ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Survey evaluation graphical output. More...
Public Member Functions | |
__construct ($a_object) | |
ilSurveyEvaluationGUI constructor More... | |
executeCommand () | |
execute command More... | |
getCommand ($cmd) | |
setEvalSubtabs () | |
Set the tabs for the evaluation output. More... | |
setAppraiseeId ($a_val) | |
Set appraisee id. More... | |
getAppraiseeId () | |
Get appraisee id. More... | |
determineAppraiseeId () | |
Determine appraisee id. More... | |
checkAnonymizedEvaluationAccess () | |
Show the detailed evaluation. More... | |
checkEvaluationAccess () | |
Checks the evaluation access after entering the survey access code. More... | |
cancelEvaluationAccess () | |
Cancels the input of the survey access code for evaluation access. More... | |
evaluationdetails () | |
Show the detailed evaluation. More... | |
exportCumulatedResults ($details=0) | |
exportData () | |
exportDetailData () | |
printEvaluation () | |
evaluation ($details=0, $pdf=false, $return_pdf=false) | |
addApprSelectionToToolbar () | |
Add appraisee selection to toolbar. More... | |
processCSVRow ($row, $quoteAll=false, $separator=";") | |
Processes an array as a CSV row and converts the array values to correct CSV values. More... | |
exportEvaluationUser () | |
evaluationuser () | |
Print the survey evaluation for a selected user. More... | |
competenceEval () | |
Competence Evaluation. More... | |
evaluationpdf () | |
evaluationdetailspdf () | |
downloadChart () | |
renderChartOnly () | |
generateAndSendPDF ($html, $filename="") | |
sumscore () | |
Show sum score table. More... | |
Data Fields | |
const | TYPE_XLS = "excel" |
const | TYPE_SPSS = "csv" |
const | EXCEL_SUBTITLE = "DDDDDD" |
$object | |
$lng | |
$tpl | |
$ctrl | |
$appr_id = null | |
Protected Member Functions | |
exportResultsDetailsExcel (ilExcel $a_excel, SurveyQuestionEvaluation $a_eval, $a_results, $a_do_title, $a_do_label) | |
Export details (excel only) More... | |
parseResultsToExcel (ilExcel $a_excel, ilSurveyEvaluationResults $a_results, &$a_excel_row, array $a_grid=null, array $a_text_answers=null, $a_include_mode=true) | |
buildExportModal ($a_id, $a_cmd) | |
renderDetails ($a_details_parts, $a_details_figure, array $a_qdata, SurveyQuestionEvaluation $a_eval, $a_results, $pdf) | |
Render details. More... | |
filterSurveyParticipantsByAccess ($a_finished_ids) | |
parseUserSpecificResults (array $a_finished_ids=null) | |
hasResultsAccess () | |
Check if user can view results granted by rbac or positions. More... | |
getSumScores (array $a_finished_ids=null) | |
Protected Attributes | |
$tabs | |
$access | |
$user | |
$rbacsystem | |
$tree | |
$toolbar | |
Survey evaluation graphical output.
The ilSurveyEvaluationGUI class creates the evaluation output for the ilObjSurveyGUI class. This saves some heap space because the ilObjSurveyGUI class will be smaller.
Definition at line 15 of file class.ilSurveyEvaluationGUI.php.
ilSurveyEvaluationGUI::__construct | ( | $a_object | ) |
ilSurveyEvaluationGUI constructor
The constructor takes possible arguments an creates an instance of the ilSurveyEvaluationGUI object.
object | $a_object | Associated ilObjSurvey class public |
Definition at line 66 of file class.ilSurveyEvaluationGUI.php.
References $DIC, $lng, $tpl, determineAppraiseeId(), ilLoggerFactory\getLogger(), ilObjSurvey\MODE_SELF_EVAL, ui(), and user().
ilSurveyEvaluationGUI::addApprSelectionToToolbar | ( | ) |
Add appraisee selection to toolbar.
Definition at line 1176 of file class.ilSurveyEvaluationGUI.php.
References $appr_id, $rbacsystem, $toolbar, ilObjUser\_lookupId(), getAppraiseeId(), ilSubmitButton\getInstance(), ilObjSurvey\MODE_360, ilObjSurvey\MODE_SELF_EVAL, ilObjSurvey\RESULTS_360_ALL, ilObjSurvey\RESULTS_SELF_EVAL_ALL, and ilUtil\sendFailure().
Referenced by competenceEval(), evaluation(), and evaluationuser().
|
protected |
Definition at line 695 of file class.ilSurveyEvaluationGUI.php.
References $format, $tpl, ilModalGUI\getInstance(), and TYPE_SPSS.
Referenced by evaluation(), evaluationuser(), and sumscore().
ilSurveyEvaluationGUI::cancelEvaluationAccess | ( | ) |
Cancels the input of the survey access code for evaluation access.
Cancels the input of the survey access code for evaluation access
private
Definition at line 321 of file class.ilSurveyEvaluationGUI.php.
Referenced by checkEvaluationAccess().
ilSurveyEvaluationGUI::checkAnonymizedEvaluationAccess | ( | ) |
Show the detailed evaluation.
Show the detailed evaluation
private
Definition at line 246 of file class.ilSurveyEvaluationGUI.php.
References $_GET, $_SESSION, $ilUser, $user, ilObjSurveyAccess\_hasEvaluationAccess(), and ilObject\_lookupObjId().
Referenced by evaluation().
ilSurveyEvaluationGUI::checkEvaluationAccess | ( | ) |
Checks the evaluation access after entering the survey access code.
Checks the evaluation access after entering the survey access code
private
Definition at line 302 of file class.ilSurveyEvaluationGUI.php.
References $_GET, $_POST, $_SESSION, cancelEvaluationAccess(), evaluation(), and ilUtil\sendFailure().
ilSurveyEvaluationGUI::competenceEval | ( | ) |
Competence Evaluation.
Definition at line 1566 of file class.ilSurveyEvaluationGUI.php.
References $_GET, $_POST, $appr_id, $ctrl, $ilUser, $lng, $object, $tabs, $toolbar, $tpl, $user, addApprSelectionToToolbar(), getAppraiseeId(), ilSkillProfile\getProfilesOfUser(), and ilObjSurvey\MODE_SELF_EVAL.
ilSurveyEvaluationGUI::determineAppraiseeId | ( | ) |
Determine appraisee id.
Definition at line 197 of file class.ilSurveyEvaluationGUI.php.
References $appr_id, $ilUser, $rbacsystem, $user, $valid, ilObjSurvey\RESULTS_360_ALL, and setAppraiseeId().
Referenced by __construct().
ilSurveyEvaluationGUI::downloadChart | ( | ) |
Definition at line 1716 of file class.ilSurveyEvaluationGUI.php.
References $_GET, and renderChartOnly().
ilSurveyEvaluationGUI::evaluation | ( | $details = 0 , |
|
$pdf = false , |
|||
$return_pdf = false |
|||
) |
Definition at line 735 of file class.ilSurveyEvaluationGUI.php.
References $_POST, $appr_id, $data, $results, $toolbar, $tree, $url, ilObject\_getIcon(), ilObjSurvey\_getQuestionblock(), ilLink\_getStaticLink(), SurveyQuestion\_instanciateQuestionEvaluation(), addApprSelectionToToolbar(), buildExportModal(), checkAnonymizedEvaluationAccess(), ilObjSurvey\EVALUATION_ACCESS_ALL, ilObjSurvey\EVALUATION_ACCESS_OFF, ilObjSurvey\EVALUATION_ACCESS_PARTICIPANTS, ilDatePresentation\formatDate(), generateAndSendPDF(), getAppraiseeId(), ilSubmitButton\getInstance(), ilLinkButton\getInstance(), hasResultsAccess(), IL_CAL_UNIX, ilObjSurvey\MODE_SELF_EVAL, renderDetails(), ilObjSurvey\RESULTS_SELF_EVAL_OWN, ilUtil\sendFailure(), ilDatePresentation\setUseRelativeDates(), and user().
Referenced by checkEvaluationAccess(), evaluationdetails(), evaluationdetailspdf(), and evaluationpdf().
ilSurveyEvaluationGUI::evaluationdetails | ( | ) |
Show the detailed evaluation.
Show the detailed evaluation
private
Definition at line 341 of file class.ilSurveyEvaluationGUI.php.
References evaluation().
ilSurveyEvaluationGUI::evaluationdetailspdf | ( | ) |
Definition at line 1711 of file class.ilSurveyEvaluationGUI.php.
References evaluation().
ilSurveyEvaluationGUI::evaluationpdf | ( | ) |
Definition at line 1706 of file class.ilSurveyEvaluationGUI.php.
References evaluation().
ilSurveyEvaluationGUI::evaluationuser | ( | ) |
Print the survey evaluation for a selected user.
Print the survey evaluation for a selected user
private
Definition at line 1425 of file class.ilSurveyEvaluationGUI.php.
References $access, $appr_id, $data, $toolbar, addApprSelectionToToolbar(), buildExportModal(), getAppraiseeId(), ilLinkButton\getInstance(), hasResultsAccess(), ilObjSurvey\MODE_SELF_EVAL, parseUserSpecificResults(), ilUtil\sendFailure(), and ilTable2GUI\setData().
ilSurveyEvaluationGUI::executeCommand | ( | ) |
execute command
Definition at line 96 of file class.ilSurveyEvaluationGUI.php.
References $ret, and getCommand().
ilSurveyEvaluationGUI::exportCumulatedResults | ( | $details = 0 | ) |
Definition at line 346 of file class.ilSurveyEvaluationGUI.php.
References $_POST, $appr_id, $type, SurveyQuestion\_instanciateQuestionEvaluation(), ilUtil\deliverData(), exit, exportResultsDetailsExcel(), ilUtil\getASCIIFilename(), processCSVRow(), and TYPE_SPSS.
Referenced by exportData(), and exportDetailData().
ilSurveyEvaluationGUI::exportData | ( | ) |
Definition at line 669 of file class.ilSurveyEvaluationGUI.php.
References $_POST, and exportCumulatedResults().
ilSurveyEvaluationGUI::exportDetailData | ( | ) |
Definition at line 679 of file class.ilSurveyEvaluationGUI.php.
References $_POST, and exportCumulatedResults().
ilSurveyEvaluationGUI::exportEvaluationUser | ( | ) |
Definition at line 1269 of file class.ilSurveyEvaluationGUI.php.
References $_POST, $appr_id, $rows, $user, SurveyQuestion\_instanciateQuestionEvaluation(), ilUtil\deliverData(), exit, filterSurveyParticipantsByAccess(), ilDatePresentation\formatDate(), ilUtil\getASCIIFilename(), IL_CAL_UNIX, processCSVRow(), ilDatePresentation\setUseRelativeDates(), and TYPE_SPSS.
|
protected |
Export details (excel only)
ilExcel | $a_excel | |
SurveyQuestionEvaluation | $a_eval | |
ilSurveyEvaluationResults | array | $a_results | |
bool | $a_do_title | |
bool | array | $a_do_label |
Definition at line 475 of file class.ilSurveyEvaluationGUI.php.
References SurveyQuestion\_getQuestionTypeName(), ilExcel\addSheet(), EXCEL_SUBTITLE, ilExcel\getCoordByColumnAndRow(), SurveyQuestionEvaluation\getExportGrid(), SurveyQuestionEvaluation\getTextAnswers(), parseResultsToExcel(), ilExcel\setBold(), ilExcel\setCell(), and ilExcel\setColors().
Referenced by exportCumulatedResults().
|
protected |
Definition at line 1477 of file class.ilSurveyEvaluationGUI.php.
Referenced by exportEvaluationUser(), getSumScores(), and parseUserSpecificResults().
ilSurveyEvaluationGUI::generateAndSendPDF | ( | $html, | |
$filename = "" |
|||
) |
$html | |
$filename |
Exception |
Definition at line 1785 of file class.ilSurveyEvaluationGUI.php.
References $filename, and ilHtmlToPdfTransformerFactory\PDF_OUTPUT_DOWNLOAD.
Referenced by evaluation(), and renderChartOnly().
ilSurveyEvaluationGUI::getAppraiseeId | ( | ) |
Get appraisee id.
Definition at line 189 of file class.ilSurveyEvaluationGUI.php.
References $appr_id.
Referenced by addApprSelectionToToolbar(), competenceEval(), evaluation(), evaluationuser(), and renderChartOnly().
ilSurveyEvaluationGUI::getCommand | ( | $cmd | ) |
Definition at line 120 of file class.ilSurveyEvaluationGUI.php.
Referenced by executeCommand().
|
protected |
Definition at line 1839 of file class.ilSurveyEvaluationGUI.php.
References SurveyQuestion\_instanciateQuestionEvaluation(), and filterSurveyParticipantsByAccess().
Referenced by sumscore().
|
protected |
Check if user can view results granted by rbac or positions.
Definition at line 1701 of file class.ilSurveyEvaluationGUI.php.
Referenced by evaluation(), evaluationuser(), setEvalSubtabs(), and sumscore().
|
protected |
Definition at line 591 of file class.ilSurveyEvaluationGUI.php.
References $cols, EXCEL_SUBTITLE, ilSurveyEvaluationResults\getMean(), ilSurveyEvaluationResults\getMedian(), ilSurveyEvaluationResults\getMedianAsText(), ilSurveyEvaluationResults\getModeNrOfSelections(), ilSurveyEvaluationResults\getModeValue(), ilSurveyEvaluationResults\getModeValueAsText(), ilExcel\setCell(), and ilExcel\setColors().
Referenced by exportResultsDetailsExcel().
|
protected |
Definition at line 1506 of file class.ilSurveyEvaluationGUI.php.
References $data, $user, SurveyQuestion\_instanciateQuestionEvaluation(), and filterSurveyParticipantsByAccess().
Referenced by evaluationuser().
ilSurveyEvaluationGUI::printEvaluation | ( | ) |
Definition at line 689 of file class.ilSurveyEvaluationGUI.php.
References ilUtil\sendInfo().
ilSurveyEvaluationGUI::processCSVRow | ( | $row, | |
$quoteAll = false , |
|||
$separator = ";" |
|||
) |
Processes an array as a CSV row and converts the array values to correct CSV values.
The "converted" array is returned
array | $row | The array containing the values for a CSV row |
string | $quoteAll | Indicates to quote every value (=TRUE) or only values containing quotes and separators (=FALSE, default) |
string | $separator | The value separator in the CSV row (used for quoting) (; = default) |
Definition at line 1239 of file class.ilSurveyEvaluationGUI.php.
Referenced by exportCumulatedResults(), and exportEvaluationUser().
ilSurveyEvaluationGUI::renderChartOnly | ( | ) |
Definition at line 1726 of file class.ilSurveyEvaluationGUI.php.
References $_GET, $appr_id, $tpl, SurveyQuestion\_getTitle(), SurveyQuestion\_instanciateQuestionEvaluation(), generateAndSendPDF(), and getAppraiseeId().
Referenced by downloadChart().
|
protected |
Render details.
string | $a_details_parts | |
string | $a_details_figure | ilTemplate $a_tpl |
array | $a_qdata | |
SurveyQuestionEvaluation | $a_eval | |
ilSurveyEvaluationResults | array | $a_results |
Definition at line 1005 of file class.ilSurveyEvaluationGUI.php.
References $_GET, Vendor\Package\$b, $cols, $panel, $url, SurveyQuestion\_getQuestionTypeName(), ilAccordionGUI\FORCE_ALL_OPEN, SurveyQuestionEvaluation\getChart(), SurveyQuestionEvaluation\getGrid(), SurveyQuestionEvaluation\getTextAnswers(), and ui().
Referenced by evaluation().
ilSurveyEvaluationGUI::setAppraiseeId | ( | $a_val | ) |
Set appraisee id.
int | $a_val | appraisee id |
Definition at line 179 of file class.ilSurveyEvaluationGUI.php.
Referenced by determineAppraiseeId().
ilSurveyEvaluationGUI::setEvalSubtabs | ( | ) |
Set the tabs for the evaluation output.
private
Definition at line 130 of file class.ilSurveyEvaluationGUI.php.
References $access, $tabs, and hasResultsAccess().
ilSurveyEvaluationGUI::sumscore | ( | ) |
Show sum score table.
Definition at line 1808 of file class.ilSurveyEvaluationGUI.php.
References $toolbar, buildExportModal(), ilLinkButton\getInstance(), getSumScores(), hasResultsAccess(), ilObjSurvey\MODE_SELF_EVAL, ilUtil\sendFailure(), ilUtil\sendInfo(), and ilSumScoreTableGUI\setSumScores().
|
protected |
Definition at line 25 of file class.ilSurveyEvaluationGUI.php.
Referenced by evaluationuser(), and setEvalSubtabs().
ilSurveyEvaluationGUI::$appr_id = null |
Definition at line 56 of file class.ilSurveyEvaluationGUI.php.
Referenced by addApprSelectionToToolbar(), competenceEval(), determineAppraiseeId(), evaluation(), evaluationuser(), exportCumulatedResults(), exportEvaluationUser(), getAppraiseeId(), and renderChartOnly().
ilSurveyEvaluationGUI::$ctrl |
Definition at line 55 of file class.ilSurveyEvaluationGUI.php.
Referenced by cancelEvaluationAccess(), and competenceEval().
ilSurveyEvaluationGUI::$lng |
Definition at line 53 of file class.ilSurveyEvaluationGUI.php.
Referenced by __construct(), and competenceEval().
ilSurveyEvaluationGUI::$object |
Definition at line 52 of file class.ilSurveyEvaluationGUI.php.
Referenced by competenceEval().
|
protected |
Definition at line 35 of file class.ilSurveyEvaluationGUI.php.
Referenced by addApprSelectionToToolbar(), and determineAppraiseeId().
|
protected |
Definition at line 20 of file class.ilSurveyEvaluationGUI.php.
Referenced by competenceEval(), and setEvalSubtabs().
|
protected |
Definition at line 45 of file class.ilSurveyEvaluationGUI.php.
Referenced by addApprSelectionToToolbar(), competenceEval(), evaluation(), evaluationuser(), and sumscore().
ilSurveyEvaluationGUI::$tpl |
Definition at line 54 of file class.ilSurveyEvaluationGUI.php.
Referenced by __construct(), buildExportModal(), competenceEval(), and renderChartOnly().
|
protected |
Definition at line 40 of file class.ilSurveyEvaluationGUI.php.
Referenced by cancelEvaluationAccess(), and evaluation().
|
protected |
Definition at line 30 of file class.ilSurveyEvaluationGUI.php.
Referenced by checkAnonymizedEvaluationAccess(), competenceEval(), determineAppraiseeId(), exportEvaluationUser(), and parseUserSpecificResults().
const ilSurveyEvaluationGUI::EXCEL_SUBTITLE = "DDDDDD" |
Definition at line 50 of file class.ilSurveyEvaluationGUI.php.
Referenced by exportResultsDetailsExcel(), and parseResultsToExcel().
const ilSurveyEvaluationGUI::TYPE_SPSS = "csv" |
Definition at line 48 of file class.ilSurveyEvaluationGUI.php.
const ilSurveyEvaluationGUI::TYPE_XLS = "excel" |
Definition at line 47 of file class.ilSurveyEvaluationGUI.php.