ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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) | |
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... | |
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) | |
Render details. More... | |
parseUserSpecificResults (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, $ilCtrl, $lng, $tpl, array, determineAppraiseeId(), ilLoggerFactory\getLogger(), object, and user().
ilSurveyEvaluationGUI::addApprSelectionToToolbar | ( | ) |
Add appraisee selection to toolbar.
Definition at line 1094 of file class.ilSurveyEvaluationGUI.php.
References $appr_id, $options, $rbacsystem, $toolbar, array, getAppraiseeId(), ilSubmitButton\getInstance(), object, ilObjSurvey\RESULTS_360_ALL, ilUtil\sendFailure(), and ilSelectInputGUI\setOptions().
Referenced by competenceEval(), evaluation(), and evaluationuser().
|
protected |
Definition at line 687 of file class.ilSurveyEvaluationGUI.php.
References $form, $format, $tpl, array, ilModalGUI\getInstance(), ilSelectInputGUI\setOptions(), and TYPE_SPSS.
Referenced by evaluation(), and evaluationuser().
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 311 of file class.ilSurveyEvaluationGUI.php.
References $ctrl, $ilCtrl, $path, $tree, and object.
Referenced by checkEvaluationAccess().
ilSurveyEvaluationGUI::checkAnonymizedEvaluationAccess | ( | ) |
Show the detailed evaluation.
Show the detailed evaluation
private
Definition at line 235 of file class.ilSurveyEvaluationGUI.php.
References $_GET, $_SESSION, $ilUser, $user, ilObjSurveyAccess\_hasEvaluationAccess(), ilObject\_lookupObjId(), and object.
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 292 of file class.ilSurveyEvaluationGUI.php.
References $_GET, $_POST, $_SESSION, cancelEvaluationAccess(), evaluation(), object, and ilUtil\sendFailure().
ilSurveyEvaluationGUI::competenceEval | ( | ) |
Competence Evaluation.
Definition at line 1456 of file class.ilSurveyEvaluationGUI.php.
References $_GET, $_POST, $appr_id, $ctrl, $html, $id, $ilCtrl, $ilUser, $lng, $object, $tabs, $toolbar, $tpl, $user, addApprSelectionToToolbar(), array, getAppraiseeId(), ilSkillProfile\getProfilesOfUser(), object, and ilSelectInputGUI\setOptions().
ilSurveyEvaluationGUI::determineAppraiseeId | ( | ) |
Determine appraisee id.
Definition at line 188 of file class.ilSurveyEvaluationGUI.php.
References $appr_id, $ilUser, $rbacsystem, $user, $valid, array, object, ilObjSurvey\RESULTS_360_ALL, and setAppraiseeId().
Referenced by __construct().
ilSurveyEvaluationGUI::evaluation | ( | $details = 0 | ) |
Definition at line 729 of file class.ilSurveyEvaluationGUI.php.
References $_GET, $_POST, $appr_id, $data, $key, $list, $path, $rbacsystem, $results, $toolbar, $tree, ilObjSurvey\_getQuestionblock(), ilLink\_getStaticLink(), SurveyQuestion\_instanciateQuestionEvaluation(), addApprSelectionToToolbar(), array, buildExportModal(), checkAnonymizedEvaluationAccess(), ilObjSurvey\EVALUATION_ACCESS_ALL, ilObjSurvey\EVALUATION_ACCESS_OFF, ilObjSurvey\EVALUATION_ACCESS_PARTICIPANTS, ilDatePresentation\formatDate(), getAppraiseeId(), ilSubmitButton\getInstance(), ilLinkButton\getInstance(), IL_CAL_UNIX, object, renderDetails(), ilUtil\sendFailure(), ilSelectInputGUI\setOptions(), ilDatePresentation\setUseRelativeDates(), and time.
Referenced by checkEvaluationAccess(), and evaluationdetails().
ilSurveyEvaluationGUI::evaluationdetails | ( | ) |
Show the detailed evaluation.
Show the detailed evaluation
private
Definition at line 331 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 1337 of file class.ilSurveyEvaluationGUI.php.
References $access, $appr_id, $data, $toolbar, addApprSelectionToToolbar(), array, buildExportModal(), getAppraiseeId(), ilLinkButton\getInstance(), object, parseUserSpecificResults(), ilUtil\sendFailure(), and ilTable2GUI\setData().
ilSurveyEvaluationGUI::executeCommand | ( | ) |
execute command
Definition at line 96 of file class.ilSurveyEvaluationGUI.php.
References $ret, getCommand(), and object.
ilSurveyEvaluationGUI::exportCumulatedResults | ( | $details = 0 | ) |
Definition at line 336 of file class.ilSurveyEvaluationGUI.php.
References $_POST, $appr_id, $row, $type, SurveyQuestion\_instanciateQuestionEvaluation(), array, date, ilUtil\deliverData(), exit, exportResultsDetailsExcel(), ilUtil\getASCIIFilename(), object, 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 1179 of file class.ilSurveyEvaluationGUI.php.
References $_POST, $appr_id, $row, $rows, $user, SurveyQuestion\_instanciateQuestionEvaluation(), array, date, ilUtil\deliverData(), exit, ilDatePresentation\formatDate(), ilUtil\getASCIIFilename(), IL_CAL_UNIX, object, 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 $counter, $key, SurveyQuestion\_getQuestionTypeName(), ilExcel\addSheet(), array, EXCEL_SUBTITLE, ilExcel\getCoordByColumnAndRow(), SurveyQuestionEvaluation\getExportGrid(), SurveyQuestionEvaluation\getTextAnswers(), parseResultsToExcel(), ilExcel\setBold(), ilExcel\setCell(), and ilExcel\setColors().
Referenced by exportCumulatedResults().
ilSurveyEvaluationGUI::getAppraiseeId | ( | ) |
Get appraisee id.
Definition at line 180 of file class.ilSurveyEvaluationGUI.php.
References $appr_id.
Referenced by addApprSelectionToToolbar(), competenceEval(), evaluation(), and evaluationuser().
ilSurveyEvaluationGUI::getCommand | ( | $cmd | ) |
Definition at line 118 of file class.ilSurveyEvaluationGUI.php.
Referenced by executeCommand().
|
protected |
Definition at line 583 of file class.ilSurveyEvaluationGUI.php.
References $cols, $key, array, 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 1400 of file class.ilSurveyEvaluationGUI.php.
References $data, $user, SurveyQuestion\_instanciateQuestionEvaluation(), array, and object.
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 1149 of file class.ilSurveyEvaluationGUI.php.
Referenced by exportCumulatedResults(), and exportEvaluationUser().
|
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 945 of file class.ilSurveyEvaluationGUI.php.
References $chart, $cols, $key, $list, $r, $title, SurveyQuestion\_getQuestionTypeName(), array, SurveyQuestionEvaluation\getChart(), SurveyQuestionEvaluation\getGrid(), and SurveyQuestionEvaluation\getTextAnswers().
Referenced by evaluation().
ilSurveyEvaluationGUI::setAppraiseeId | ( | $a_val | ) |
Set appraisee id.
int | $a_val | appraisee id |
Definition at line 170 of file class.ilSurveyEvaluationGUI.php.
Referenced by determineAppraiseeId().
ilSurveyEvaluationGUI::setEvalSubtabs | ( | ) |
Set the tabs for the evaluation output.
private
Definition at line 128 of file class.ilSurveyEvaluationGUI.php.
References $access, $tabs, array, and object.
|
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(), and getAppraiseeId().
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(), and competenceEval().
|
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.