5 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
35 parent::setNode($a_node);
36 $this->sec_node =& $a_node->first_child();
45 function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
49 $this->sec_node =& $this->dom->create_element(
"Section");
50 $this->sec_node =& $this->node->append_child($this->sec_node);
51 $this->sec_node->set_attribute(
"Characteristic",
"Block");
63 $this->sec_node->set_attribute(
"Characteristic", $a_char);
67 if ($this->sec_node->has_attribute(
"Characteristic"))
69 $this->sec_node->remove_attribute(
"Characteristic");
81 if (is_object($this->sec_node))
83 $char = $this->sec_node->get_attribute(
"Characteristic");
84 if (substr($char, 0, 4) ==
"ilc_")
86 $char = substr($char, 4);
98 return array(
"ed_insert_section");
getCharacteristic()
Get characteristic of section.
setType($a_type)
Set Type.
init()
Init page content component.
static getLangVars()
Get lang vars needed for editing.
setCharacteristic($a_char)
Set Characteristic of section.
createPageContentNode($a_set_this_node=true)
Create page content node (always use this method first when adding a new element) ...
setNode(&$a_node)
Set node.
create(&$a_pg_obj, $a_hier_id, $a_pc_id="")
Create section node in xml.