ILIAS
Release_4_0_x_branch Revision 61816
|
Basic class for all survey question types. More...
Public Member Functions | |
SurveyQuestionGUI () | |
SurveyQuestion constructor. | |
addErrorMessage ($errormessage) | |
outErrorMessages () | |
& | executeCommand () |
execute command | |
getCommand ($cmd) | |
_getGUIClassNameForId ($a_q_id) | |
_getClassNameForQType ($q_type) | |
originalSyncForm () | |
sync () | |
cancelSync () | |
save () | |
save question | |
cancel () | |
cancelDeleteCategory () | |
Cancels the form adding a phrase. | |
material ($checkonly=FALSE) | |
Material tab of the survey questions. | |
deleteMaterial () | |
addMaterial () | |
Add materials to a question. | |
removeMaterial () | |
cancelExplorer () | |
addPG () | |
addST () | |
addGIT () | |
linkChilds () | |
getPrintView ($question_title=1, $show_questiontext=1) | |
Creates a HTML representation of the question. | |
setQuestionTabsForClass ($guiclass) | |
getQuestionType () | |
Returns the question type string. | |
getCumulatedResultRow ($counter, $css_class, $survey_id) | |
Creates a the cumulated results row for the question. | |
editQuestion () |
Static Public Member Functions | |
static & | _getQuestionGUI ($questiontype, $question_id=-1) |
Creates a question gui representation. |
Data Fields | |
$object | |
$tpl | |
$lng | |
$cumulated | |
An array containing the cumulated results of the question for a given survey. |
Protected Member Functions | |
getMaterialOutput () | |
Creates the HTML output of the question material(s) |
Private Attributes | |
$errormessages |
Basic class for all survey question types.
The SurveyQuestionGUI class defines and encapsulates basic methods and attributes for survey question types to be used for all parent classes.
Definition at line 36 of file class.SurveyQuestionGUI.php.
SurveyQuestionGUI::_getClassNameForQType | ( | $q_type | ) |
Definition at line 149 of file class.SurveyQuestionGUI.php.
Referenced by _getGUIClassNameForId().
SurveyQuestionGUI::_getGUIClassNameForId | ( | $a_q_id | ) |
Definition at line 140 of file class.SurveyQuestionGUI.php.
References _getClassNameForQType().
Referenced by ilSurveyQuestionsTableGUI\fillRow().
|
static |
Creates a question gui representation.
Creates a question gui representation and returns the alias to the question gui note: please do not use $this inside this method to allow static calls
string | $question_type | The question type as it is used in the language database |
integer | $question_id | The database ID of an existing question to load it into ASS_QuestionGUI |
Definition at line 127 of file class.SurveyQuestionGUI.php.
References SurveyQuestion\_includeClass().
Referenced by ilObjSurveyQuestionPoolGUI\createQuestionForSurveyObject(), ilObjSurveyQuestionPoolGUI\createQuestionObject(), ilObjSurveyQuestionPoolGUI\editQuestionForSurveyObject(), ilObjSurveyQuestionPoolGUI\executeCommand(), ilObjSurvey\getQuestionGUI(), and ilObjSurveyQuestionPoolGUI\previewObject().
SurveyQuestionGUI::addErrorMessage | ( | $errormessage | ) |
Definition at line 79 of file class.SurveyQuestionGUI.php.
SurveyQuestionGUI::addGIT | ( | ) |
Definition at line 454 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, and ilUtil\sendSuccess().
SurveyQuestionGUI::addMaterial | ( | ) |
Add materials to a question.
Definition at line 374 of file class.SurveyQuestionGUI.php.
References $_GET, $_POST, $_SESSION, material(), ilUtil\sendInfo(), and ilExplorer\setExpand().
SurveyQuestionGUI::addPG | ( | ) |
Definition at line 436 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, and ilUtil\sendSuccess().
SurveyQuestionGUI::addST | ( | ) |
Definition at line 445 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, and ilUtil\sendSuccess().
SurveyQuestionGUI::cancel | ( | ) |
Definition at line 231 of file class.SurveyQuestionGUI.php.
References $_GET, elseif(), and ilUtil\redirect().
SurveyQuestionGUI::cancelDeleteCategory | ( | ) |
Cancels the form adding a phrase.
public
Definition at line 256 of file class.SurveyQuestionGUI.php.
SurveyQuestionGUI::cancelExplorer | ( | ) |
Definition at line 429 of file class.SurveyQuestionGUI.php.
References $_SESSION, and ilUtil\sendInfo().
SurveyQuestionGUI::cancelSync | ( | ) |
Definition at line 176 of file class.SurveyQuestionGUI.php.
References ilUtil\sendInfo().
SurveyQuestionGUI::deleteMaterial | ( | ) |
Definition at line 357 of file class.SurveyQuestionGUI.php.
References $_POST, ilUtil\sendFailure(), and ilUtil\sendSuccess().
SurveyQuestionGUI::editQuestion | ( | ) |
Reimplemented in SurveyTextQuestionGUI.
Definition at line 649 of file class.SurveyQuestionGUI.php.
References outErrorMessages().
Referenced by SurveyMultipleChoiceQuestionGUI\addanswers(), SurveySingleChoiceQuestionGUI\addanswers(), SurveyMatrixQuestionGUI\addcolumns(), SurveyMatrixQuestionGUI\addrows(), SurveyMultipleChoiceQuestionGUI\downanswers(), SurveySingleChoiceQuestionGUI\downanswers(), SurveyMatrixQuestionGUI\downcolumns(), SurveyMatrixQuestionGUI\downrows(), SurveyMultipleChoiceQuestionGUI\removeanswers(), SurveySingleChoiceQuestionGUI\removeanswers(), SurveyMatrixQuestionGUI\removecolumns(), removeMaterial(), SurveyMatrixQuestionGUI\removerows(), SurveyMultipleChoiceQuestionGUI\upanswers(), SurveySingleChoiceQuestionGUI\upanswers(), SurveyMatrixQuestionGUI\upcolumns(), SurveyMatrixQuestionGUI\uprows(), SurveyMetricQuestionGUI\writePostData(), SurveySingleChoiceQuestionGUI\writePostData(), SurveyMultipleChoiceQuestionGUI\writePostData(), and SurveyMatrixQuestionGUI\writePostData().
& SurveyQuestionGUI::executeCommand | ( | ) |
execute command
Reimplemented in SurveyMatrixQuestionGUI.
Definition at line 96 of file class.SurveyQuestionGUI.php.
References $cmd, $ret, and getCommand().
SurveyQuestionGUI::getCommand | ( | $cmd | ) |
Definition at line 111 of file class.SurveyQuestionGUI.php.
References $cmd.
Referenced by SurveyMatrixQuestionGUI\executeCommand(), and executeCommand().
SurveyQuestionGUI::getCumulatedResultRow | ( | $counter, | |
$css_class, | |||
$survey_id | |||
) |
Creates a the cumulated results row for the question.
Definition at line 643 of file class.SurveyQuestionGUI.php.
|
protected |
Creates the HTML output of the question material(s)
Definition at line 264 of file class.SurveyQuestionGUI.php.
References SurveyQuestion\_getInternalLinkHref(), and ilUtil\prepareFormOutput().
Referenced by SurveyTextQuestionGUI\getWorkingForm(), SurveyMultipleChoiceQuestionGUI\getWorkingForm(), SurveyMetricQuestionGUI\getWorkingForm(), SurveySingleChoiceQuestionGUI\getWorkingForm(), and SurveyMatrixQuestionGUI\getWorkingForm().
SurveyQuestionGUI::getPrintView | ( | $question_title = 1 , |
|
$show_questiontext = 1 |
|||
) |
Creates a HTML representation of the question.
private
Reimplemented in SurveyMatrixQuestionGUI.
Definition at line 566 of file class.SurveyQuestionGUI.php.
SurveyQuestionGUI::getQuestionType | ( | ) |
Returns the question type string.
Definition at line 632 of file class.SurveyQuestionGUI.php.
Referenced by SurveySingleChoiceQuestionGUI\setQuestionTabs(), SurveyMatrixQuestionGUI\setQuestionTabs(), and setQuestionTabsForClass().
SurveyQuestionGUI::linkChilds | ( | ) |
Definition at line 463 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, ilLMPageObject\getPageList(), and ilUtil\sendSuccess().
SurveyQuestionGUI::material | ( | $checkonly = FALSE | ) |
Material tab of the survey questions.
Definition at line 293 of file class.SurveyQuestionGUI.php.
References $_GET, $data, $errors, $title, $type, SurveyQuestion\_getInternalLinkHref(), ilUtil\prepareFormOutput(), and ilFormPropertyGUI\setRequired().
Referenced by addMaterial().
SurveyQuestionGUI::originalSyncForm | ( | ) |
Definition at line 154 of file class.SurveyQuestionGUI.php.
References ilUtil\sendQuestion().
SurveyQuestionGUI::outErrorMessages | ( | ) |
Definition at line 84 of file class.SurveyQuestionGUI.php.
References $out, and ilUtil\sendInfo().
Referenced by editQuestion().
SurveyQuestionGUI::removeMaterial | ( | ) |
Definition at line 422 of file class.SurveyQuestionGUI.php.
References editQuestion().
SurveyQuestionGUI::save | ( | ) |
save question
Definition at line 185 of file class.SurveyQuestionGUI.php.
References $_GET, $result, SurveyQuestion\_isWriteable(), elseif(), ilUtil\redirect(), and ilUtil\sendSuccess().
SurveyQuestionGUI::setQuestionTabsForClass | ( | $guiclass | ) |
Definition at line 571 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, $ref_id, $title, and getQuestionType().
Referenced by SurveyTextQuestionGUI\setQuestionTabs(), SurveyMetricQuestionGUI\setQuestionTabs(), and SurveyMultipleChoiceQuestionGUI\setQuestionTabs().
SurveyQuestionGUI::SurveyQuestionGUI | ( | ) |
SurveyQuestion constructor.
The constructor takes possible arguments an creates an instance of the SurveyQuestion object.
string | $title | A title string to describe the question |
string | $description | A description string to describe the question |
string | $author | A string containing the name of the questions author |
integer | $owner | A numerical ID to identify the owner/creator public |
Definition at line 66 of file class.SurveyQuestionGUI.php.
References $_GET, $ilCtrl, $lng, and $tpl.
Referenced by SurveyMatrixQuestionGUI\SurveyMatrixQuestionGUI(), SurveyMetricQuestionGUI\SurveyMetricQuestionGUI(), SurveyMultipleChoiceQuestionGUI\SurveyMultipleChoiceQuestionGUI(), SurveySingleChoiceQuestionGUI\SurveySingleChoiceQuestionGUI(), and SurveyTextQuestionGUI\SurveyTextQuestionGUI().
SurveyQuestionGUI::sync | ( | ) |
Definition at line 165 of file class.SurveyQuestionGUI.php.
References ilUtil\sendSuccess().
SurveyQuestionGUI::$cumulated |
An array containing the cumulated results of the question for a given survey.
Definition at line 53 of file class.SurveyQuestionGUI.php.
|
private |
Definition at line 48 of file class.SurveyQuestionGUI.php.
SurveyQuestionGUI::$lng |
Definition at line 47 of file class.SurveyQuestionGUI.php.
Referenced by SurveyQuestionGUI().
SurveyQuestionGUI::$object |
Definition at line 45 of file class.SurveyQuestionGUI.php.
SurveyQuestionGUI::$tpl |
Definition at line 46 of file class.SurveyQuestionGUI.php.
Referenced by SurveyQuestionGUI().