| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
class for DOM utilities More...
 Collaboration diagram for ilDOMUtil:
 Collaboration diagram for ilDOMUtil:| Public Member Functions | |
| setFirstOptionalElement (&$doc, &$parent_node, $a_node_name, $a_successors, $a_content, $a_attributes, $a_remove_childs=true) | |
| searches for an element $a_node_name within the childs of $parent_node if no node is found, a new is created before the childs with names of $a_successors. | |
| set_attributes (&$a_node, $a_attributes) | |
| set attributes of a node | |
| deleteAllChildsByName (&$a_parent, $a_node_names) | |
| delete all childs of a node by names in $a_node_names | |
| addElementToList (&$doc, &$parent_node, $a_node_name, $a_successors, $a_content, $a_attributes) | |
| Places a new node $a_node_name directly before nodes with names of $a_successors. | |
class for DOM utilities
Definition at line 33 of file class.ilDOMUtil.php.
| ilDOMUtil::addElementToList | ( | & | $doc, | 
| & | $parent_node, | ||
| $a_node_name, | |||
| $a_successors, | |||
| $a_content, | |||
| $a_attributes | |||
| ) | 
Places a new node $a_node_name directly before nodes with names of $a_successors.
The content of the node is set to $a_content and the attributes to $a_attributes
Definition at line 150 of file class.ilDOMUtil.php.
References set_attributes().
Referenced by ilMediaAliasItem\addMapArea(), and ilMediaAliasItem\setParameters().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDOMUtil::deleteAllChildsByName | ( | & | $a_parent, | 
| $a_node_names | |||
| ) | 
delete all childs of a node by names in $a_node_names
Definition at line 132 of file class.ilDOMUtil.php.
Referenced by ilPCTabs\saveCaptions(), ilMediaAliasItem\setAreaExtLink(), ilMediaAliasItem\setAreaIntLink(), and ilPCTable\setCaption().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDOMUtil::set_attributes | ( | & | $a_node, | 
| $a_attributes | |||
| ) | 
set attributes of a node
| object | $a_node | node | 
| array | $a_attributes | attributes array (attribute_name => attribute_value pairs) | 
Definition at line 111 of file class.ilDOMUtil.php.
Referenced by addElementToList(), and setFirstOptionalElement().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilDOMUtil::setFirstOptionalElement | ( | & | $doc, | 
| & | $parent_node, | ||
| $a_node_name, | |||
| $a_successors, | |||
| $a_content, | |||
| $a_attributes, | |||
| $a_remove_childs = true | |||
| ) | 
searches for an element $a_node_name within the childs of $parent_node if no node is found, a new is created before the childs with names of $a_successors.
the content of the node is set to $a_content and the attributes to $a_attributes
Definition at line 42 of file class.ilDOMUtil.php.
References set_attributes().
Referenced by ilMediaAliasItem\addMapArea(), ilPCTabs\addTab(), ilPCTabs\saveCaptions(), ilMediaAliasItem\setAreaExtLink(), ilMediaAliasItem\setAreaIntLink(), ilMediaAliasItem\setCaption(), ilPCTable\setCaption(), ilMediaAliasItem\setHeight(), ilMediaAliasItem\setHorizontalAlign(), ilPCFileList\setListTitle(), ilMediaAliasItem\setTextRepresentation(), and ilMediaAliasItem\setWidth().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function: