ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPCQuestionOverview Class Reference

Question overview page content element. More...

+ Inheritance diagram for ilPCQuestionOverview:
+ Collaboration diagram for ilPCQuestionOverview:

Public Member Functions

 init ()
 Init page content component.
 setNode (&$a_node)
 Set node.
 create (&$a_pg_obj, $a_hier_id, $a_pc_id="")
 Create question overview node in xml.
 setShortMessage ($a_val)
 Set short message.
 getShortMessage ()
 Get short message.
 setListWrongQuestions ($a_val)
 Set list wrong questions.
 getListWrongQuestions ()
 Get list wrong questions.
- 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.

Data Fields

 $dom
 $qover_node
- Data Fields inherited from ilPageContent
 $hier_id
 $node
 $dom

Additional Inherited Members

- 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 getLangVars ()
 Get lang vars needed for editing.
static handleCopiedContent (DOMDocument $a_domdoc, $a_self_ass=true, $a_clone_mobs=false)
 Handle copied content.
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 afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr)
 After page history entry has been created.
- Protected Member Functions inherited from ilPageContent
 setType ($a_type)
 Set Type.

Detailed Description

Question overview page content element.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 15 of file class.ilPCQuestionOverview.php.

Member Function Documentation

ilPCQuestionOverview::create ( $a_pg_obj,
  $a_hier_id,
  $a_pc_id = "" 
)

Create question overview node in xml.

Parameters
object$a_pg_objPage Object
string$a_hier_idHierarchical ID

Definition at line 43 of file class.ilPCQuestionOverview.php.

References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.

{
$this->node = $this->createPageContentNode();
$a_pg_obj->insertContent($this, $a_hier_id, IL_INSERT_AFTER, $a_pc_id);
$this->qover_node = $this->dom->create_element("QuestionOverview");
$this->qover_node = $this->node->append_child($this->qover_node);
$this->qover_node->set_attribute("ShortMessage", "y");
}

+ Here is the call graph for this function:

ilPCQuestionOverview::getListWrongQuestions ( )

Get list wrong questions.

Returns
boolean

Definition at line 114 of file class.ilPCQuestionOverview.php.

{
if (is_object($this->qover_node))
{
if ($this->qover_node->get_attribute("ListWrongQuestions") == "y")
{
return true;
}
}
return false;
}
ilPCQuestionOverview::getShortMessage ( )

Get short message.

Returns
boolean

Definition at line 77 of file class.ilPCQuestionOverview.php.

{
if (is_object($this->qover_node))
{
if ($this->qover_node->get_attribute("ShortMessage") == "y")
{
return true;
}
}
return false;
}
ilPCQuestionOverview::init ( )

Init page content component.

Reimplemented from ilPageContent.

Definition at line 23 of file class.ilPCQuestionOverview.php.

References ilPageContent\setType().

{
$this->setType("qover");
}

+ Here is the call graph for this function:

ilPCQuestionOverview::setListWrongQuestions (   $a_val)

Set list wrong questions.

Parameters
boolean$a_valt/f

Definition at line 94 of file class.ilPCQuestionOverview.php.

{
if ($a_val)
{
$this->qover_node->set_attribute("ListWrongQuestions", "y");
}
else
{
if ($this->qover_node->has_attribute("ListWrongQuestions"))
{
$this->qover_node->remove_attribute("ListWrongQuestions");
}
}
}
ilPCQuestionOverview::setNode ( $a_node)

Set node.

Reimplemented from ilPageContent.

Definition at line 31 of file class.ilPCQuestionOverview.php.

{
parent::setNode($a_node); // this is the PageContent node
$this->qover_node = $a_node->first_child(); // this is the question overview node
}
ilPCQuestionOverview::setShortMessage (   $a_val)

Set short message.

Parameters
boolean$a_valt/f

Definition at line 57 of file class.ilPCQuestionOverview.php.

{
if ($a_val)
{
$this->qover_node->set_attribute("ShortMessage", "y");
}
else
{
if ($this->qover_node->has_attribute("ShortMessage"))
{
$this->qover_node->remove_attribute("ShortMessage");
}
}
}

Field Documentation

ilPCQuestionOverview::$dom

Definition at line 17 of file class.ilPCQuestionOverview.php.

ilPCQuestionOverview::$qover_node

Definition at line 18 of file class.ilPCQuestionOverview.php.


The documentation for this class was generated from the following file: