ILIAS
Release_4_1_x_branch Revision 61804
|
Matrix question GUI representation. More...
Public Member Functions | |
SurveyMatrixQuestionGUI ($id=-1) | |
SurveyMatrixQuestionGUI constructor. | |
& | executeCommand () |
execute command | |
writePostData ($always=false) | |
Evaluates a posted edit form and writes the form data in the question object. | |
editQuestion ($checkonly=FALSE) | |
Creates an output of the edit form for the question. | |
addrows () | |
Add a new row. | |
removerows () | |
Remove a row. | |
uprows () | |
Move a row up. | |
downrows () | |
Move a row down. | |
addcolumns () | |
Add a new column. | |
removecolumns () | |
Remove a column. | |
upcolumns () | |
Move a column up. | |
downcolumns () | |
Move a column down. | |
savePhrasecolumns ($haserror=false) | |
Creates an output to save the current answers as a phrase. | |
cancelSavePhrase () | |
Cancels the form saving a phrase. | |
confirmSavePhrase () | |
Save a new phrase to the database. | |
wizardcolumns ($save_post_data=true) | |
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. | |
getWorkingForm ($working_data="", $question_title=1, $show_questiontext=1, $error_message="") | |
Creates the question output form for the learner. | |
getPrintView ($question_title=1, $show_questiontext=1) | |
Creates a HTML representation of the question. | |
preview () | |
Creates a preview of the question. | |
layout () | |
Creates a layout view of the question. | |
saveLayout () | |
Saves the layout for the matrix question. | |
getLayoutRow () | |
Creates a row to define the matrix question layout with percentage values. | |
getCumulatedResultsDetails ($survey_id, $counter) | |
Creates the detailed output of the cumulated results for the question. | |
setQuestionTabs () | |
Public Member Functions inherited from SurveyQuestionGUI | |
SurveyQuestionGUI () | |
SurveyQuestion constructor. | |
addErrorMessage ($errormessage) | |
outErrorMessages () | |
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 () | |
setQuestionTabsForClass ($guiclass) | |
getQuestionType () | |
Returns the question type string. | |
getCumulatedResultRow ($counter, $css_class, $survey_id) | |
Creates a the cumulated results row for the question. | |
editQuestion () |
Data Fields | |
$show_layout_row | |
Data Fields inherited from SurveyQuestionGUI | |
$object | |
$tpl | |
$lng | |
$cumulated | |
An array containing the cumulated results of the question for a given survey. |
Additional Inherited Members | |
Static Public Member Functions inherited from SurveyQuestionGUI | |
static & | _getQuestionGUI ($questiontype, $question_id=-1) |
Creates a question gui representation. | |
Protected Member Functions inherited from SurveyQuestionGUI | |
getMaterialOutput () | |
Creates the HTML output of the question material(s) | |
outQuestionText ($template) |
Matrix question GUI representation.
The SurveyMatrixQuestionGUI class encapsulates the GUI representation for matrix question types.
Definition at line 38 of file class.SurveyMatrixQuestionGUI.php.
SurveyMatrixQuestionGUI::addcolumns | ( | ) |
Add a new column.
Definition at line 372 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
SurveyMatrixQuestionGUI::addrows | ( | ) |
Add a new row.
Definition at line 328 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
SurveyMatrixQuestionGUI::addSelectedPhrase | ( | ) |
Adds a selected phrase.
public
Definition at line 558 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, addStandardNumbers(), ilUtil\sendInfo(), ilUtil\sendSuccess(), and wizardcolumns().
SurveyMatrixQuestionGUI::addStandardNumbers | ( | ) |
Creates an output for the addition of standard numbers.
public
Definition at line 587 of file class.SurveyMatrixQuestionGUI.php.
References $_POST.
Referenced by addSelectedPhrase(), and insertStandardNumbers().
SurveyMatrixQuestionGUI::cancelSavePhrase | ( | ) |
Cancels the form saving a phrase.
public
Definition at line 465 of file class.SurveyMatrixQuestionGUI.php.
References ilUtil\sendInfo().
SurveyMatrixQuestionGUI::cancelStandardNumbers | ( | ) |
Cancels the form adding standard numbers.
public
Definition at line 615 of file class.SurveyMatrixQuestionGUI.php.
References ilUtil\sendInfo().
SurveyMatrixQuestionGUI::cancelViewPhrase | ( | ) |
Cancels the form adding a phrase.
public
Definition at line 547 of file class.SurveyMatrixQuestionGUI.php.
References ilUtil\sendInfo().
SurveyMatrixQuestionGUI::confirmSavePhrase | ( | ) |
Save a new phrase to the database.
public
Definition at line 476 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, savePhrasecolumns(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
SurveyMatrixQuestionGUI::downcolumns | ( | ) |
Move a column down.
Definition at line 405 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
SurveyMatrixQuestionGUI::downrows | ( | ) |
Move a row down.
Definition at line 361 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
SurveyMatrixQuestionGUI::editQuestion | ( | $checkonly = FALSE | ) |
Creates an output of the edit form for the question.
public
Definition at line 137 of file class.SurveyMatrixQuestionGUI.php.
References $columns, $errors, $title, ilObjAdvancedEditing\_getUsedHTMLTags(), ilFormPropertyGUI\setInfo(), ilFormPropertyGUI\setRequired(), ilTextInputGUI\setValue(), ilCheckboxInputGUI\setValue(), and ilTextAreaInputGUI\setValue().
& SurveyMatrixQuestionGUI::executeCommand | ( | ) |
execute command
Reimplemented from SurveyQuestionGUI.
Definition at line 68 of file class.SurveyMatrixQuestionGUI.php.
References $cmd, $ret, and SurveyQuestionGUI\getCommand().
SurveyMatrixQuestionGUI::getCumulatedResultsDetails | ( | $survey_id, | |
$counter | |||
) |
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 1292 of file class.SurveyMatrixQuestionGUI.php.
References $columns, and ilObjSurvey\_getNrOfParticipants().
SurveyMatrixQuestionGUI::getLayoutRow | ( | ) |
Creates a row to define the matrix question layout with percentage values.
public
Definition at line 1253 of file class.SurveyMatrixQuestionGUI.php.
Referenced by getPrintView(), and getWorkingForm().
SurveyMatrixQuestionGUI::getPrintView | ( | $question_title = 1 , |
|
$show_questiontext = 1 |
|||
) |
Creates a HTML representation of the question.
private
Reimplemented from SurveyQuestionGUI.
Definition at line 950 of file class.SurveyMatrixQuestionGUI.php.
References ilUtil\getHtmlPath(), ilUtil\getImagePath(), getLayoutRow(), SurveyQuestionGUI\outQuestionText(), and ilUtil\prepareFormOutput().
SurveyMatrixQuestionGUI::getWorkingForm | ( | $working_data = "" , |
|
$question_title = 1 , |
|||
$show_questiontext = 1 , |
|||
$error_message = "" |
|||
) |
Creates the question output form for the learner.
public
Definition at line 652 of file class.SurveyMatrixQuestionGUI.php.
References $data, getLayoutRow(), SurveyQuestionGUI\getMaterialOutput(), SurveyQuestionGUI\outQuestionText(), and ilUtil\prepareFormOutput().
Referenced by layout(), and preview().
SurveyMatrixQuestionGUI::insertStandardNumbers | ( | ) |
Insert standard numbers to the question.
public
Definition at line 626 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, addStandardNumbers(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
SurveyMatrixQuestionGUI::layout | ( | ) |
Creates a layout view of the question.
public
Definition at line 1219 of file class.SurveyMatrixQuestionGUI.php.
References getWorkingForm().
Referenced by saveLayout().
SurveyMatrixQuestionGUI::preview | ( | ) |
Creates a preview of the question.
private
Definition at line 1207 of file class.SurveyMatrixQuestionGUI.php.
References getWorkingForm().
SurveyMatrixQuestionGUI::removecolumns | ( | ) |
Remove a column.
Definition at line 383 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
SurveyMatrixQuestionGUI::removerows | ( | ) |
Remove a row.
Definition at line 339 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
SurveyMatrixQuestionGUI::saveLayout | ( | ) |
Saves the layout for the matrix question.
Definition at line 1234 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, and layout().
SurveyMatrixQuestionGUI::savePhrasecolumns | ( | $haserror = false | ) |
Creates an output to save the current answers as a phrase.
public
Definition at line 418 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, $_SESSION, $data, $result, and writePostData().
Referenced by confirmSavePhrase().
SurveyMatrixQuestionGUI::setQuestionTabs | ( | ) |
Definition at line 1470 of file class.SurveyMatrixQuestionGUI.php.
References $_GET, $_SESSION, $ref_id, $title, and SurveyQuestionGUI\getQuestionType().
SurveyMatrixQuestionGUI::SurveyMatrixQuestionGUI | ( | $id = -1 | ) |
SurveyMatrixQuestionGUI constructor.
The constructor takes possible arguments an creates an instance of the SurveyMatrixQuestionGUI object.
integer | $id | The database id of a matrix question object public |
Definition at line 50 of file class.SurveyMatrixQuestionGUI.php.
References SurveyQuestionGUI\SurveyQuestionGUI().
SurveyMatrixQuestionGUI::upcolumns | ( | ) |
Move a column up.
Definition at line 394 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
SurveyMatrixQuestionGUI::uprows | ( | ) |
Move a row up.
Definition at line 350 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
SurveyMatrixQuestionGUI::wizardcolumns | ( | $save_post_data = true | ) |
Creates an output for the addition of phrases.
public
Definition at line 502 of file class.SurveyMatrixQuestionGUI.php.
References $result, ilSurveyPhrases\_getAvailablePhrases(), ilSurveyPhrases\_getCategoriesForPhrase(), and writePostData().
Referenced by addSelectedPhrase().
SurveyMatrixQuestionGUI::writePostData | ( | $always = false | ) |
Evaluates a posted edit form and writes the form data in the question object.
Definition at line 89 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, and SurveyQuestionGUI\editQuestion().
Referenced by addcolumns(), addrows(), downcolumns(), downrows(), removecolumns(), removerows(), savePhrasecolumns(), upcolumns(), uprows(), and wizardcolumns().
SurveyMatrixQuestionGUI::$show_layout_row |
Definition at line 40 of file class.SurveyMatrixQuestionGUI.php.