| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
Class ilPCQuestion. More...
 Inheritance diagram for ilPCQuestion:
 Inheritance diagram for ilPCQuestion: Collaboration diagram for ilPCQuestion:
 Collaboration diagram for ilPCQuestion:| 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. | |
|  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. | |
| 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) | |
| modifyPageContentPostXsl ($a_output, $a_mode) | |
| Modify page content after xsl. | |
| 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 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 | |
| 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 235 of file class.ilPCQuestion.php.
Referenced by ilObjMediaObject\getParentObjectIdForUsage().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Get all questions of a page.
Definition at line 212 of file class.ilPCQuestion.php.
References $res.
Referenced by ilSCORM2004Asset\exportHTMLPageObjects(), ilObjContentObject\exportHTMLPages(), ilSCORM2004Asset\exportPDFPrepareXmlNFiles(), ilSCORM2004Asset\exportXMLPageObjects(), ilObjectivesAlignmentTableGUI\fillRow(), ilLMPageObject\getQuestionIds(), and ilSCORM2004ScoGUI\sahs_questions().
 Here is the caller graph for this function:
 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 158 of file class.ilPCQuestion.php.
References ilPageContent\$node, ilInternalLink\_extractInstOfTarget(), and ilInternalLink\_extractObjIdOfTarget().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Before page is being deleted.
| object | page object | 
Reimplemented from ilPageContent.
Definition at line 200 of file class.ilPCQuestion.php.
| ilPCQuestion::copyPoolQuestionIntoPage | ( | $a_q_id, | |
| $a_hier_id | |||
| ) | 
Copy question from pool into page.
| @return | 
Definition at line 85 of file class.ilPCQuestion.php.
References $t, assQuestion\_instanciateQuestion(), assQuestionGUI\getSelfAssessmentTags(), and ilUtil\secureString().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilPCQuestion::create | ( | & | $a_pg_obj, | 
| $a_hier_id | |||
| ) | 
Create Question Element.
Definition at line 70 of file class.ilPCQuestion.php.
References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Get lang vars needed for editing.
Reimplemented from ilPageContent.
Definition at line 145 of file class.ilPCQuestion.php.
| ilPCQuestion::getQuestionReference | ( | ) | 
Get Question Reference.
Definition at line 58 of file class.ilPCQuestion.php.
| ilPCQuestion::init | ( | ) | 
Init page content component.
Reimplemented from ilPageContent.
Definition at line 26 of file class.ilPCQuestion.php.
References ilPageContent\setType().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilPCQuestion::setNode | ( | & | $a_node | ) | 
Set node.
Reimplemented from ilPageContent.
Definition at line 34 of file class.ilPCQuestion.php.
| ilPCQuestion::setQuestionReference | ( | $a_questionreference | ) | 
Set Question Reference.
| string | $a_questionreference | Question Reference | 
Definition at line 45 of file class.ilPCQuestion.php.
| ilPCQuestion::$dom | 
Definition at line 20 of file class.ilPCQuestion.php.
| ilPCQuestion::$q_node | 
Definition at line 21 of file class.ilPCQuestion.php.