|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilPCQuestion. More...
Inheritance diagram for ilPCQuestion:
Collaboration diagram for ilPCQuestion:Public Member Functions | |
| init () | |
| Init page content component. More... | |
| setNode ($a_node) | |
| Set node. More... | |
| setQuestionReference ($a_questionreference) | |
| Set Question Reference. More... | |
| getQuestionReference () | |
| Get Question Reference. More... | |
| create (&$a_pg_obj, $a_hier_id) | |
| Create Question Element. More... | |
| copyPoolQuestionIntoPage ($a_q_id, $a_hier_id) | |
| Copy question from pool into page. More... | |
| modifyPageContentPostXsl ($a_output, $a_mode, $a_abstract_only=false) | |
| @inheritDoc More... | |
| getJavascriptFiles ($a_mode) | |
| Get Javascript files. More... | |
| getCssFiles ($a_mode) | |
| Get css files. More... | |
| getOnloadCode ($a_mode) | |
| Get on load code. More... | |
| getQuestionJsOfPage ($a_no_interaction, $a_mode) | |
| Get question js. More... | |
Public Member Functions inherited from ilPageContent | |
| __construct ($a_pg_obj) | |
| Constructor. More... | |
| setPage ($a_val) | |
| Set page. More... | |
| getPage () | |
| Get page. More... | |
| init () | |
| Init object. More... | |
| getType () | |
| Get type of page content. More... | |
| setNode ($a_node) | |
| Set xml node of page content. More... | |
| & | getNode () |
| Get xml node of page content. More... | |
| getJavascriptFiles ($a_mode) | |
| Get Javascript files. More... | |
| getCssFiles ($a_mode) | |
| Get css files. More... | |
| getOnloadCode ($a_mode) | |
| Get on load code. More... | |
| setHierId ($a_hier_id) | |
| Set hierarchical ID in xml structure. More... | |
| getHierId () | |
| Get hierarchical id. More... | |
| lookupHierId () | |
| Get hierarchical id from dom. More... | |
| readHierId () | |
| Read PC Id. More... | |
| setPcId ($a_pcid) | |
| Set PC Id. More... | |
| getPCId () | |
| Get PC Id. More... | |
| setFileDownloadLink ($a_download_link) | |
| Set file download link. More... | |
| getFileDownloadLink () | |
| Get file download link. More... | |
| setProfileBackUrl ($url) | |
| getProfileBackUrl () | |
| setFullscreenLink ($a_fullscreen_link) | |
| Set fullscreen link. More... | |
| getFullscreenLink () | |
| Get fullscreen link. More... | |
| setSourcecodeDownloadScript ($script_name) | |
| Set sourcecode download script. More... | |
| getSourcecodeDownloadScript () | |
| Get sourcecode download script. More... | |
| readPCId () | |
| Read PC Id. More... | |
| writePCId ($a_pc_id) | |
| Write pc id. More... | |
| setEnabled ($value) | |
| Set Enabled value for page content component. More... | |
| enable () | |
| Enable page content. More... | |
| disable () | |
| Disable page content. More... | |
| isEnabled () | |
| Check whether page content is enabled. More... | |
| createPageContentNode ($a_set_this_node=true) | |
| Create page content node (always use this method first when adding a new element) More... | |
| modifyPageContentPostXsl ($a_output, $a_mode, $a_abstract_only=false) | |
| Modify page content after xsl. More... | |
| getModel () | |
| Get model. More... | |
Static Public Member Functions | |
| static | getLangVars () |
| Get lang vars needed for editing. More... | |
| static | afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation) |
| After page has been updated (or created) More... | |
| static | beforePageDelete ($a_page) |
| Before page is being deleted. More... | |
| static | _getQuestionIdsForPage ($a_parent_type, $a_page_id, $a_lang="-") |
| Get all questions of a page. More... | |
| static | _getPageForQuestionId ($a_q_id, $a_parent_type="") |
| Get page for question id. More... | |
| static | resetInitialState () |
| Reset initial state (for exports) More... | |
| static | getJSTextInitCode ($a_lang) |
| Get js txt init code. More... | |
Static Public Member Functions inherited from ilPageContent | |
| static | incEdId ($ed_id) |
| Increases an hierarchical editing id at lowest level (last number) More... | |
| static | decEdId ($ed_id) |
| Decreases an hierarchical editing id at lowest level (last number) More... | |
| static | haveSameContainer ($ed_id1, $ed_id2) |
| Check, if two ids are in same container. More... | |
| static | sortHierIds ($a_array) |
| Sort an array of Hier IDS in ascending order. More... | |
| static | isGreaterHierId ($a, $b) |
| Check whether Hier ID $a is greater than Hier ID $b. More... | |
| static | getLangVars () |
| Get lang vars needed for editing. More... | |
| static | handleCopiedContent (DOMDocument $a_domdoc, $a_self_ass=true, $a_clone_mobs=false) |
| Handle copied content. More... | |
| static | afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation) |
| After page has been updated (or created) More... | |
| static | beforePageDelete ($a_page) |
| Before page is being deleted. More... | |
| static | afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr) |
| After page history entry has been created. More... | |
Data Fields | |
| $dom | |
| $q_node | |
Data Fields inherited from ilPageContent | |
| $hier_id | |
| $node | |
| $dom | |
| $page_lang | |
Protected Attributes | |
| $lng | |
| $ctrl | |
| $user | |
Protected Attributes inherited from ilPageContent | |
| $profile_back_url | |
| $file_download_link | |
| $fullscreen_link | |
| $sourcecode_download_script | |
| $log | |
Static Protected Attributes | |
| static | $initial_done |
Additional Inherited Members | |
Protected Member Functions inherited from ilPageContent | |
| setType ($a_type) | |
| Set Type. More... | |
Class ilPCQuestion.
Assessment Question of ilPageObject
Definition at line 18 of file class.ilPCQuestion.php.
|
static |
Get page for question id.
return array
Definition at line 279 of file class.ilPCQuestion.php.
Referenced by ilObjMediaObject\getParentObjectIdForUsage().
Here is the caller graph for this function:
|
static |
Get all questions of a page.
Definition at line 251 of file class.ilPCQuestion.php.
References $DIC, $ilDB, and $res.
Referenced by ilCOPageHTMLExport\collectPageElements(), ilSCORM2004Asset\exportHTMLPageObjects(), ilSCORM2004Asset\exportPDFPrepareXmlNFiles(), ilSCORM2004Asset\exportXMLPageObjects(), ilObjectivesAlignmentTableGUI\fillRow(), ilLMPageObject\getQuestionIds(), ilLearningModuleExporter\getXmlRepresentation(), and ilSCORM2004ScoGUI\sahs_questions().
Here is the caller graph for this function:
|
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 186 of file class.ilPCQuestion.php.
References $DIC, $ilDB, ilPageContent\$node, ilInternalLink\_extractInstOfTarget(), and ilInternalLink\_extractObjIdOfTarget().
Here is the call graph for this function:
|
static |
Before page is being deleted.
| object | page object |
Reimplemented from ilPageContent.
Definition at line 234 of file class.ilPCQuestion.php.
| ilPCQuestion::copyPoolQuestionIntoPage | ( | $a_q_id, | |
| $a_hier_id | |||
| ) |
Copy question from pool into page.
return
Definition at line 105 of file class.ilPCQuestion.php.
References assQuestion\_instanciateQuestion(), and ilAssSelfAssessmentQuestionFormatter\prepareQuestionForLearningModule().
Here is the call graph for this function:| ilPCQuestion::create | ( | & | $a_pg_obj, |
| $a_hier_id | |||
| ) |
Create Question Element.
Definition at line 90 of file class.ilPCQuestion.php.
References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.
Here is the call graph for this function:| ilPCQuestion::getCssFiles | ( | $a_mode | ) |
Get css files.
Reimplemented from ilPageContent.
Definition at line 396 of file class.ilPCQuestion.php.
References ilPageContent\getPage().
Here is the call graph for this function:| ilPCQuestion::getJavascriptFiles | ( | $a_mode | ) |
Get Javascript files.
Reimplemented from ilPageContent.
Definition at line 369 of file class.ilPCQuestion.php.
References assQuestionGUI\_getQuestionGUI(), ilPageContent\getPage(), and ilPageObjectGUI\PREVIEW.
Here is the call graph for this function:
|
static |
Get js txt init code.
return
Definition at line 450 of file class.ilPCQuestion.php.
References $DIC, $ilUser, and $lng.
Referenced by ilSCORM2004Asset\exportHTMLPageObjects(), and getOnloadCode().
Here is the caller graph for this function:
|
static |
Get lang vars needed for editing.
Reimplemented from ilPageContent.
Definition at line 173 of file class.ilPCQuestion.php.
| ilPCQuestion::getOnloadCode | ( | $a_mode | ) |
Get on load code.
Reimplemented from ilPageContent.
Definition at line 408 of file class.ilPCQuestion.php.
References $ctrl, $ilUser, $url, $user, ilPageQuestionProcessor\getAnswerStatus(), getJSTextInitCode(), ilPageContent\getPage(), and ilPageObjectGUI\PREVIEW.
Here is the call graph for this function:| ilPCQuestion::getQuestionJsOfPage | ( | $a_no_interaction, | |
| $a_mode | |||
| ) |
Get question js.
Definition at line 487 of file class.ilPCQuestion.php.
References ilPageContent\getPage().
Referenced by modifyPageContentPostXsl().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPCQuestion::getQuestionReference | ( | ) |
Get Question Reference.
Definition at line 79 of file class.ilPCQuestion.php.
| ilPCQuestion::init | ( | ) |
Init page content component.
Reimplemented from ilPageContent.
Definition at line 43 of file class.ilPCQuestion.php.
References $DIC, ilPageContent\setType(), and user().
Here is the call graph for this function:| ilPCQuestion::modifyPageContentPostXsl | ( | $a_output, | |
| $a_mode, | |||
$a_abstract_only = false |
|||
| ) |
@inheritDoc
Reimplemented from ilPageContent.
Definition at line 300 of file class.ilPCQuestion.php.
References $lng, assQuestionGUI\_getQuestionGUI(), ilPageContent\getPage(), getQuestionJsOfPage(), and ilQuestionExporter\questionsJS().
Here is the call graph for this function:
|
static |
Reset initial state (for exports)
Definition at line 361 of file class.ilPCQuestion.php.
Referenced by ILIAS\Blog\Export\BlogHtmlExport\getInitialisedTemplate(), ILIAS\Portfolio\Export\PortfolioHtmlExport\getInitialisedTemplate(), ILIAS\LearningModule\Export\LMHtmlExport\initScreen(), and ILIAS\Glossary\Export\GlossaryHtmlExport\initScreen().
Here is the caller graph for this function:| ilPCQuestion::setNode | ( | $a_node | ) |
Set node.
Reimplemented from ilPageContent.
Definition at line 56 of file class.ilPCQuestion.php.
| ilPCQuestion::setQuestionReference | ( | $a_questionreference | ) |
Set Question Reference.
| string | $a_questionreference | Question Reference |
Definition at line 67 of file class.ilPCQuestion.php.
|
protected |
Definition at line 28 of file class.ilPCQuestion.php.
Referenced by getOnloadCode().
| ilPCQuestion::$dom |
Definition at line 35 of file class.ilPCQuestion.php.
|
staticprotected |
Definition at line 38 of file class.ilPCQuestion.php.
|
protected |
Definition at line 23 of file class.ilPCQuestion.php.
Referenced by getJSTextInitCode(), and modifyPageContentPostXsl().
| ilPCQuestion::$q_node |
Definition at line 36 of file class.ilPCQuestion.php.
|
protected |
Definition at line 33 of file class.ilPCQuestion.php.
Referenced by getOnloadCode().