ILIAS
Release_3_10_x_branch Revision 61812
|
Ordinal survey question GUI representation. More...
Public Member Functions | |
SurveyOrdinalQuestionGUI ($id=-1) | |
SurveyOrdinalQuestionGUI 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 () | |
addPhrase () | |
Creates an output for the addition of phrases. | |
cancelViewPhrase () | |
Cancels the form adding a phrase. | |
addSelectedPhrase () | |
Adds a selected phrase. | |
addStandardNumbers () | |
Creates an output for the addition of standard numbers. | |
cancelStandardNumbers () | |
Cancels the form adding standard numbers. | |
insertStandardNumbers () | |
Insert standard numbers to the question. | |
savePhrase () | |
Creates an output to save a phrase. | |
cancelSavePhrase () | |
Cancels the form saving a phrase. | |
confirmSavePhrase () | |
Save a new phrase to the database. | |
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 |
Ordinal survey question GUI representation.
The SurveyOrdinalQuestionGUI class encapsulates the GUI representation for ordinal survey question types.
Definition at line 38 of file class.SurveyOrdinalQuestionGUI.php.
SurveyOrdinalQuestionGUI::addCategory | ( | ) |
Adds a category to the question.
Adds a category to the question
private
Definition at line 820 of file class.SurveyOrdinalQuestionGUI.php.
References $_SESSION, $result, categories(), ilUtil\sendInfo(), and writeCategoryData().
SurveyOrdinalQuestionGUI::addPhrase | ( | ) |
Creates an output for the addition of phrases.
Creates an output for the addition of phrases
public
Definition at line 546 of file class.SurveyOrdinalQuestionGUI.php.
References ilSurveyPhrases\_getAvailablePhrases(), ilSurveyPhrases\_getCategoriesForPhrase(), and writeCategoryData().
Referenced by addSelectedPhrase().
SurveyOrdinalQuestionGUI::addSelectedPhrase | ( | ) |
Adds a selected phrase.
Adds a selected phrase
public
Definition at line 604 of file class.SurveyOrdinalQuestionGUI.php.
References addPhrase(), addStandardNumbers(), and ilUtil\sendInfo().
SurveyOrdinalQuestionGUI::addStandardNumbers | ( | ) |
Creates an output for the addition of standard numbers.
Creates an output for the addition of standard numbers
public
Definition at line 634 of file class.SurveyOrdinalQuestionGUI.php.
Referenced by addSelectedPhrase(), and insertStandardNumbers().
SurveyOrdinalQuestionGUI::cancelSavePhrase | ( | ) |
Cancels the form saving a phrase.
Cancels the form saving a phrase
public
Definition at line 752 of file class.SurveyOrdinalQuestionGUI.php.
SurveyOrdinalQuestionGUI::cancelStandardNumbers | ( | ) |
Cancels the form adding standard numbers.
Cancels the form adding standard numbers
public
Definition at line 664 of file class.SurveyOrdinalQuestionGUI.php.
SurveyOrdinalQuestionGUI::cancelViewPhrase | ( | ) |
Cancels the form adding a phrase.
Cancels the form adding a phrase
public
Definition at line 592 of file class.SurveyOrdinalQuestionGUI.php.
SurveyOrdinalQuestionGUI::categories | ( | $add = false | ) |
Creates the form to edit the question categories.
Creates the form to edit the question categories
private
Definition at line 433 of file class.SurveyOrdinalQuestionGUI.php.
References $_SESSION, ilUtil\getImagePath(), ilUtil\prepareFormOutput(), and ilUtil\sendInfo().
Referenced by addCategory(), deleteCategory(), insertAfterCategory(), insertBeforeCategory(), and moveCategory().
SurveyOrdinalQuestionGUI::confirmSavePhrase | ( | ) |
Save a new phrase to the database.
Save a new phrase to the database
public
Definition at line 764 of file class.SurveyOrdinalQuestionGUI.php.
References savePhrase(), and ilUtil\sendInfo().
SurveyOrdinalQuestionGUI::deleteCategory | ( | ) |
Removes one or more categories.
Removes one or more categories
private
Definition at line 871 of file class.SurveyOrdinalQuestionGUI.php.
References $_SESSION, categories(), ilUtil\sendInfo(), and writeCategoryData().
SurveyOrdinalQuestionGUI::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.SurveyOrdinalQuestionGUI.php.
References $_GET, SurveyQuestion\_getInternalLinkHref(), ilRTE\_getRTEClassname(), ilObject\_lookupType(), and ilUtil\prepareFormOutput().
SurveyOrdinalQuestionGUI::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 990 of file class.SurveyOrdinalQuestionGUI.php.
References ilObjSurvey\_getNrOfParticipants().
SurveyOrdinalQuestionGUI::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 1029 of file class.SurveyOrdinalQuestionGUI.php.
References $data, and ilObjSurvey\_getNrOfParticipants().
SurveyOrdinalQuestionGUI::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 285 of file class.SurveyOrdinalQuestionGUI.php.
References ilUtil\getHtmlPath(), ilUtil\getImagePath(), and ilUtil\prepareFormOutput().
SurveyOrdinalQuestionGUI::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 164 of file class.SurveyOrdinalQuestionGUI.php.
References SurveyQuestion\_getInternalLinkHref(), and ilUtil\prepareFormOutput().
Referenced by preview().
SurveyOrdinalQuestionGUI::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 954 of file class.SurveyOrdinalQuestionGUI.php.
References $_SESSION, $result, categories(), ilUtil\sendInfo(), and writeCategoryData().
SurveyOrdinalQuestionGUI::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 919 of file class.SurveyOrdinalQuestionGUI.php.
References $_SESSION, $result, categories(), ilUtil\sendInfo(), and writeCategoryData().
SurveyOrdinalQuestionGUI::insertStandardNumbers | ( | ) |
Insert standard numbers to the question.
Insert standard numbers to the question
public
Definition at line 676 of file class.SurveyOrdinalQuestionGUI.php.
References addStandardNumbers(), and ilUtil\sendInfo().
SurveyOrdinalQuestionGUI::moveCategory | ( | ) |
Selects one or more categories for moving.
Selects one or more categories for moving
private
Definition at line 895 of file class.SurveyOrdinalQuestionGUI.php.
References $_SESSION, categories(), ilUtil\sendInfo(), and writeCategoryData().
SurveyOrdinalQuestionGUI::preview | ( | ) |
Creates a preview of the question.
Creates a preview of the question
private
Definition at line 373 of file class.SurveyOrdinalQuestionGUI.php.
References getWorkingForm().
SurveyOrdinalQuestionGUI::saveCategories | ( | ) |
Saves the categories.
Saves the categories
private
Definition at line 792 of file class.SurveyOrdinalQuestionGUI.php.
References $_GET, $_SESSION, SurveyQuestion\_isWriteable(), SurveyQuestionGUI\originalSyncForm(), ilUtil\sendInfo(), and writeCategoryData().
SurveyOrdinalQuestionGUI::savePhrase | ( | ) |
Creates an output to save a phrase.
Creates an output to save a phrase
public
Definition at line 703 of file class.SurveyOrdinalQuestionGUI.php.
References ilUtil\sendInfo(), and writeCategoryData().
Referenced by confirmSavePhrase().
SurveyOrdinalQuestionGUI::setQuestionTabs | ( | ) |
Definition at line 534 of file class.SurveyOrdinalQuestionGUI.php.
References SurveyQuestionGUI\setQuestionTabsForClass().
SurveyOrdinalQuestionGUI::SurveyOrdinalQuestionGUI | ( | $id = -1 | ) |
SurveyOrdinalQuestionGUI constructor.
The constructor takes possible arguments an creates an instance of the SurveyOrdinalQuestionGUI object.
integer | $id | The database id of a ordinal question object public |
Definition at line 49 of file class.SurveyOrdinalQuestionGUI.php.
References SurveyQuestionGUI\SurveyQuestionGUI().
SurveyOrdinalQuestionGUI::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 840 of file class.SurveyOrdinalQuestionGUI.php.
References ilUtil\stripSlashes().
Referenced by addCategory(), addPhrase(), deleteCategory(), insertAfterCategory(), insertBeforeCategory(), moveCategory(), saveCategories(), and savePhrase().
SurveyOrdinalQuestionGUI::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 388 of file class.SurveyOrdinalQuestionGUI.php.
References $result, ilObjAdvancedEditing\_getUsedHTMLTagsAsString(), SurveyQuestionGUI\addErrorMessage(), and ilUtil\stripSlashes().