API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
& DOMIT_Lite_Element::cloneNode | ( | $ | deep = false | ) |
Copies a node and/or its children
boolean | True if all child nodes are also to be cloned |
Réimplémentée à partir de DOMIT_Lite_Node.
DOMIT_Lite_Element::DOMIT_Lite_Element | ( | $ | tagName | ) |
DOM Element constructor
string | The tag name of the element |
Références DOMIT_Lite_Node::_constructor().
DOMIT_Lite_Element::getAttribute | ( | $ | name | ) |
Gets the value of the specified attribute, if it exists
string | The attribute name |
Références $name, et hasAttribute().
& DOMIT_Lite_Element::getElementsByPath | ( | $ | pattern, |
$ | nodeIndex = 0 |
||
) |
Retrieves an element or DOMIT_NodeList of elements corresponding to an Xpath-like expression.
string | The query pattern |
int | If a single node is to be returned (rather than the entire NodeList) the index of that node |
Réimplémentée à partir de DOMIT_Lite_Node.
& DOMIT_Lite_Element::getElementsByTagName | ( | $ | tagName | ) |
Retrieves a NodeList of child elements with the specified tag name
string | The matching element tag name |
Références getNamedElements().
DOMIT_Lite_Element::getNamedElements | ( | &$ | nodeList, |
$ | tagName | ||
) |
Adds elements with the specified tag name to a NodeList collection
Object | The NodeList collection |
string | The tag name of matching elements |
Réimplémentée à partir de DOMIT_Lite_Node.
Référencé par getElementsByTagName().
DOMIT_Lite_Element::getTagName | ( | ) |
Returns the tag name of the element
DOMIT_Lite_Element::getText | ( | ) |
Returns the concatented text of the current node and its children
Réimplémentée à partir de DOMIT_Lite_Node.
DOMIT_Lite_Element::hasAttribute | ( | $ | name | ) |
Determines whether an attribute with the specified name exists
string | The name of the attribute |
Références $name.
Référencé par getAttribute(), et removeAttribute().
DOMIT_Lite_Element::normalize | ( | ) |
Collapses adjacent text nodes in entire element subtree
Références DOMIT_Lite_Node::hasChildNodes(), et DOMIT_Lite_ChildNodes_Interface::removeChild().
DOMIT_Lite_Element::removeAttribute | ( | $ | name | ) |
Removes the specified attribute
string | The name of the attribute to be removed |
Références $name, et hasAttribute().
DOMIT_Lite_Element::setAttribute | ( | $ | name, |
$ | value | ||
) |
Sets the value of the specified attribute; creates a new attribute if one doesn't exist
string | The attribute name |
string | The desired attribute value |
Références $name.
DOMIT_Lite_Element::setText | ( | $ | data | ) |
If a child text node exists, sets the nodeValue to $data. A child text node is created if none exists
string | The text data of the node |
Références $data, et DOMIT_Lite_ChildNodes_Interface::appendChild().
DOMIT_Lite_Element::toArray | ( | ) |
Generates an array representation of the node and its children
Réimplémentée à partir de DOMIT_Lite_Node.
DOMIT_Lite_Element::toString | ( | $ | htmlSafe = false , |
$ | subEntities = false |
||
) |
Generates a string representation of the node and its children
boolean | True if HTML readable output is desired |
boolean | True if illegal xml characters in text nodes and attributes should be converted to entities |
Références $i, $total, DOMIT_Utilities::convertEntities(), et DOMIT_Lite_Node::forHTML().