| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
Matrix question GUI representation. More...
 Inheritance diagram for SurveyMatrixQuestionGUI:
 Inheritance diagram for SurveyMatrixQuestionGUI: Collaboration diagram for SurveyMatrixQuestionGUI:
 Collaboration diagram for SurveyMatrixQuestionGUI:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveyMatrixQuestionGUI::addrows | ( | ) | 
Add a new row.
Definition at line 328 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| SurveyMatrixQuestionGUI::cancelSavePhrase | ( | ) | 
Cancels the form saving a phrase.
public
Definition at line 465 of file class.SurveyMatrixQuestionGUI.php.
References ilUtil\sendInfo().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveyMatrixQuestionGUI::cancelStandardNumbers | ( | ) | 
Cancels the form adding standard numbers.
public
Definition at line 615 of file class.SurveyMatrixQuestionGUI.php.
References ilUtil\sendInfo().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveyMatrixQuestionGUI::cancelViewPhrase | ( | ) | 
Cancels the form adding a phrase.
public
Definition at line 547 of file class.SurveyMatrixQuestionGUI.php.
References ilUtil\sendInfo().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveyMatrixQuestionGUI::downcolumns | ( | ) | 
Move a column down.
Definition at line 405 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveyMatrixQuestionGUI::downrows | ( | ) | 
Move a row down.
Definition at line 361 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| & SurveyMatrixQuestionGUI::executeCommand | ( | ) | 
execute command
Reimplemented from SurveyQuestionGUI.
Definition at line 68 of file class.SurveyMatrixQuestionGUI.php.
References $cmd, $ret, and SurveyQuestionGUI\getCommand().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveyMatrixQuestionGUI::layout | ( | ) | 
Creates a layout view of the question.
public
Definition at line 1219 of file class.SurveyMatrixQuestionGUI.php.
References getWorkingForm().
Referenced by saveLayout().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| SurveyMatrixQuestionGUI::preview | ( | ) | 
Creates a preview of the question.
private
Definition at line 1207 of file class.SurveyMatrixQuestionGUI.php.
References getWorkingForm().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveyMatrixQuestionGUI::removecolumns | ( | ) | 
Remove a column.
Definition at line 383 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveyMatrixQuestionGUI::removerows | ( | ) | 
Remove a row.
Definition at line 339 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveyMatrixQuestionGUI::saveLayout | ( | ) | 
Saves the layout for the matrix question.
Definition at line 1234 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, and layout().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| SurveyMatrixQuestionGUI::setQuestionTabs | ( | ) | 
Definition at line 1470 of file class.SurveyMatrixQuestionGUI.php.
References $_GET, $_SESSION, $ref_id, $title, and SurveyQuestionGUI\getQuestionType().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveyMatrixQuestionGUI::upcolumns | ( | ) | 
Move a column up.
Definition at line 394 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
 Here is the call graph for this function:
 Here is the call graph for this function:| SurveyMatrixQuestionGUI::uprows | ( | ) | 
Move a row up.
Definition at line 350 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| SurveyMatrixQuestionGUI::$show_layout_row | 
Definition at line 40 of file class.SurveyMatrixQuestionGUI.php.