ILIAS
release_8 Revision v8.23
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Static Public Member Functions | |
static | setFirstOptionalElement (php4DOMDocument $doc, php4DOMElement $parent_node, string $a_node_name, array $a_successors, string $a_content, array $a_attributes, bool $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 (php4DOMElement $a_node, array $a_attributes) |
set attributes of a node More... | |
static | deleteAllChildsByName (php4DOMElement $a_parent, array $a_node_names) |
delete all childs of a node by names in $a_node_names More... | |
static | addElementToList (php4DOMDocument $doc, php4DOMElement $parent_node, string $a_node_name, array $a_successors, string $a_content, array $a_attributes) |
Places a new node $a_node_name directly before nodes with names of $a_successors. More... | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning class for DOM utilities
Definition at line 24 of file class.ilDOMUtil.php.
|
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 128 of file class.ilDOMUtil.php.
References php4DOMNode\append_child(), php4DOMNode\child_nodes(), php4DOMDocument\create_element(), 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 110 of file class.ilDOMUtil.php.
References php4DOMNode\child_nodes().
Referenced by ilPCTabs\saveCaptions(), ilMediaAliasItem\setAreaExtLink(), ilMediaAliasItem\setAreaIntLink(), ilPCTable\setCaption(), and ilPCSection\setNoLink().
|
static |
set attributes of a node
array | $a_attributes | attributes array (attribute_name => attribute_value pairs) |
Definition at line 92 of file class.ilDOMUtil.php.
References php4DOMElement\has_attribute(), php4DOMElement\remove_attribute(), and php4DOMElement\set_attribute().
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 32 of file class.ilDOMUtil.php.
References $i, php4DOMNode\append_child(), php4DOMNode\child_nodes(), php4DOMDocument\create_element(), and set_attributes().
Referenced by ilMediaAliasItem\addMapArea(), ilPCTabs\addTab(), ilPCTabs\saveCaptions(), ilMediaAliasItem\setAreaExtLink(), ilMediaAliasItem\setAreaIntLink(), ilPCMap\setCaption(), ilMediaAliasItem\setCaption(), ilPCTable\setCaption(), ilPCSection\setExtLink(), ilMediaAliasItem\setHeight(), ilMediaAliasItem\setHorizontalAlign(), ilPCSection\setIntLink(), ilPCMap\setLayout(), ilPCFileList\setListTitle(), ilMediaAliasItem\setTextRepresentation(), and ilMediaAliasItem\setWidth().