ILIAS
Release_3_10_x_branch Revision 61812
|
Nominal survey question GUI representation. More...
Public Member Functions | |
SurveyNominalQuestionGUI ($id=-1) | |
SurveyNominalQuestionGUI constructor. | |
editQuestion () | |
Creates an output of the edit form for the question. | |
getWorkingForm ($working_data="", $question_title=1, $show_questiontext=1, $error_message="", $survey_id=null) | |
Creates the question output form for the learner. | |
getPrintView ($question_title=1, $show_questiontext=1, $survey_id=null) | |
Creates a HTML representation of the question. | |
preview () | |
Creates a preview of the question. | |
writePostData () | |
Evaluates a posted edit form and writes the form data in the question object. | |
categories ($add=false) | |
Creates the form to edit the question categories. | |
setQuestionTabs () | |
saveCategories () | |
Saves the categories. | |
addCategory () | |
Adds a category to the question. | |
writeCategoryData ($save=false) | |
Recreates the categories from the POST data. | |
deleteCategory () | |
Removes one or more categories. | |
moveCategory () | |
Selects one or more categories for moving. | |
insertBeforeCategory () | |
Inserts categories which are selected for moving before the selected category. | |
insertAfterCategory () | |
Inserts categories which are selected for moving before the selected category. | |
getCumulatedResultRow ($counter, $css_class, $survey_id) | |
Creates a the cumulated results row for the question. | |
getCumulatedResultsDetails ($survey_id, $counter) | |
Creates the detailed output of the cumulated results for the question. | |
Public Member Functions inherited from SurveyQuestionGUI | |
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. |
Additional Inherited Members | |
Static Public Member Functions inherited from SurveyQuestionGUI | |
static & | _getQuestionGUI ($questiontype, $question_id=-1) |
Creates a question gui representation. | |
Data Fields inherited from SurveyQuestionGUI | |
$object | |
$tpl | |
$lng | |
$cumulated |
Nominal survey question GUI representation.
The SurveyNominalQuestionGUI class encapsulates the GUI representation for nominal survey question types.
Definition at line 38 of file class.SurveyNominalQuestionGUI.php.
SurveyNominalQuestionGUI::addCategory | ( | ) |
Adds a category to the question.
Adds a category to the question
private
Definition at line 683 of file class.SurveyNominalQuestionGUI.php.
References $_SESSION, $result, categories(), ilUtil\sendInfo(), and writeCategoryData().
SurveyNominalQuestionGUI::categories | ( | $add = false | ) |
Creates the form to edit the question categories.
Creates the form to edit the question categories
private
Definition at line 544 of file class.SurveyNominalQuestionGUI.php.
References $_SESSION, ilUtil\getImagePath(), and ilUtil\sendInfo().
Referenced by addCategory(), deleteCategory(), insertAfterCategory(), insertBeforeCategory(), and moveCategory().
SurveyNominalQuestionGUI::deleteCategory | ( | ) |
Removes one or more categories.
Removes one or more categories
private
Definition at line 734 of file class.SurveyNominalQuestionGUI.php.
References $_SESSION, categories(), ilUtil\sendInfo(), and writeCategoryData().
SurveyNominalQuestionGUI::editQuestion | ( | ) |
Creates an output of the edit form for the question.
Creates an output of the edit form for the question
public
Reimplemented from SurveyQuestionGUI.
Definition at line 70 of file class.SurveyNominalQuestionGUI.php.
References $_GET, SurveyQuestion\_getInternalLinkHref(), ilRTE\_getRTEClassname(), ilObject\_lookupType(), ilUtil\prepareFormOutput(), and SUBTYPE_MCSR.
SurveyNominalQuestionGUI::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 from SurveyQuestionGUI.
Definition at line 853 of file class.SurveyNominalQuestionGUI.php.
References ilObjSurvey\_getNrOfParticipants().
SurveyNominalQuestionGUI::getCumulatedResultsDetails | ( | $survey_id, | |
$counter | |||
) |
Creates the detailed output of the cumulated results for the question.
Creates the detailed output of the cumulated results for the question
integer | $survey_id | The database ID of the survey |
integer | $counter | The counter of the question position in the survey |
Definition at line 892 of file class.SurveyNominalQuestionGUI.php.
References $data, ilObjSurvey\_getNrOfParticipants(), SUBTYPE_MCMR, and SUBTYPE_MCSR.
SurveyNominalQuestionGUI::getPrintView | ( | $question_title = 1 , |
|
$show_questiontext = 1 , |
|||
$survey_id = null |
|||
) |
Creates a HTML representation of the question.
Creates a HTML representation of the question
private
Definition at line 370 of file class.SurveyNominalQuestionGUI.php.
References ilUtil\getHtmlPath(), ilUtil\getImagePath(), ilUtil\prepareFormOutput(), and SUBTYPE_MCSR.
SurveyNominalQuestionGUI::getWorkingForm | ( | $working_data = "" , |
|
$question_title = 1 , |
|||
$show_questiontext = 1 , |
|||
$error_message = "" , |
|||
$survey_id = null |
|||
) |
Creates the question output form for the learner.
Creates the question output form for the learner
public
Definition at line 180 of file class.SurveyNominalQuestionGUI.php.
References SurveyQuestion\_getInternalLinkHref(), ilUtil\prepareFormOutput(), and SUBTYPE_MCSR.
Referenced by preview().
SurveyNominalQuestionGUI::insertAfterCategory | ( | ) |
Inserts categories which are selected for moving before the selected category.
Inserts categories which are selected for moving before the selected category
private
Definition at line 817 of file class.SurveyNominalQuestionGUI.php.
References $_SESSION, $result, categories(), ilUtil\sendInfo(), and writeCategoryData().
SurveyNominalQuestionGUI::insertBeforeCategory | ( | ) |
Inserts categories which are selected for moving before the selected category.
Inserts categories which are selected for moving before the selected category
private
Definition at line 782 of file class.SurveyNominalQuestionGUI.php.
References $_SESSION, $result, categories(), ilUtil\sendInfo(), and writeCategoryData().
SurveyNominalQuestionGUI::moveCategory | ( | ) |
Selects one or more categories for moving.
Selects one or more categories for moving
private
Definition at line 758 of file class.SurveyNominalQuestionGUI.php.
References $_SESSION, categories(), ilUtil\sendInfo(), and writeCategoryData().
SurveyNominalQuestionGUI::preview | ( | ) |
Creates a preview of the question.
Creates a preview of the question
private
Definition at line 482 of file class.SurveyNominalQuestionGUI.php.
References getWorkingForm().
SurveyNominalQuestionGUI::saveCategories | ( | ) |
Saves the categories.
Saves the categories
private
Definition at line 655 of file class.SurveyNominalQuestionGUI.php.
References $_GET, $_SESSION, SurveyQuestion\_isWriteable(), SurveyQuestionGUI\originalSyncForm(), ilUtil\sendInfo(), and writeCategoryData().
SurveyNominalQuestionGUI::setQuestionTabs | ( | ) |
Definition at line 643 of file class.SurveyNominalQuestionGUI.php.
References SurveyQuestionGUI\setQuestionTabsForClass().
SurveyNominalQuestionGUI::SurveyNominalQuestionGUI | ( | $id = -1 | ) |
SurveyNominalQuestionGUI constructor.
The constructor takes possible arguments an creates an instance of the SurveyNominalQuestionGUI object.
integer | $id | The database id of a nominal question object public |
Definition at line 49 of file class.SurveyNominalQuestionGUI.php.
References SurveyQuestionGUI\SurveyQuestionGUI().
SurveyNominalQuestionGUI::writeCategoryData | ( | $save = false | ) |
Recreates the categories from the POST data.
Recreates the categories from the POST data and saves it (optionally) to the database.
boolean | $save | If set to true the POST data will be saved to the database private |
Definition at line 703 of file class.SurveyNominalQuestionGUI.php.
References ilUtil\stripSlashes().
Referenced by addCategory(), deleteCategory(), insertAfterCategory(), insertBeforeCategory(), moveCategory(), and saveCategories().
SurveyNominalQuestionGUI::writePostData | ( | ) |
Evaluates a posted edit form and writes the form data in the question object.
Evaluates a posted edit form and writes the form data in the question object
Definition at line 497 of file class.SurveyNominalQuestionGUI.php.
References $result, ilObjAdvancedEditing\_getUsedHTMLTagsAsString(), SurveyQuestionGUI\addErrorMessage(), and ilUtil\stripSlashes().