6 require_once(
"./Services/COPage/classes/class.ilPageContent.php");
35 parent::setNode($a_node);
36 $this->prof_node = $a_node->first_child();
45 function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
49 $this->prof_node = $this->dom->create_element(
"Profile");
50 $this->prof_node = $this->node->append_child($this->prof_node);
63 $this->prof_node->set_attribute(
"Mode", $a_mode);
64 $this->prof_node->set_attribute(
"User", $ilUser->getId());
67 $children = $this->prof_node->child_nodes();
70 foreach($children as $child)
72 $this->prof_node->remove_child($child);
76 if($a_mode ==
"manual")
78 foreach($a_fields as $field)
80 $field_node = $this->dom->create_element(
"ProfileField");
81 $field_node = $this->prof_node->append_child($field_node);
82 $field_node->set_attribute(
"Name", $field);
94 if (is_object($this->prof_node))
96 return $this->prof_node->get_attribute(
"Mode");
108 if (is_object($this->prof_node))
110 $children = $this->prof_node->child_nodes();
113 foreach($children as $child)
115 $res[] = $child->get_attribute(
"Name");
128 return array(
"pc_prof",
"ed_insert_profile");
init()
Init page content component.
static getLangVars()
Get lang vars needed for editing.
setNode($a_node)
Set node.
setType($a_type)
Set Type.
setFields($a_mode, array $a_fields=null)
Set profile settings.
create(&$a_pg_obj, $a_hier_id, $a_pc_id="")
Create profile node in xml.
getFields()
Get profile settings.
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) ...
getMode()
Get profile mode.