ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilPCVerification Class Reference

Class ilPCVerification. More...

+ Inheritance diagram for ilPCVerification:
+ Collaboration diagram for ilPCVerification:

Public Member Functions

 init ()
 Init page content component.
 setNode (&$a_node)
 Set node.
 create (&$a_pg_obj, $a_hier_id, $a_pc_id="")
 Create verification node in xml.
 setData ($a_type, $a_id)
 Set verification data.
 getData ()
 Get verification data.
- Public Member Functions inherited from ilPageContent
 __construct ($a_dom)
 Constructor.
 getType ()
 Get type of page content.
getNode ()
 Get xml node of page content.
 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 isInPortfolioPage (ilPortfolioPage $a_page, $a_type, $a_id)
- 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.

Data Fields

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

Additional Inherited Members

- Protected Member Functions inherited from ilPageContent
 setType ($a_type)
 Set Type.

Detailed Description

Class ilPCVerification.

Verification content object (see ILIAS DTD)

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
Id:
class.ilPCListItem.php 22210 2009-10-26 09:46:06Z akill

Definition at line 36 of file class.ilPCVerification.php.

Member Function Documentation

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

Create verification node in xml.

Parameters
object$a_pg_objPage Object
string$a_hier_idHierarchical ID

Definition at line 63 of file class.ilPCVerification.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->vrfc_node = $this->dom->create_element("Verification");
$this->vrfc_node = $this->node->append_child($this->vrfc_node);
}

+ Here is the call graph for this function:

ilPCVerification::getData ( )

Get verification data.

Returns
array

Definition at line 91 of file class.ilPCVerification.php.

{
if (is_object($this->vrfc_node))
{
return array("id"=>$this->vrfc_node->get_attribute("Id"),
"type"=>$this->vrfc_node->get_attribute("Type"),
"user"=>$this->vrfc_node->get_attribute("User"));
}
}
ilPCVerification::init ( )

Init page content component.

Reimplemented from ilPageContent.

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

References ilPageContent\setType().

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

+ Here is the call graph for this function:

static ilPCVerification::isInPortfolioPage ( ilPortfolioPage  $a_page,
  $a_type,
  $a_id 
)
static

Definition at line 101 of file class.ilPCVerification.php.

References $dom, ilPageContent\$node, ilPageObject\buildDom(), and ilPageObject\getDom().

Referenced by ilObjExerciseVerificationGUI\downloadFromPortfolioPage(), and ilObjTestVerificationGUI\downloadFromPortfolioPage().

{
// try to find verification in portfolio page
$a_page->buildDom();
$dom = $a_page->getDom();
if($dom instanceof php4DOMDocument)
{
$dom = $dom->myDOMDocument;
}
$xpath_temp = new DOMXPath($dom);
$nodes = $xpath_temp->query("//PageContent/Verification");
foreach($nodes as $node)
{
if($node->getAttribute("Type") == $a_type &&
$node->getAttribute("Id") == $a_id)
{
return true;
}
}
return false;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilPCVerification::setData (   $a_type,
  $a_id 
)

Set verification data.

Parameters
string$a_type
int$a_id

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

References $ilUser.

{
global $ilUser;
$this->vrfc_node->set_attribute("Type", $a_type);
$this->vrfc_node->set_attribute("Id", $a_id);
$this->vrfc_node->set_attribute("User", $ilUser->getId());
}
ilPCVerification::setNode ( $a_node)

Set node.

Reimplemented from ilPageContent.

Definition at line 51 of file class.ilPCVerification.php.

{
parent::setNode($a_node); // this is the PageContent node
$this->vrfc_node =& $a_node->first_child(); // this is the verification node
}

Field Documentation

ilPCVerification::$dom

Definition at line 38 of file class.ilPCVerification.php.

Referenced by isInPortfolioPage().


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