ILIAS
Release_3_10_x_branch Revision 61812
|
Matrix question GUI representation. More...
Public Member Functions | |
SurveyMatrixQuestionGUI ($id=-1) | |
SurveyMatrixQuestionGUI constructor. | |
& | executeCommand () |
execute command | |
editQuestion () | |
Creates an output of the edit form for 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. | |
writePostData () | |
Evaluates a posted edit form and writes the form data in the question object. | |
moveColumnUp ($column) | |
Moves a column up. | |
moveColumnDown ($column) | |
Moves a column down. | |
categories () | |
Creates the form to edit the question columns. | |
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. | |
addColumn () | |
Adds a column to the question. | |
addRow () | |
Adds a row to the question. | |
writeRowColData ($save=FALSE) | |
Saves the columns and rows of the question. | |
saveRowColEditor () | |
Saves the rows and columns. | |
deleteColumn () | |
Removes one or more columns. | |
deleteRow () | |
Removes one or more rows. | |
getCumulatedResultRow ($counter, $css_class, $survey_id) | |
Creates 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 () | |
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 () | |
setQuestionTabsForClass ($guiclass) | |
getQuestionType () | |
Returns the question type string. |
Data Fields | |
$show_layout_row | |
Data Fields inherited from SurveyQuestionGUI | |
$object | |
$tpl | |
$lng | |
$cumulated |
Additional Inherited Members | |
Static Public Member Functions inherited from SurveyQuestionGUI | |
static & | _getQuestionGUI ($questiontype, $question_id=-1) |
Creates a question gui representation. |
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::addColumn | ( | ) |
Adds a column to the question.
Adds a column to the question
private
Definition at line 1470 of file class.SurveyMatrixQuestionGUI.php.
References $_SESSION, $result, categories(), and writeRowColData().
Referenced by addRow().
SurveyMatrixQuestionGUI::addPhrase | ( | ) |
Creates an output for the addition of phrases.
Creates an output for the addition of phrases
public
Definition at line 1218 of file class.SurveyMatrixQuestionGUI.php.
References $columns, ilSurveyPhrases\_getAvailablePhrases(), ilSurveyPhrases\_getCategoriesForPhrase(), and writeRowColData().
Referenced by addSelectedPhrase().
SurveyMatrixQuestionGUI::addRow | ( | ) |
Adds a row to the question.
Adds a row to the question
private
Definition at line 1485 of file class.SurveyMatrixQuestionGUI.php.
References addColumn().
SurveyMatrixQuestionGUI::addSelectedPhrase | ( | ) |
Adds a selected phrase.
Adds a selected phrase
public
Definition at line 1276 of file class.SurveyMatrixQuestionGUI.php.
References addPhrase(), addStandardNumbers(), and ilUtil\sendInfo().
SurveyMatrixQuestionGUI::addStandardNumbers | ( | ) |
Creates an output for the addition of standard numbers.
Creates an output for the addition of standard numbers
public
Definition at line 1306 of file class.SurveyMatrixQuestionGUI.php.
Referenced by addSelectedPhrase(), and insertStandardNumbers().
SurveyMatrixQuestionGUI::cancelSavePhrase | ( | ) |
Cancels the form saving a phrase.
Cancels the form saving a phrase
public
Definition at line 1430 of file class.SurveyMatrixQuestionGUI.php.
SurveyMatrixQuestionGUI::cancelStandardNumbers | ( | ) |
Cancels the form adding standard numbers.
Cancels the form adding standard numbers
public
Definition at line 1336 of file class.SurveyMatrixQuestionGUI.php.
SurveyMatrixQuestionGUI::cancelViewPhrase | ( | ) |
Cancels the form adding a phrase.
Cancels the form adding a phrase
public
Definition at line 1264 of file class.SurveyMatrixQuestionGUI.php.
SurveyMatrixQuestionGUI::categories | ( | ) |
Creates the form to edit the question columns.
Creates the form to edit the question columns
private
Definition at line 929 of file class.SurveyMatrixQuestionGUI.php.
References $_SESSION, ilUtil\getImagePath(), moveColumnDown(), moveColumnUp(), ilUtil\prepareFormOutput(), and ilUtil\sendInfo().
Referenced by addColumn(), deleteColumn(), deleteRow(), savePhrase(), and saveRowColEditor().
SurveyMatrixQuestionGUI::confirmSavePhrase | ( | ) |
Save a new phrase to the database.
Save a new phrase to the database
public
Definition at line 1442 of file class.SurveyMatrixQuestionGUI.php.
References savePhrase(), and ilUtil\sendInfo().
SurveyMatrixQuestionGUI::deleteColumn | ( | ) |
Removes one or more columns.
Removes one or more columns
private
Definition at line 1597 of file class.SurveyMatrixQuestionGUI.php.
References $_SESSION, categories(), ilUtil\sendInfo(), and writeRowColData().
SurveyMatrixQuestionGUI::deleteRow | ( | ) |
Removes one or more rows.
Removes one or more rows
private
Definition at line 1627 of file class.SurveyMatrixQuestionGUI.php.
References $_SESSION, categories(), ilUtil\sendInfo(), and writeRowColData().
SurveyMatrixQuestionGUI::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 90 of file class.SurveyMatrixQuestionGUI.php.
References $_GET, SurveyQuestion\_getInternalLinkHref(), ilRTE\_getRTEClassname(), ilObject\_lookupType(), and ilUtil\prepareFormOutput().
& SurveyMatrixQuestionGUI::executeCommand | ( | ) |
execute command
Reimplemented from SurveyQuestionGUI.
Definition at line 68 of file class.SurveyMatrixQuestionGUI.php.
References $cmd, $ret, and SurveyQuestionGUI\getCommand().
SurveyMatrixQuestionGUI::getCumulatedResultRow | ( | $counter, | |
$css_class, | |||
$survey_id | |||
) |
Creates the cumulated results row for the question.
Creates the cumulated results row for the question
Reimplemented from SurveyQuestionGUI.
Definition at line 1658 of file class.SurveyMatrixQuestionGUI.php.
References ilObjSurvey\_getNrOfParticipants().
SurveyMatrixQuestionGUI::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 1716 of file class.SurveyMatrixQuestionGUI.php.
References $columns, and ilObjSurvey\_getNrOfParticipants().
SurveyMatrixQuestionGUI::getLayoutRow | ( | ) |
Creates a row to define the matrix question layout with percentage values.
Creates a row to define the matrix question layout with percentage values
public
Definition at line 808 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.
Creates a HTML representation of the question
private
Reimplemented from SurveyQuestionGUI.
Definition at line 512 of file class.SurveyMatrixQuestionGUI.php.
References ilUtil\getHtmlPath(), ilUtil\getImagePath(), getLayoutRow(), and ilUtil\prepareFormOutput().
SurveyMatrixQuestionGUI::getWorkingForm | ( | $working_data = "" , |
|
$question_title = 1 , |
|||
$show_questiontext = 1 , |
|||
$error_message = "" |
|||
) |
Creates the question output form for the learner.
Creates the question output form for the learner
public
Definition at line 216 of file class.SurveyMatrixQuestionGUI.php.
References $data, SurveyQuestion\_getInternalLinkHref(), getLayoutRow(), and ilUtil\prepareFormOutput().
Referenced by layout(), and preview().
SurveyMatrixQuestionGUI::insertStandardNumbers | ( | ) |
Insert standard numbers to the question.
Insert standard numbers to the question
public
Definition at line 1348 of file class.SurveyMatrixQuestionGUI.php.
References addStandardNumbers(), and ilUtil\sendInfo().
SurveyMatrixQuestionGUI::layout | ( | ) |
Creates a layout view of the question.
Creates a layout view of the question
public
Definition at line 770 of file class.SurveyMatrixQuestionGUI.php.
References getWorkingForm().
Referenced by saveLayout().
SurveyMatrixQuestionGUI::moveColumnDown | ( | $column | ) |
Moves a column down.
Moves a column down
public
Definition at line 913 of file class.SurveyMatrixQuestionGUI.php.
References $_SESSION, and writeRowColData().
Referenced by categories().
SurveyMatrixQuestionGUI::moveColumnUp | ( | $column | ) |
Moves a column up.
Moves a column up
public
Definition at line 897 of file class.SurveyMatrixQuestionGUI.php.
References $_SESSION, and writeRowColData().
Referenced by categories().
SurveyMatrixQuestionGUI::preview | ( | ) |
Creates a preview of the question.
Creates a preview of the question
private
Definition at line 756 of file class.SurveyMatrixQuestionGUI.php.
References getWorkingForm().
SurveyMatrixQuestionGUI::saveLayout | ( | ) |
Saves the layout for the matrix question.
Saves the layout for the matrix question
Definition at line 787 of file class.SurveyMatrixQuestionGUI.php.
References layout().
SurveyMatrixQuestionGUI::savePhrase | ( | ) |
Creates an output to save a phrase.
Creates an output to save a phrase
public
Definition at line 1375 of file class.SurveyMatrixQuestionGUI.php.
References $_SESSION, categories(), ilUtil\sendInfo(), and writeRowColData().
Referenced by confirmSavePhrase().
SurveyMatrixQuestionGUI::saveRowColEditor | ( | ) |
Saves the rows and columns.
Saves the rows and columns
private
Definition at line 1561 of file class.SurveyMatrixQuestionGUI.php.
References $_GET, $_SESSION, SurveyQuestion\_isWriteable(), categories(), SurveyQuestionGUI\originalSyncForm(), ilUtil\sendInfo(), and writeRowColData().
SurveyMatrixQuestionGUI::setQuestionTabs | ( | ) |
Definition at line 1140 of file class.SurveyMatrixQuestionGUI.php.
References $_GET, $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::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 847 of file class.SurveyMatrixQuestionGUI.php.
References $result, ilObjAdvancedEditing\_getUsedHTMLTagsAsString(), SurveyQuestionGUI\addErrorMessage(), and ilUtil\stripSlashes().
SurveyMatrixQuestionGUI::writeRowColData | ( | $save = FALSE | ) |
Saves the columns and rows of the question.
Saves the columns and rows of the question
boolean | $save | If set to true the POST data will be saved to the database private |
Definition at line 1498 of file class.SurveyMatrixQuestionGUI.php.
References SurveyQuestionGUI\addErrorMessage(), and ilUtil\stripSlashes().
Referenced by addColumn(), addPhrase(), deleteColumn(), deleteRow(), moveColumnDown(), moveColumnUp(), savePhrase(), and saveRowColEditor().
SurveyMatrixQuestionGUI::$show_layout_row |
Definition at line 40 of file class.SurveyMatrixQuestionGUI.php.