ILIAS
release_4-3 Revision
|
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. | |
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 () | |
redirectAfterSaving ($a_return=false) | |
Redirect to calling survey or to edit form. | |
saveSync () | |
save question and return to calling survey | |
saveReturn () | |
save question and return to calling survey | |
save ($a_return=false, $a_sync=false) | |
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 () | |
isSaveCommand (array $a_cmds=array()) | |
preview () | |
Creates a preview of the question. |
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 | |
addCommandButtons ($a_form) | |
getMaterialOutput () | |
Creates the HTML output of the question material(s) | |
outQuestionText ($template) | |
renderChart ($a_id, $a_variables) | |
copySyncForm () | |
syncCopies () |
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 366 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
SurveyMatrixQuestionGUI::addrows | ( | ) |
Add a new row.
Definition at line 322 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
SurveyMatrixQuestionGUI::addSelectedPhrase | ( | ) |
Adds a selected phrase.
public
Definition at line 552 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 581 of file class.SurveyMatrixQuestionGUI.php.
References $_POST.
Referenced by addSelectedPhrase(), and insertStandardNumbers().
SurveyMatrixQuestionGUI::cancelSavePhrase | ( | ) |
Cancels the form saving a phrase.
public
Definition at line 459 of file class.SurveyMatrixQuestionGUI.php.
References ilUtil\sendInfo().
SurveyMatrixQuestionGUI::cancelStandardNumbers | ( | ) |
Cancels the form adding standard numbers.
public
Definition at line 609 of file class.SurveyMatrixQuestionGUI.php.
References ilUtil\sendInfo().
SurveyMatrixQuestionGUI::cancelViewPhrase | ( | ) |
Cancels the form adding a phrase.
public
Definition at line 541 of file class.SurveyMatrixQuestionGUI.php.
References ilUtil\sendInfo().
SurveyMatrixQuestionGUI::confirmSavePhrase | ( | ) |
Save a new phrase to the database.
public
Definition at line 470 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, savePhrasecolumns(), ilUtil\sendInfo(), and ilUtil\sendSuccess().
SurveyMatrixQuestionGUI::downcolumns | ( | ) |
Move a column down.
Definition at line 399 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
SurveyMatrixQuestionGUI::downrows | ( | ) |
Move a row down.
Definition at line 355 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(), SurveyQuestionGUI\addCommandButtons(), SurveyQuestionGUI\isSaveCommand(), 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 1289 of file class.SurveyMatrixQuestionGUI.php.
References $columns, ilObjSurvey\_getNrOfParticipants(), and SurveyQuestionGUI\renderChart().
SurveyMatrixQuestionGUI::getLayoutRow | ( | ) |
Creates a row to define the matrix question layout with percentage values.
public
Definition at line 1249 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 944 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 646 of file class.SurveyMatrixQuestionGUI.php.
References $data, getLayoutRow(), SurveyQuestionGUI\getMaterialOutput(), SurveyQuestionGUI\outQuestionText(), and ilUtil\prepareFormOutput().
Referenced by layout().
SurveyMatrixQuestionGUI::insertStandardNumbers | ( | ) |
Insert standard numbers to the question.
public
Definition at line 620 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 1201 of file class.SurveyMatrixQuestionGUI.php.
References getWorkingForm().
Referenced by saveLayout().
SurveyMatrixQuestionGUI::removecolumns | ( | ) |
Remove a column.
Definition at line 377 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
SurveyMatrixQuestionGUI::removerows | ( | ) |
Remove a row.
Definition at line 333 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
SurveyMatrixQuestionGUI::saveLayout | ( | ) |
Saves the layout for the matrix question.
Definition at line 1216 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, layout(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
SurveyMatrixQuestionGUI::savePhrasecolumns | ( | $haserror = false | ) |
Creates an output to save the current answers as a phrase.
public
Definition at line 412 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, $_SESSION, $data, $result, and writePostData().
Referenced by confirmSavePhrase().
SurveyMatrixQuestionGUI::setQuestionTabs | ( | ) |
Definition at line 1444 of file class.SurveyMatrixQuestionGUI.php.
References $_GET, $_REQUEST, $_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 388 of file class.SurveyMatrixQuestionGUI.php.
References $_POST, SurveyQuestionGUI\editQuestion(), and writePostData().
SurveyMatrixQuestionGUI::uprows | ( | ) |
Move a row up.
Definition at line 344 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 496 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.