ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilPCQuestion. More...
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) | |
Modify page content after xsl. 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... | |
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) | |
Modify page content after xsl. 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 | |
$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.
Definition at line 273 of file class.ilPCQuestion.php.
References $DIC, $ilDB, and array.
Referenced by ilObjMediaObject\getParentObjectIdForUsage().
|
static |
Get all questions of a page.
Definition at line 247 of file class.ilPCQuestion.php.
References $DIC, $ilDB, $res, and array.
Referenced by ilSCORM2004Asset\exportHTMLPageObjects(), ilObjContentObject\exportHTMLPages(), ilSCORM2004Asset\exportPDFPrepareXmlNFiles(), ilSCORM2004Asset\exportXMLPageObjects(), ilObjectivesAlignmentTableGUI\fillRow(), ilLMPageObject\getQuestionIds(), ilLearningModuleExporter\getXmlRepresentation(), 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 |
Definition at line 186 of file class.ilPCQuestion.php.
References $DIC, $ilDB, ilPageContent\$node, ilInternalLink\_extractInstOfTarget(), ilInternalLink\_extractObjIdOfTarget(), and array.
|
static |
Before page is being deleted.
object | page object |
Definition at line 230 of file class.ilPCQuestion.php.
References $DIC, $ilDB, and array.
ilPCQuestion::copyPoolQuestionIntoPage | ( | $a_q_id, | |
$a_hier_id | |||
) |
Copy question from pool into page.
Definition at line 105 of file class.ilPCQuestion.php.
References assQuestion\_instanciateQuestion(), and ilAssSelfAssessmentQuestionFormatter\prepareQuestionForLearningModule().
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.
ilPCQuestion::getCssFiles | ( | $a_mode | ) |
Get css files.
Definition at line 392 of file class.ilPCQuestion.php.
References array, and ilPageContent\getPage().
ilPCQuestion::getJavascriptFiles | ( | $a_mode | ) |
Get Javascript files.
Definition at line 366 of file class.ilPCQuestion.php.
References $DIC, array, ilPageContent\getPage(), and IL_PAGE_PREVIEW.
|
static |
Get js txt init code.
Definition at line 446 of file class.ilPCQuestion.php.
References $DIC, $ilUser, and $lng.
Referenced by ilSCORM2004Asset\exportHTMLPageObjects().
|
static |
Get lang vars needed for editing.
Definition at line 173 of file class.ilPCQuestion.php.
References array.
ilPCQuestion::getOnloadCode | ( | $a_mode | ) |
Get on load code.
Definition at line 404 of file class.ilPCQuestion.php.
References $as, $code, $ctrl, $ilCtrl, $ilUser, $url, $user, array, ilPageQuestionProcessor\getAnswerStatus(), ilPageContent\getPage(), and IL_PAGE_PREVIEW.
ilPCQuestion::getQuestionJsOfPage | ( | $a_no_interaction, | |
$a_mode | |||
) |
Get question js.
Definition at line 482 of file class.ilPCQuestion.php.
References $js, array, and ilPageContent\getPage().
Referenced by modifyPageContentPostXsl().
ilPCQuestion::getQuestionReference | ( | ) |
Get Question Reference.
Definition at line 79 of file class.ilPCQuestion.php.
ilPCQuestion::init | ( | ) |
Init page content component.
Definition at line 43 of file class.ilPCQuestion.php.
References $DIC, ilPageContent\setType(), and user().
ilPCQuestion::modifyPageContentPostXsl | ( | $a_output, | |
$a_mode | |||
) |
Modify page content after xsl.
string | $a_output |
Definition at line 297 of file class.ilPCQuestion.php.
References $h, $lng, assQuestionGUI\_getQuestionGUI(), ilPageContent\getPage(), getQuestionJsOfPage(), and ilQuestionExporter\questionsJS().
|
static |
Reset initial state (for exports)
Definition at line 358 of file class.ilPCQuestion.php.
Referenced by ilObjContentObject\exportPageHTML().
ilPCQuestion::setNode | ( | $a_node | ) |
Set node.
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().