ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilPCQuestionGUI. More...
Public Member Functions | |
ilPCQuestionGUI (&$a_pg_obj, &$a_content_obj, $a_hier_id, $a_pc_id="") | |
Constructor public. | |
& | executeCommand () |
execute command | |
setSelfAssessmentMode ($a_selfassessmentmode) | |
Set Self Assessment Mode. | |
getSelfAssessmentMode () | |
Get Self Assessment Mode. | |
setInsertTabs ($a_active) | |
Set insert tabs. | |
insert ($a_mode="create") | |
Insert new question form. | |
create () | |
Create new question. | |
setNewQuestionId ($a_par) | |
Set new question id. | |
edit () | |
edit question | |
feedback () | |
createQuestionPool ($name="Dummy") | |
Creates a new questionpool and returns the reference id. | |
setTabs () | |
Set tabs. | |
insertFromPool () | |
Insert question from ppol. | |
poolSelection () | |
Pool selection. | |
selectPool () | |
Select concrete question pool. | |
listPoolQuestions () | |
List questions of pool. | |
copyQuestion () | |
Copy question into page. | |
Public Member Functions inherited from ilPageContentGUI | |
ilPageContentGUI ($a_pg_obj, $a_content_obj, $a_hier_id=0, $a_pc_id="") | |
Constructor public. | |
setContentObject ($a_val) | |
Set content object. | |
getContentObject () | |
Get content object. | |
setPage ($a_val) | |
Set page. | |
getPage () | |
Get page. | |
setPageConfig ($a_val) | |
Set Page Config. | |
getPageConfig () | |
Get Page Config. | |
setStyleId ($a_styleid) | |
Set Style Id. | |
getStyleId () | |
Get Style Id. | |
getStyle () | |
Get style object. | |
setCharacteristics ($a_chars) | |
Set Characteristics. | |
getCharacteristics () | |
Get characteristics. | |
getHierId () | |
get hierarchical id in dom object | |
setHierId ($a_hier_id) | |
get hierarchical id in dom object | |
getBBMenu ($a_ta_name="par_content") | |
Get the bb menu incl. | |
delete () | |
delete content element | |
moveAfter () | |
move content element after another element | |
moveBefore () | |
move content element before another element | |
splitPage () | |
split page to new page at specified position | |
splitPageNext () | |
split page to next page at specified position | |
displayValidationError () | |
display validation errors | |
cancelCreate () | |
cancel creating page content | |
cancelUpdate () | |
cancel update | |
cancel () | |
Cancel. | |
deactivate () | |
gui function set enabled if is not enabled and vice versa | |
cut () | |
Cut single element. | |
copy () | |
Copy single element. | |
getTemplateOptions ($a_type) | |
Get table templates. |
Additional Inherited Members | |
Static Public Member Functions inherited from ilPageContentGUI | |
static | _getCommonBBButtons () |
Get common bb buttons. | |
Data Fields inherited from ilPageContentGUI | |
$content_obj | |
$ilias | |
$tpl | |
$lng | |
$ctrl | |
$pg_obj | |
$hier_id | |
$dom | |
$updated | |
$target_script | |
$return_location | |
$page_config = null | |
Static Public Attributes inherited from ilPageContentGUI | |
static | $style_selector_reset = "margin-top:2px; margin-bottom:2px; text-indent:0px; position:static; float:none; width: auto;" |
Protected Member Functions inherited from ilPageContentGUI | |
getCharacteristicsOfCurrentStyle ($a_type) | |
Get characteristics of current style. | |
Static Protected Attributes inherited from ilPageContentGUI | |
static | $common_bb_buttons |
Class ilPCQuestionGUI.
Adapter User Interface class for assessment questions
Definition at line 18 of file class.ilPCQuestionGUI.php.
ilPCQuestionGUI::copyQuestion | ( | ) |
Copy question into page.
@return |
Definition at line 566 of file class.ilPCQuestionGUI.php.
References $_GET, $ilCtrl, and ilPageContentGUI\getPage().
ilPCQuestionGUI::create | ( | ) |
Create new question.
Definition at line 218 of file class.ilPCQuestionGUI.php.
References $_POST, ilPageContentGUI\$hier_id, $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\getPage(), and insert().
ilPCQuestionGUI::createQuestionPool | ( | $name = "Dummy" | ) |
Creates a new questionpool and returns the reference id.
Creates a new questionpool and returns the reference id
Definition at line 399 of file class.ilPCQuestionGUI.php.
References $_GET.
ilPCQuestionGUI::edit | ( | ) |
edit question
Definition at line 272 of file class.ilPCQuestionGUI.php.
References $_GET, $_POST, $_REQUEST, $ilCtrl, $ret, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), assQuestionGUI\_getQuestionGUI(), ilObjSAHSLearningModule\_getTries(), assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_DEFAULT, getSelfAssessmentMode(), insert(), and ilObjAssessmentFolder\isAdditionalQuestionContentEditingModePageObjectEnabled().
& ilPCQuestionGUI::executeCommand | ( | ) |
execute command
Definition at line 35 of file class.ilPCQuestionGUI.php.
References $_GET, $_POST, $cmd, $ilCtrl, ilPageContentGUI\$lng, $ret, ilPageContentGUI\$tpl, and setTabs().
ilPCQuestionGUI::feedback | ( | ) |
Definition at line 356 of file class.ilPCQuestionGUI.php.
References $ilCtrl, $ret, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), and ilPageContentGUI\getPageConfig().
ilPCQuestionGUI::getSelfAssessmentMode | ( | ) |
Get Self Assessment Mode.
Definition at line 83 of file class.ilPCQuestionGUI.php.
Referenced by edit(), and setTabs().
ilPCQuestionGUI::ilPCQuestionGUI | ( | & | $a_pg_obj, |
& | $a_content_obj, | ||
$a_hier_id, | |||
$a_pc_id = "" |
|||
) |
Constructor public.
Definition at line 24 of file class.ilPCQuestionGUI.php.
References $ilCtrl, and ilPageContentGUI\ilPageContentGUI().
ilPCQuestionGUI::insert | ( | $a_mode = "create" | ) |
Insert new question form.
Definition at line 116 of file class.ilPCQuestionGUI.php.
References $ilCtrl, $ilUser, ilPageContentGUI\$lng, $options, ilObjQuestionPool\_getSelfAssessmentQuestionTypes(), assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_DEFAULT, assQuestion\ADDITIONAL_CONTENT_EDITING_MODE_PAGE_OBJECT, ilRadioGroupInputGUI\addOption(), ilPageContentGUI\displayValidationError(), ilObjAssessmentFolder\isAdditionalQuestionContentEditingModePageObjectEnabled(), setInsertTabs(), ilSelectInputGUI\setOptions(), and ilUtil\sortArray().
Referenced by create(), and edit().
ilPCQuestionGUI::insertFromPool | ( | ) |
Insert question from ppol.
Definition at line 475 of file class.ilPCQuestionGUI.php.
References $_SESSION, $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilObject\_lookupObjId(), ilObject\_lookupType(), listPoolQuestions(), and poolSelection().
ilPCQuestionGUI::listPoolQuestions | ( | ) |
List questions of pool.
@return |
Definition at line 537 of file class.ilPCQuestionGUI.php.
References $_SESSION, $ilCtrl, ilPageContentGUI\$lng, ilPageContentGUI\$tpl, ilUtil\sendInfo(), and setInsertTabs().
Referenced by insertFromPool().
ilPCQuestionGUI::poolSelection | ( | ) |
Pool selection.
@return |
Definition at line 497 of file class.ilPCQuestionGUI.php.
References $ilCtrl, ilPageContentGUI\$tpl, and setInsertTabs().
Referenced by insertFromPool().
ilPCQuestionGUI::selectPool | ( | ) |
ilPCQuestionGUI::setInsertTabs | ( | $a_active | ) |
Set insert tabs.
string | $a_active | active tab id |
Definition at line 93 of file class.ilPCQuestionGUI.php.
References $ilCtrl, and ilPageContentGUI\$lng.
Referenced by insert(), listPoolQuestions(), and poolSelection().
ilPCQuestionGUI::setNewQuestionId | ( | $a_par | ) |
Set new question id.
Definition at line 260 of file class.ilPCQuestionGUI.php.
ilPCQuestionGUI::setSelfAssessmentMode | ( | $a_selfassessmentmode | ) |
Set Self Assessment Mode.
boolean | $a_selfassessmentmode | Self Assessment Mode |
Definition at line 73 of file class.ilPCQuestionGUI.php.
ilPCQuestionGUI::setTabs | ( | ) |
Set tabs.
Definition at line 420 of file class.ilPCQuestionGUI.php.
References $ilCtrl, ilPageContentGUI\$lng, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), assQuestion\_getQuestionType(), ilUtil\appendUrlParameterString(), ilAssQuestionFeedbackEditingGUI\CMD_SHOW, assQuestionGUI\getCommandsFromClassConstants(), and getSelfAssessmentMode().
Referenced by executeCommand().