ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Survey execution graphical output. More...
Public Member Functions | |
__construct ($a_object) | |
ilSurveyExecutionGUI constructor More... | |
executeCommand () | |
execute command More... | |
getCommand ($cmd) | |
Retrieves the ilCtrl command. More... | |
resume () | |
Resumes the survey. More... | |
start ($resume=false) | |
Starts the survey. More... | |
redirectQuestion () | |
Called when a user answered a page to perform a redirect after POST. More... | |
previousNoSave () | |
previous ($a_save_input=true) | |
Navigates to the previous pages. More... | |
next () | |
Navigates to the next pages. More... | |
gotoPage () | |
Go to a specific page without saving. More... | |
outSurveyPage ($activepage=null, $direction=null) | |
Output of the active survey question to the screen. More... | |
saveUserInput ($navigationDirection="next") | |
Save the user's input. More... | |
saveActiveQuestionData (&$data) | |
Survey navigation. More... | |
cancel () | |
Called on cancel. More... | |
runShowFinishedPage () | |
Creates the finished page for a running survey. More... | |
backToRepository () | |
exitSurvey () | |
Exits the survey after finishing it. More... | |
outNavigationButtons ($navigationblock="top", $page, $stpl) | |
Creates the navigation buttons for a survey. More... | |
preview () | |
viewUserResults () | |
mailUserResults () | |
showFinishConfirmation () | |
confirmedFinish () | |
Data Fields | |
$object | |
$lng | |
$tpl | |
$ctrl | |
$tree | |
$preview | |
Protected Member Functions | |
checkAuth ($a_may_start=false, $a_ignore_status=false) | |
compressQuestion ($previous_page, $page) | |
Protected Attributes | |
$rbacsystem | |
$user | |
$help | |
$toolbar | |
$log | |
Survey execution graphical output.
The ilSurveyExecutionGUI class creates the execution output for the ilObjSurveyGUI class. This saves some heap space because the ilObjSurveyGUI class will be smaller.
Definition at line 35 of file class.ilSurveyExecutionGUI.php.
ilSurveyExecutionGUI::__construct | ( | $a_object | ) |
ilSurveyExecutionGUI constructor
The constructor takes possible arguments an creates an instance of the ilSurveyExecutionGUI object.
object | $a_object | Associated ilObjSurvey class public |
Definition at line 77 of file class.ilSurveyExecutionGUI.php.
References $_SESSION, $DIC, $lng, $tpl, $tree, ilLoggerFactory\getLogger(), help(), preview(), user(), and ilObjSurvey\validateExternalRaterCode().
ilSurveyExecutionGUI::backToRepository | ( | ) |
Definition at line 806 of file class.ilSurveyExecutionGUI.php.
References $tree, ilLink\_getLink(), and ilUtil\redirect().
Referenced by exitSurvey(), mailUserResults(), and viewUserResults().
ilSurveyExecutionGUI::cancel | ( | ) |
Called on cancel.
Called on cancel
private
Definition at line 721 of file class.ilSurveyExecutionGUI.php.
|
protected |
Definition at line 146 of file class.ilSurveyExecutionGUI.php.
References $_SESSION, $ilUser, $rbacsystem, $user, ANONYMOUS_USER_ID, ilObjSurvey\MODE_SELF_EVAL, preview(), and ilUtil\sendFailure().
Referenced by mailUserResults(), outSurveyPage(), start(), and viewUserResults().
|
protected |
array | $previous_page | |
array | $page |
Definition at line 578 of file class.ilSurveyExecutionGUI.php.
References SurveySingleChoiceQuestion\compressable().
Referenced by outSurveyPage().
ilSurveyExecutionGUI::confirmedFinish | ( | ) |
Definition at line 935 of file class.ilSurveyExecutionGUI.php.
References $_SESSION, $ilUser, $user, ilLPStatusWrapper\_updateStatus(), ANONYMOUS_USER_ID, and preview().
ilSurveyExecutionGUI::executeCommand | ( | ) |
execute command
Definition at line 117 of file class.ilSurveyExecutionGUI.php.
References $_GET, $GLOBALS, $ret, ilChangeEvent\_recordReadEvent(), and getCommand().
ilSurveyExecutionGUI::exitSurvey | ( | ) |
Exits the survey after finishing it.
Exits the survey after finishing it
public
Definition at line 828 of file class.ilSurveyExecutionGUI.php.
References backToRepository(), and preview().
Referenced by runShowFinishedPage().
ilSurveyExecutionGUI::getCommand | ( | $cmd | ) |
Retrieves the ilCtrl command.
Retrieves the ilCtrl command
public
Definition at line 245 of file class.ilSurveyExecutionGUI.php.
Referenced by executeCommand().
ilSurveyExecutionGUI::gotoPage | ( | ) |
Go to a specific page without saving.
private
Definition at line 369 of file class.ilSurveyExecutionGUI.php.
References $_GET.
ilSurveyExecutionGUI::mailUserResults | ( | ) |
Definition at line 893 of file class.ilSurveyExecutionGUI.php.
References $_POST, $_SESSION, $ilUser, $user, backToRepository(), checkAuth(), and ilUtil\is_email().
ilSurveyExecutionGUI::next | ( | ) |
Navigates to the next pages.
private
Definition at line 351 of file class.ilSurveyExecutionGUI.php.
References $_GET, $result, and saveUserInput().
ilSurveyExecutionGUI::outNavigationButtons | ( | $navigationblock = "top" , |
|
$page, | |||
$stpl | |||
) |
Creates the navigation buttons for a survey.
Creates the navigation buttons for a survey. Runs twice to generate a top and a bottom navigation to ease the use of long forms.
public
Definition at line 848 of file class.ilSurveyExecutionGUI.php.
Referenced by outSurveyPage().
ilSurveyExecutionGUI::outSurveyPage | ( | $activepage = null , |
|
$direction = null |
|||
) |
Output of the active survey question to the screen.
Output of the active survey question to the screen
private
Definition at line 384 of file class.ilSurveyExecutionGUI.php.
References $_SESSION, $data, $help, $ilUser, $user, ilLearningProgress\_tracProgress(), ANONYMOUS_USER_ID, checkAuth(), compressQuestion(), ilProgressBar\getInstance(), ilUserUtil\getNamePresentation(), outNavigationButtons(), preview(), runShowFinishedPage(), and showFinishConfirmation().
Referenced by preview(), and redirectQuestion().
ilSurveyExecutionGUI::preview | ( | ) |
Definition at line 868 of file class.ilSurveyExecutionGUI.php.
References outSurveyPage().
Referenced by __construct(), checkAuth(), confirmedFinish(), exitSurvey(), outSurveyPage(), runShowFinishedPage(), saveActiveQuestionData(), saveUserInput(), and start().
ilSurveyExecutionGUI::previous | ( | $a_save_input = true | ) |
Navigates to the previous pages.
Navigates to the previous pages
private
Definition at line 330 of file class.ilSurveyExecutionGUI.php.
References $_GET, and saveUserInput().
Referenced by previousNoSave().
ilSurveyExecutionGUI::previousNoSave | ( | ) |
Definition at line 318 of file class.ilSurveyExecutionGUI.php.
References previous().
ilSurveyExecutionGUI::redirectQuestion | ( | ) |
Called when a user answered a page to perform a redirect after POST.
This is called for security reasons to prevent users sending a form twice.
public
Definition at line 296 of file class.ilSurveyExecutionGUI.php.
References $_GET, and outSurveyPage().
ilSurveyExecutionGUI::resume | ( | ) |
Resumes the survey.
Resumes the survey
private
Definition at line 257 of file class.ilSurveyExecutionGUI.php.
References start().
ilSurveyExecutionGUI::runShowFinishedPage | ( | ) |
Creates the finished page for a running survey.
Creates the finished page for a running survey
public
Definition at line 733 of file class.ilSurveyExecutionGUI.php.
References $ilUser, $panel, $toolbar, $user, ilObjSurveyAccess\_hasEvaluationAccess(), ANONYMOUS_USER_ID, exitSurvey(), ilSubmitButton\getInstance(), ilLinkButton\getInstance(), ilPanelGUI\getInstance(), and preview().
Referenced by outSurveyPage().
ilSurveyExecutionGUI::saveActiveQuestionData | ( | & | $data | ) |
Survey navigation.
Survey navigation
private Saves the users input of the active page
Saves the users input of the active page
private
Definition at line 691 of file class.ilSurveyExecutionGUI.php.
References $_POST, $_SESSION, $data, $ilUser, $user, SurveyQuestion\_instanciateQuestion(), and preview().
Referenced by saveUserInput().
ilSurveyExecutionGUI::saveUserInput | ( | $navigationDirection = "next" | ) |
Save the user's input.
private
Definition at line 599 of file class.ilSurveyExecutionGUI.php.
References $_GET, $_POST, $_SESSION, $data, preview(), saveActiveQuestionData(), and ilUtil\sendFailure().
Referenced by next(), and previous().
ilSurveyExecutionGUI::showFinishConfirmation | ( | ) |
Definition at line 921 of file class.ilSurveyExecutionGUI.php.
References $tpl.
Referenced by outSurveyPage().
ilSurveyExecutionGUI::start | ( | $resume = false | ) |
Starts the survey.
Starts the survey
private
Definition at line 269 of file class.ilSurveyExecutionGUI.php.
References $_SESSION, checkAuth(), and preview().
Referenced by resume().
ilSurveyExecutionGUI::viewUserResults | ( | ) |
Definition at line 873 of file class.ilSurveyExecutionGUI.php.
References $_SESSION, $toolbar, backToRepository(), checkAuth(), and ilLinkButton\getInstance().
ilSurveyExecutionGUI::$ctrl |
Definition at line 60 of file class.ilSurveyExecutionGUI.php.
|
protected |
Definition at line 50 of file class.ilSurveyExecutionGUI.php.
Referenced by outSurveyPage().
ilSurveyExecutionGUI::$lng |
Definition at line 58 of file class.ilSurveyExecutionGUI.php.
Referenced by __construct().
|
protected |
Definition at line 67 of file class.ilSurveyExecutionGUI.php.
ilSurveyExecutionGUI::$object |
Definition at line 57 of file class.ilSurveyExecutionGUI.php.
ilSurveyExecutionGUI::$preview |
Definition at line 62 of file class.ilSurveyExecutionGUI.php.
|
protected |
Definition at line 40 of file class.ilSurveyExecutionGUI.php.
Referenced by checkAuth().
|
protected |
Definition at line 55 of file class.ilSurveyExecutionGUI.php.
Referenced by runShowFinishedPage(), and viewUserResults().
ilSurveyExecutionGUI::$tpl |
Definition at line 59 of file class.ilSurveyExecutionGUI.php.
Referenced by __construct(), and showFinishConfirmation().
ilSurveyExecutionGUI::$tree |
Definition at line 61 of file class.ilSurveyExecutionGUI.php.
Referenced by __construct(), and backToRepository().
|
protected |
Definition at line 45 of file class.ilSurveyExecutionGUI.php.
Referenced by checkAuth(), confirmedFinish(), mailUserResults(), outSurveyPage(), runShowFinishedPage(), and saveActiveQuestionData().