ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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) | |
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 36 of file class.ilSurveyEvaluationGUI.php.
References $ilCtrl, $lng, $tpl, array, determineAppraiseeId(), ilLoggerFactory\getLogger(), and object.
ilSurveyEvaluationGUI::addApprSelectionToToolbar | ( | ) |
Add appraisee selection to toolbar.
Definition at line 1160 of file class.ilSurveyEvaluationGUI.php.
References $options, array, getAppraiseeId(), ilSubmitButton\getInstance(), object, ilObjSurvey\RESULTS_360_ALL, ilUtil\sendFailure(), and ilSelectInputGUI\setOptions().
Referenced by competenceEval(), evaluation(), and evaluationuser().
|
protected |
Definition at line 716 of file class.ilSurveyEvaluationGUI.php.
References $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 293 of file class.ilSurveyEvaluationGUI.php.
References $ilCtrl, $path, and object.
Referenced by checkEvaluationAccess().
ilSurveyEvaluationGUI::checkAnonymizedEvaluationAccess | ( | ) |
Show the detailed evaluation.
Show the detailed evaluation
private
Definition at line 209 of file class.ilSurveyEvaluationGUI.php.
References $_GET, $_SESSION, $ilUser, 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 271 of file class.ilSurveyEvaluationGUI.php.
References $_GET, $_POST, $_SESSION, cancelEvaluationAccess(), evaluation(), object, and ilUtil\sendFailure().
ilSurveyEvaluationGUI::competenceEval | ( | ) |
Competence Evaluation.
Definition at line 1564 of file class.ilSurveyEvaluationGUI.php.
References $_GET, $_POST, $html, $ilCtrl, $ilUser, $lng, $object, $tpl, addApprSelectionToToolbar(), array, getAppraiseeId(), ilSkillProfile\getProfilesOfUser(), object, and ilSelectInputGUI\setOptions().
ilSurveyEvaluationGUI::determineAppraiseeId | ( | ) |
Determine appraisee id.
Definition at line 154 of file class.ilSurveyEvaluationGUI.php.
References $ilUser, $valid, array, object, ilObjSurvey\RESULTS_360_ALL, and setAppraiseeId().
Referenced by __construct().
ilSurveyEvaluationGUI::evaluation | ( | $details = 0 | ) |
Definition at line 758 of file class.ilSurveyEvaluationGUI.php.
References $_GET, $_POST, $appr_id, $data, $DIC, $path, $results, 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 309 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 1436 of file class.ilSurveyEvaluationGUI.php.
References $appr_id, $data, addApprSelectionToToolbar(), array, buildExportModal(), getAppraiseeId(), ilLinkButton\getInstance(), object, parseUserSpecificResults(), ilUtil\sendFailure(), and ilTable2GUI\setData().
ilSurveyEvaluationGUI::executeCommand | ( | ) |
execute command
Definition at line 56 of file class.ilSurveyEvaluationGUI.php.
References $cmd, $ret, getCommand(), and object.
ilSurveyEvaluationGUI::exportCumulatedResults | ( | $details = 0 | ) |
Definition at line 314 of file class.ilSurveyEvaluationGUI.php.
References $_POST, $row, 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 684 of file class.ilSurveyEvaluationGUI.php.
References $_POST, and exportCumulatedResults().
ilSurveyEvaluationGUI::exportDetailData | ( | ) |
Definition at line 697 of file class.ilSurveyEvaluationGUI.php.
References $_POST, and exportCumulatedResults().
ilSurveyEvaluationGUI::exportEvaluationUser | ( | ) |
Definition at line 1261 of file class.ilSurveyEvaluationGUI.php.
References $_POST, $row, 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 460 of file class.ilSurveyEvaluationGUI.php.
References $counter, 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 146 of file class.ilSurveyEvaluationGUI.php.
References $appr_id.
Referenced by addApprSelectionToToolbar(), competenceEval(), evaluation(), and evaluationuser().
ilSurveyEvaluationGUI::getCommand | ( | $cmd | ) |
Definition at line 82 of file class.ilSurveyEvaluationGUI.php.
References $cmd.
Referenced by executeCommand().
|
protected |
Definition at line 589 of file class.ilSurveyEvaluationGUI.php.
References 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 1503 of file class.ilSurveyEvaluationGUI.php.
References $data, SurveyQuestion\_instanciateQuestionEvaluation(), array, and object.
Referenced by evaluationuser().
ilSurveyEvaluationGUI::printEvaluation | ( | ) |
Definition at line 710 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 1223 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 985 of file class.ilSurveyEvaluationGUI.php.
References $chart, $DIC, $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 136 of file class.ilSurveyEvaluationGUI.php.
Referenced by determineAppraiseeId().
ilSurveyEvaluationGUI::setEvalSubtabs | ( | ) |
Set the tabs for the evaluation output.
private
Definition at line 92 of file class.ilSurveyEvaluationGUI.php.
ilSurveyEvaluationGUI::$appr_id = null |
Definition at line 26 of file class.ilSurveyEvaluationGUI.php.
Referenced by evaluation(), evaluationuser(), and getAppraiseeId().
ilSurveyEvaluationGUI::$ctrl |
Definition at line 25 of file class.ilSurveyEvaluationGUI.php.
ilSurveyEvaluationGUI::$lng |
Definition at line 23 of file class.ilSurveyEvaluationGUI.php.
Referenced by __construct(), and competenceEval().
ilSurveyEvaluationGUI::$object |
Definition at line 22 of file class.ilSurveyEvaluationGUI.php.
Referenced by competenceEval().
ilSurveyEvaluationGUI::$tpl |
Definition at line 24 of file class.ilSurveyEvaluationGUI.php.
Referenced by __construct(), buildExportModal(), and competenceEval().
const ilSurveyEvaluationGUI::EXCEL_SUBTITLE = "DDDDDD" |
Definition at line 20 of file class.ilSurveyEvaluationGUI.php.
Referenced by exportResultsDetailsExcel(), and parseResultsToExcel().
const ilSurveyEvaluationGUI::TYPE_SPSS = "csv" |
Definition at line 18 of file class.ilSurveyEvaluationGUI.php.
const ilSurveyEvaluationGUI::TYPE_XLS = "excel" |
Definition at line 17 of file class.ilSurveyEvaluationGUI.php.