ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
class for DOM utilities More...
Static Public Member Functions | |
static | 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. More... | |
static | set_attributes ($a_node, $a_attributes) |
set attributes of a node More... | |
static | deleteAllChildsByName ($a_parent, $a_node_names) |
delete all childs of a node by names in $a_node_names More... | |
static | 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. More... | |
|
static |
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 136 of file class.ilDOMUtil.php.
References $a_content, and set_attributes().
Referenced by ilMediaAliasItem\addMapArea(), ilPCInteractiveImage\addTriggerArea(), ilPCInteractiveImage\addTriggerMarker(), and ilMediaAliasItem\setParameters().
|
static |
delete all childs of a node by names in $a_node_names
Definition at line 120 of file class.ilDOMUtil.php.
Referenced by ilPCTabs\saveCaptions(), ilMediaAliasItem\setAreaExtLink(), ilMediaAliasItem\setAreaIntLink(), ilPCTable\setCaption(), and ilPCSection\setNoLink().
|
static |
set attributes of a node
object | $a_node | node |
array | $a_attributes | attributes array (attribute_name => attribute_value pairs) |
Definition at line 104 of file class.ilDOMUtil.php.
Referenced by addElementToList(), and setFirstOptionalElement().
|
static |
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 $a_content, $i, and set_attributes().
Referenced by ilMediaAliasItem\addMapArea(), ilPCTabs\addTab(), ilPCTabs\saveCaptions(), ilMediaAliasItem\setAreaExtLink(), ilMediaAliasItem\setAreaIntLink(), ilMediaAliasItem\setCaption(), ilPCTable\setCaption(), ilPCSection\setExtLink(), ilMediaAliasItem\setHeight(), ilMediaAliasItem\setHorizontalAlign(), ilPCSection\setIntLink(), ilPCFileList\setListTitle(), ilMediaAliasItem\setTextRepresentation(), and ilMediaAliasItem\setWidth().