ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
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="") | |
callPdfGeneration ($a_url, $a_suffix, $a_filename, $a_return=false) | |
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... | |
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, $ilCtrl, $lng, $tpl, determineAppraiseeId(), ilLoggerFactory\getLogger(), ilObjSurvey\MODE_SELF_EVAL, ui(), and user().
ilSurveyEvaluationGUI::addApprSelectionToToolbar | ( | ) |
Add appraisee selection to toolbar.
Definition at line 1154 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 687 of file class.ilSurveyEvaluationGUI.php.
References $format, $tpl, ilModalGUI\getInstance(), and TYPE_SPSS.
Referenced by evaluation(), and evaluationuser().
ilSurveyEvaluationGUI::callPdfGeneration | ( | $a_url, | |
$a_suffix, | |||
$a_filename, | |||
$a_return = false |
|||
) |
Definition at line 1781 of file class.ilSurveyEvaluationGUI.php.
References $log, ilSession\_writeData(), ilLogLevel\DEBUG, ilUtil\deliverFile(), ilLoggerFactory\getLogger(), ilLoggerFactory\getRootLogger(), ILIAS_HTTP_PATH, ilUtil\ilTempnam(), and ilUtil\isWindows().
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 313 of file class.ilSurveyEvaluationGUI.php.
References $ctrl, $ilCtrl, and $tree.
Referenced by checkEvaluationAccess().
ilSurveyEvaluationGUI::checkAnonymizedEvaluationAccess | ( | ) |
Show the detailed evaluation.
Show the detailed evaluation
private
Definition at line 238 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 294 of file class.ilSurveyEvaluationGUI.php.
References $_GET, $_POST, $_SESSION, cancelEvaluationAccess(), evaluation(), and ilUtil\sendFailure().
ilSurveyEvaluationGUI::competenceEval | ( | ) |
Competence Evaluation.
Definition at line 1544 of file class.ilSurveyEvaluationGUI.php.
References $_GET, $_POST, $appr_id, $ctrl, $ilCtrl, $ilUser, $lng, $object, $tabs, $toolbar, $tpl, $user, addApprSelectionToToolbar(), getAppraiseeId(), ilSkillProfile\getProfilesOfUser(), and ilObjSurvey\MODE_SELF_EVAL.
ilSurveyEvaluationGUI::determineAppraiseeId | ( | ) |
Determine appraisee id.
Definition at line 189 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 1694 of file class.ilSurveyEvaluationGUI.php.
References $_GET, and renderChartOnly().
ilSurveyEvaluationGUI::evaluation | ( | $details = 0 , |
|
$pdf = false , |
|||
$return_pdf = false |
|||
) |
Definition at line 727 of file class.ilSurveyEvaluationGUI.php.
References $_POST, $appr_id, $data, $rbacsystem, $results, $toolbar, $tree, $url, 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, renderDetails(), ilUtil\sendFailure(), and ilDatePresentation\setUseRelativeDates().
Referenced by checkEvaluationAccess(), evaluationdetails(), evaluationdetailspdf(), and evaluationpdf().
ilSurveyEvaluationGUI::evaluationdetails | ( | ) |
Show the detailed evaluation.
Show the detailed evaluation
private
Definition at line 333 of file class.ilSurveyEvaluationGUI.php.
References evaluation().
ilSurveyEvaluationGUI::evaluationdetailspdf | ( | ) |
Definition at line 1689 of file class.ilSurveyEvaluationGUI.php.
References evaluation().
ilSurveyEvaluationGUI::evaluationpdf | ( | ) |
Definition at line 1684 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 1403 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 338 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 661 of file class.ilSurveyEvaluationGUI.php.
References $_POST, and exportCumulatedResults().
ilSurveyEvaluationGUI::exportDetailData | ( | ) |
Definition at line 671 of file class.ilSurveyEvaluationGUI.php.
References $_POST, and exportCumulatedResults().
ilSurveyEvaluationGUI::exportEvaluationUser | ( | ) |
Definition at line 1247 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 467 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 1455 of file class.ilSurveyEvaluationGUI.php.
Referenced by exportEvaluationUser(), and parseUserSpecificResults().
ilSurveyEvaluationGUI::generateAndSendPDF | ( | $html, | |
$filename = "" |
|||
) |
$html | |
$filename |
Exception |
Definition at line 1763 of file class.ilSurveyEvaluationGUI.php.
References $filename, ILIAS_HTTP_PATH, and ilHtmlToPdfTransformerFactory\PDF_OUTPUT_DOWNLOAD.
Referenced by evaluation(), and renderChartOnly().
ilSurveyEvaluationGUI::getAppraiseeId | ( | ) |
Get appraisee id.
Definition at line 181 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 |
Check if user can view results granted by rbac or positions.
Definition at line 1679 of file class.ilSurveyEvaluationGUI.php.
Referenced by evaluation(), evaluationuser(), and setEvalSubtabs().
|
protected |
Definition at line 583 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 1484 of file class.ilSurveyEvaluationGUI.php.
References $data, $user, SurveyQuestion\_instanciateQuestionEvaluation(), and filterSurveyParticipantsByAccess().
Referenced by evaluationuser().
ilSurveyEvaluationGUI::printEvaluation | ( | ) |
Definition at line 681 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 1217 of file class.ilSurveyEvaluationGUI.php.
Referenced by exportCumulatedResults(), and exportEvaluationUser().
ilSurveyEvaluationGUI::renderChartOnly | ( | ) |
Definition at line 1704 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 978 of file class.ilSurveyEvaluationGUI.php.
References $_GET, Vendor\Package\$b, $cols, $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 171 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().
|
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(), determineAppraiseeId(), and evaluation().
|
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(), and evaluationuser().
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.