ILIAS
Release_3_10_x_branch Revision 61812
|
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. | |
addMaterial () | |
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 |
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 153 of file class.SurveyQuestionGUI.php.
Referenced by _getGUIClassNameForId().
SurveyQuestionGUI::_getGUIClassNameForId | ( | $a_q_id | ) |
Definition at line 144 of file class.SurveyQuestionGUI.php.
References _getClassNameForQType().
|
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 131 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 83 of file class.SurveyQuestionGUI.php.
Referenced by SurveyMetricQuestionGUI\writePostData(), SurveyTextQuestionGUI\writePostData(), SurveyOrdinalQuestionGUI\writePostData(), SurveyNominalQuestionGUI\writePostData(), SurveyMatrixQuestionGUI\writePostData(), and SurveyMatrixQuestionGUI\writeRowColData().
SurveyQuestionGUI::addGIT | ( | ) |
Definition at line 367 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, editQuestion(), and ilUtil\sendInfo().
SurveyQuestionGUI::addMaterial | ( | ) |
Definition at line 272 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, editQuestion(), ilUtil\sendInfo(), and ilExplorer\setExpand().
SurveyQuestionGUI::addPG | ( | ) |
Definition at line 349 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, editQuestion(), and ilUtil\sendInfo().
SurveyQuestionGUI::addST | ( | ) |
Definition at line 358 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, editQuestion(), and ilUtil\sendInfo().
SurveyQuestionGUI::cancel | ( | ) |
Definition at line 240 of file class.SurveyQuestionGUI.php.
References $_GET, and ilUtil\redirect().
SurveyQuestionGUI::cancelDeleteCategory | ( | ) |
Cancels the form adding a phrase.
Cancels the form adding a phrase
public
Definition at line 267 of file class.SurveyQuestionGUI.php.
SurveyQuestionGUI::cancelExplorer | ( | ) |
Definition at line 343 of file class.SurveyQuestionGUI.php.
References $_SESSION, and editQuestion().
SurveyQuestionGUI::cancelSync | ( | ) |
Definition at line 183 of file class.SurveyQuestionGUI.php.
SurveyQuestionGUI::editQuestion | ( | ) |
Reimplemented in SurveyMatrixQuestionGUI, SurveyNominalQuestionGUI, SurveyOrdinalQuestionGUI, SurveyTextQuestionGUI, and SurveyMetricQuestionGUI.
Definition at line 584 of file class.SurveyQuestionGUI.php.
References outErrorMessages().
Referenced by addGIT(), addMaterial(), addPG(), addST(), cancelExplorer(), linkChilds(), removeMaterial(), and save().
& SurveyQuestionGUI::executeCommand | ( | ) |
execute command
Reimplemented in SurveyMatrixQuestionGUI.
Definition at line 100 of file class.SurveyQuestionGUI.php.
References $cmd, $ret, and getCommand().
SurveyQuestionGUI::getCommand | ( | $cmd | ) |
Definition at line 115 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.
Creates a the cumulated results row for the question
Reimplemented in SurveyMatrixQuestionGUI, SurveyOrdinalQuestionGUI, SurveyNominalQuestionGUI, SurveyMetricQuestionGUI, and SurveyTextQuestionGUI.
Definition at line 578 of file class.SurveyQuestionGUI.php.
SurveyQuestionGUI::getPrintView | ( | $question_title = 1 , |
|
$show_questiontext = 1 |
|||
) |
Creates a HTML representation of the question.
Creates a HTML representation of the question
private
Reimplemented in SurveyMatrixQuestionGUI.
Definition at line 482 of file class.SurveyQuestionGUI.php.
SurveyQuestionGUI::getQuestionType | ( | ) |
Returns the question type string.
Returns the question type string
Definition at line 565 of file class.SurveyQuestionGUI.php.
Referenced by SurveyMatrixQuestionGUI\setQuestionTabs(), and setQuestionTabsForClass().
SurveyQuestionGUI::linkChilds | ( | ) |
Definition at line 376 of file class.SurveyQuestionGUI.php.
References $_GET, $_SESSION, editQuestion(), ilLMPageObject\getPageList(), and ilUtil\sendInfo().
SurveyQuestionGUI::originalSyncForm | ( | ) |
Definition at line 158 of file class.SurveyQuestionGUI.php.
Referenced by save(), SurveyNominalQuestionGUI\saveCategories(), SurveyOrdinalQuestionGUI\saveCategories(), and SurveyMatrixQuestionGUI\saveRowColEditor().
SurveyQuestionGUI::outErrorMessages | ( | ) |
Definition at line 88 of file class.SurveyQuestionGUI.php.
References $out, and ilUtil\sendInfo().
Referenced by editQuestion().
SurveyQuestionGUI::removeMaterial | ( | ) |
Definition at line 336 of file class.SurveyQuestionGUI.php.
References editQuestion().
SurveyQuestionGUI::save | ( | ) |
save question
Definition at line 194 of file class.SurveyQuestionGUI.php.
References $_GET, $result, SurveyQuestion\_isWriteable(), editQuestion(), originalSyncForm(), ilUtil\redirect(), and ilUtil\sendInfo().
SurveyQuestionGUI::setQuestionTabsForClass | ( | $guiclass | ) |
Definition at line 487 of file class.SurveyQuestionGUI.php.
References $_GET, $ref_id, $title, and getQuestionType().
Referenced by SurveyTextQuestionGUI\setQuestionTabs(), SurveyMetricQuestionGUI\setQuestionTabs(), SurveyOrdinalQuestionGUI\setQuestionTabs(), and SurveyNominalQuestionGUI\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 70 of file class.SurveyQuestionGUI.php.
References $_GET, $ilCtrl, $lng, and $tpl.
Referenced by SurveyMatrixQuestionGUI\SurveyMatrixQuestionGUI(), SurveyMetricQuestionGUI\SurveyMetricQuestionGUI(), SurveyNominalQuestionGUI\SurveyNominalQuestionGUI(), SurveyOrdinalQuestionGUI\SurveyOrdinalQuestionGUI(), and SurveyTextQuestionGUI\SurveyTextQuestionGUI().
SurveyQuestionGUI::sync | ( | ) |
Definition at line 169 of file class.SurveyQuestionGUI.php.
SurveyQuestionGUI::$cumulated |
Definition at line 57 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().