5require_once(
"./Services/COPage/classes/class.ilPageContent.php");
33 $this->
user = $DIC->user();
42 parent::setNode($a_node);
43 $this->vrfc_node = $a_node->first_child();
52 public function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
56 $this->vrfc_node = $this->dom->create_element(
"Verification");
57 $this->vrfc_node = $this->node->append_child($this->vrfc_node);
70 $this->vrfc_node->set_attribute(
"Type",
$a_type);
71 $this->vrfc_node->set_attribute(
"Id", $a_id);
72 $this->vrfc_node->set_attribute(
"User",
$ilUser->getId());
82 if (is_object($this->vrfc_node)) {
83 return array(
"id"=>$this->vrfc_node->get_attribute(
"Id"),
84 "type"=>$this->vrfc_node->get_attribute(
"Type"),
85 "user"=>$this->vrfc_node->get_attribute(
"User"));
95 return array(
"pc_vrfc",
96 "ed_insert_verification");
107 $xpath_temp =
new DOMXPath(
$dom);
108 $nodes = $xpath_temp->query(
"//PageContent/Verification");
109 foreach ($nodes as
$node) {
111 $node->getAttribute(
"Id") == $a_id) {
An exception for terminatinating execution or to throw for unit testing.
init()
Init page content component.
create(&$a_pg_obj, $a_hier_id, $a_pc_id="")
Create verification node in xml.
static isInPortfolioPage(ilPortfolioPage $a_page, $a_type, $a_id)
setNode($a_node)
Set node.
getData()
Get verification data.
static getLangVars()
Get lang vars needed for editing.
setData($a_type, $a_id)
Set verification data.
createPageContentNode($a_set_this_node=true)
Create page content node (always use this method first when adding a new element)
setType($a_type)
Set Type.
getDom()
Deprecated php4DomDocument.