5 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
34 parent::setNode($a_node);
35 $this->vrfc_node = $a_node->first_child();
44 function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
48 $this->vrfc_node = $this->dom->create_element(
"Verification");
49 $this->vrfc_node = $this->node->append_child($this->vrfc_node);
62 $this->vrfc_node->set_attribute(
"Type",
$a_type);
63 $this->vrfc_node->set_attribute(
"Id", $a_id);
64 $this->vrfc_node->set_attribute(
"User", $ilUser->getId());
74 if (is_object($this->vrfc_node))
76 return array(
"id"=>$this->vrfc_node->get_attribute(
"Id"),
77 "type"=>$this->vrfc_node->get_attribute(
"Type"),
78 "user"=>$this->vrfc_node->get_attribute(
"User"));
88 return array(
"pc_vrfc",
89 "ed_insert_verification");
99 $dom = $dom->myDOMDocument;
101 $xpath_temp =
new DOMXPath($dom);
102 $nodes = $xpath_temp->query(
"//PageContent/Verification");
103 foreach($nodes as
$node)
105 if($node->getAttribute(
"Type") ==
$a_type &&
106 $node->getAttribute(
"Id") == $a_id)
create(&$a_pg_obj, $a_hier_id, $a_pc_id="")
Create verification node in xml.
init()
Init page content component.
static isInPortfolioPage(ilPortfolioPage $a_page, $a_type, $a_id)
static getLangVars()
Get lang vars needed for editing.
setType($a_type)
Set Type.
setData($a_type, $a_id)
Set verification data.
setNode($a_node)
Set node.
Create styles array
The data for the language used.
createPageContentNode($a_set_this_node=true)
Create page content node (always use this method first when adding a new element) ...
getDom()
Deprecated php4DomDocument.
getData()
Get verification data.