ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilPCQuestion. More...
Public Member Functions | |
init () | |
Init page content component. | |
setNode (&$a_node) | |
Set node. | |
setQuestionReference ($a_questionreference) | |
Set Question Reference. | |
getQuestionReference () | |
Get Question Reference. | |
create (&$a_pg_obj, $a_hier_id) | |
Create Question Element. | |
copyPoolQuestionIntoPage ($a_q_id, $a_hier_id) | |
Copy question from pool into page. | |
_getPageForQuestionId ($a_q_id, $a_parent_type="") | |
Get page for question id. | |
modifyPageContentPostXsl ($a_output, $a_mode) | |
Modify page content after xsl. | |
getJavascriptFiles ($a_mode) | |
Get Javascript files. | |
getCssFiles ($a_mode) | |
Get css files. | |
getOnloadCode ($a_mode) | |
Get on load code. | |
getQuestionJsOfPage ($a_no_interaction, $a_mode) | |
Get question js. | |
Public Member Functions inherited from ilPageContent | |
__construct ($a_pg_obj) | |
Constructor. | |
setPage ($a_val) | |
Set page. | |
getPage () | |
Get page. | |
getType () | |
Get type of page content. | |
& | getNode () |
Get xml node of page content. | |
getJavascriptFiles () | |
Get Javascript files. | |
getCssFiles () | |
Get css files. | |
getOnloadCode () | |
Get on load code. | |
setHierId ($a_hier_id) | |
Set hierarchical ID in xml structure. | |
getHierId () | |
Get hierarchical id. | |
lookupHierId () | |
Get hierarchical id from dom. | |
readHierId () | |
Read PC Id. | |
setPcId ($a_pcid) | |
Set PC Id. | |
getPCId () | |
Get PC Id. | |
readPCId () | |
Read PC Id. | |
writePCId ($a_pc_id) | |
Write pc id. | |
isGreaterHierId ($a, $b) | |
Check whether Hier ID $a is greater than Hier ID $b. | |
setEnabled ($value) | |
Set Enabled value for page content component. | |
enable () | |
Enable page content. | |
disable () | |
Disable page content. | |
isEnabled () | |
Check whether page content is enabled. | |
createPageContentNode ($a_set_this_node=true) | |
Create page content node (always use this method first when adding a new element) |
Static Public Member Functions | |
static | getLangVars () |
Get lang vars needed for editing. | |
static | afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation) |
After page has been updated (or created) | |
static | beforePageDelete ($a_page) |
Before page is being deleted. | |
static | _getQuestionIdsForPage ($a_parent_type, $a_page_id, $a_lang="-") |
Get all questions of a page. | |
static | resetInitialState () |
Reset initial state (for exports) | |
static | getJSTextInitCode ($a_lang) |
Get js txt init code. | |
Static Public Member Functions inherited from ilPageContent | |
static | incEdId ($ed_id) |
Increases an hierarchical editing id at lowest level (last number) | |
static | decEdId ($ed_id) |
Decreases an hierarchical editing id at lowest level (last number) | |
static | haveSameContainer ($ed_id1, $ed_id2) |
Check, if two ids are in same container. | |
static | sortHierIds ($a_array) |
Sort an array of Hier IDS in ascending order. | |
static | handleCopiedContent (DOMDocument $a_domdoc, $a_self_ass=true, $a_clone_mobs=false) |
Handle copied content. | |
static | afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr) |
After page history entry has been created. |
Data Fields | |
$dom | |
$q_node | |
Data Fields inherited from ilPageContent | |
$hier_id | |
$node | |
$dom |
Static Protected Attributes | |
static | $initial_done |
Additional Inherited Members | |
Protected Member Functions inherited from ilPageContent | |
setType ($a_type) | |
Set Type. |
Class ilPCQuestion.
Assessment Question of ilPageObject
Definition at line 18 of file class.ilPCQuestion.php.
ilPCQuestion::_getPageForQuestionId | ( | $a_q_id, | |
$a_parent_type = "" |
|||
) |
Get page for question id.
@return | array |
Definition at line 237 of file class.ilPCQuestion.php.
References $ilDB.
Referenced by ilObjMediaObject\getParentObjectIdForUsage().
|
static |
Get all questions of a page.
Definition at line 214 of file class.ilPCQuestion.php.
Referenced by ilSCORM2004Asset\exportHTMLPageObjects(), ilObjContentObject\exportHTMLPages(), ilSCORM2004Asset\exportPDFPrepareXmlNFiles(), ilSCORM2004Asset\exportXMLPageObjects(), ilObjectivesAlignmentTableGUI\fillRow(), ilLMPageObject\getQuestionIds(), and ilSCORM2004ScoGUI\sahs_questions().
|
static |
After page has been updated (or created)
object | page object | |
DOMDocument | $a_domdoc | dom document |
string | xml | |
bool | true on creation, otherwise false |
Reimplemented from ilPageContent.
Definition at line 160 of file class.ilPCQuestion.php.
References $ilDB, ilPageContent\$node, ilInternalLink\_extractInstOfTarget(), and ilInternalLink\_extractObjIdOfTarget().
|
static |
Before page is being deleted.
object | page object |
Reimplemented from ilPageContent.
Definition at line 202 of file class.ilPCQuestion.php.
References $ilDB.
ilPCQuestion::copyPoolQuestionIntoPage | ( | $a_q_id, | |
$a_hier_id | |||
) |
Copy question from pool into page.
@return |
Definition at line 87 of file class.ilPCQuestion.php.
References $t, assQuestion\_instanciateQuestion(), assQuestionGUI\getSelfAssessmentTags(), and ilUtil\secureString().
ilPCQuestion::create | ( | & | $a_pg_obj, |
$a_hier_id | |||
) |
Create Question Element.
Definition at line 72 of file class.ilPCQuestion.php.
References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.
ilPCQuestion::getCssFiles | ( | $a_mode | ) |
Get css files.
Definition at line 346 of file class.ilPCQuestion.php.
References ilPageContent\getPage().
ilPCQuestion::getJavascriptFiles | ( | $a_mode | ) |
Get Javascript files.
Definition at line 323 of file class.ilPCQuestion.php.
References ilPageContent\getPage(), and IL_PAGE_PREVIEW.
|
static |
Get js txt init code.
@return |
Definition at line 406 of file class.ilPCQuestion.php.
Referenced by ilSCORM2004Asset\exportHTMLPageObjects(), and getOnloadCode().
|
static |
Get lang vars needed for editing.
Reimplemented from ilPageContent.
Definition at line 147 of file class.ilPCQuestion.php.
ilPCQuestion::getOnloadCode | ( | $a_mode | ) |
Get on load code.
Definition at line 359 of file class.ilPCQuestion.php.
References $ilCtrl, $ilUser, ilPageQuestionProcessor\getAnswerStatus(), getJSTextInitCode(), ilPageContent\getPage(), and IL_PAGE_PREVIEW.
ilPCQuestion::getQuestionJsOfPage | ( | $a_no_interaction, | |
$a_mode | |||
) |
Get question js.
Definition at line 439 of file class.ilPCQuestion.php.
References ilPageContent\getPage().
Referenced by modifyPageContentPostXsl().
ilPCQuestion::getQuestionReference | ( | ) |
Get Question Reference.
Definition at line 60 of file class.ilPCQuestion.php.
ilPCQuestion::init | ( | ) |
Init page content component.
Reimplemented from ilPageContent.
Definition at line 28 of file class.ilPCQuestion.php.
References ilPageContent\setType().
ilPCQuestion::modifyPageContentPostXsl | ( | $a_output, | |
$a_mode | |||
) |
Modify page content after xsl.
string | $a_output |
Reimplemented from ilPageContent.
Definition at line 260 of file class.ilPCQuestion.php.
References $lng, assQuestionGUI\_getQuestionGUI(), ilPageContent\getPage(), and getQuestionJsOfPage().
|
static |
Reset initial state (for exports)
Definition at line 315 of file class.ilPCQuestion.php.
Referenced by ilObjContentObject\exportPageHTML().
ilPCQuestion::setNode | ( | & | $a_node | ) |
Set node.
Reimplemented from ilPageContent.
Definition at line 36 of file class.ilPCQuestion.php.
ilPCQuestion::setQuestionReference | ( | $a_questionreference | ) |
Set Question Reference.
string | $a_questionreference | Question Reference |
Definition at line 47 of file class.ilPCQuestion.php.
ilPCQuestion::$dom |
Definition at line 20 of file class.ilPCQuestion.php.
|
staticprotected |
Definition at line 23 of file class.ilPCQuestion.php.
ilPCQuestion::$q_node |
Definition at line 21 of file class.ilPCQuestion.php.