API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
& DOMIT_Element::_getElementByID | ( | $ | elementID, |
$ | isStrict | ||
) |
Returns the attribute node whose ID is given by elementId.
string | The id of the matching element |
boolean | True if XML spec is to be strictly adhered to (only attributes xml:id are considered valid) |
Références $i, $total, et getAttributeNodeNS().
& DOMIT_Element::_getNamespaceDeclarationsInScope | ( | &$ | nsMap | ) |
Returns an array of namespace declarations in the scope of the current element
& DOMIT_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_Node.
DOMIT_Element::copyNamespaceDeclarationsLocally | ( | ) |
Copies all namespace declarations in scope to the namespace URI map of the current element
Références declareDefaultNamespace(), declareNamespace(), et getNamespaceDeclarationsInScope().
DOMIT_Element::declareDefaultNamespace | ( | $ | value | ) |
Creates a default xmlns declaration at the current element
array | An array of namespace declarations in the scope of the current element |
Références setAttributeNS().
Référencé par copyNamespaceDeclarationsLocally().
DOMIT_Element::declareNamespace | ( | $ | localname, |
$ | value | ||
) |
Creates an xmlns declaration at the current element
array | An array of namespace declarations in the scope of the current element |
Références setAttributeNS().
Référencé par copyNamespaceDeclarationsLocally().
DOMIT_Element::DOMIT_Element | ( | $ | tagName | ) |
DOM Element constructor
string | The tag name of the element |
Références DOMIT_Node::_constructor().
DOMIT_Element::getAttribute | ( | $ | name | ) |
Gets the value of the specified attribute, if it exists
string | The attribute name |
Références $name.
& DOMIT_Element::getAttributeNode | ( | $ | name | ) |
Gets a reference to the specified attribute node
string | The attribute name |
Références $name.
& DOMIT_Element::getAttributeNodeNS | ( | $ | namespaceURI, |
$ | localName | ||
) |
Gets a reference to the specified attribute node
string | The attribute namespaceURI |
string | The attribute localName |
Références DOMIT_Node::$localName, et DOMIT_Node::$namespaceURI.
Référencé par _getElementByID().
DOMIT_Element::getAttributeNS | ( | $ | namespaceURI, |
$ | localName | ||
) |
Gets the value of the attribute with the specified namespaceURI and localName, if it exists
string | The namespaceURI |
string | The localName |
Références DOMIT_Node::$localName, et DOMIT_Node::$namespaceURI.
DOMIT_Element::getDefaultNamespaceDeclaration | ( | ) |
Returns the default xmlns declaration for the current element
& DOMIT_Element::getElementsByAttributePath | ( | $ | pattern, |
$ | nodeIndex = 0 |
||
) |
Retrieves an element or DOMIT_NodeList of elements corresponding to an Xpath-like attribute expression (NOT YET IMPLEMENTED!)
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_Node.
& DOMIT_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_Node.
& DOMIT_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_Element::getElementsByTagNameNS | ( | $ | namespaceURI, |
$ | localName | ||
) |
Retrieves a NodeList of child elements with the specified namespaceURI and localName
string | The namespaceURI |
string | The localName |
Références DOMIT_Node::$localName, DOMIT_Node::$namespaceURI, et getNamedElementsNS().
DOMIT_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_Node.
Référencé par getElementsByTagName().
DOMIT_Element::getNamedElementsNS | ( | &$ | nodeList, |
$ | namespaceURI, | ||
$ | localName | ||
) |
Adds elements with the specified tag name to a NodeList collection
Object | The NodeList collection |
string | The namespaceURI of matching elements |
string | The localName of matching elements |
Références $i, DOMIT_Node::$localName, DOMIT_Node::$namespaceURI, et $total.
Référencé par getElementsByTagNameNS().
& DOMIT_Element::getNamespaceDeclarationsInScope | ( | ) |
Returns an array of namespace declarations in the scope of the current element
Référencé par copyNamespaceDeclarationsLocally().
DOMIT_Element::getTagName | ( | ) |
Returns the tag name of the element
DOMIT_Element::getText | ( | ) |
Returns the concatented text of the current node and its children
Réimplémentée à partir de DOMIT_Node.
DOMIT_Element::getTypedNodes | ( | &$ | nodeList, |
$ | type | ||
) |
Adds all child nodes of the specified nodeType to the NodeList
Object | The NodeList collection |
string | The nodeType of matching nodes |
Réimplémentée à partir de DOMIT_Node.
DOMIT_Element::getValuedNodes | ( | &$ | nodeList, |
$ | value | ||
) |
Adds all child nodes of the specified nodeValue to the NodeList
Object | The NodeList collection |
string | The nodeValue of matching nodes |
Réimplémentée à partir de DOMIT_Node.
Références $i.
DOMIT_Element::hasAttribute | ( | $ | name | ) |
Determines whether an attribute with the specified name exists
string | The name of the attribute |
Références $name.
DOMIT_Element::hasAttributeNS | ( | $ | namespaceURI, |
$ | localName | ||
) |
Determines whether an attribute with the specified namespaceURI and localName exists
string | The namespaceURI of the attribute |
string | The localName of the attribute |
Références DOMIT_Node::$localName, et DOMIT_Node::$namespaceURI.
DOMIT_Element::hasAttributes | ( | ) |
Determines whether the element has any atributes
Réimplémentée à partir de DOMIT_Node.
DOMIT_Element::normalize | ( | ) |
Collapses adjacent text nodes in entire element subtree
Réimplémentée à partir de DOMIT_Node.
Références DOMIT_Node::hasChildNodes(), et DOMIT_ChildNodes_Interface::removeChild().
DOMIT_Element::removeAttribute | ( | $ | name | ) |
Removes the specified attribute
string | The name of the attribute to be removed |
Références $name.
& DOMIT_Element::removeAttributeNode | ( | &$ | oldAttr | ) |
Removes an attribute node from the current element
Object | The attribute node to be removed |
Références DOMIT_DOMException::raiseException().
DOMIT_Element::removeAttributeNS | ( | $ | namespaceURI, |
$ | localName | ||
) |
Removes the specified attribute
string | The namespaceURI of the attribute to be removed |
string | The localName of the attribute to be removed |
Références DOMIT_Node::$localName, et DOMIT_Node::$namespaceURI.
DOMIT_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_Element::setAttributeNode | ( | &$ | newAttr | ) |
Adds an attribute node to the current element
Object | The attribute node to be added |
& DOMIT_Element::setAttributeNodeNS | ( | &$ | newAttr | ) |
Adds an attribute node to the current element (namespace aware)
Object | The attribute node to be added |
DOMIT_Element::setAttributeNS | ( | $ | namespaceURI, |
$ | qualifiedName, | ||
$ | value | ||
) |
Sets the value of the specified attribute; creates a new attribute if one doesn't exist
string | The attribute namespaceURI |
string | The attribute qualifiedName |
string | The desired attribute value |
Références DOMIT_Node::$localName, et DOMIT_Node::$namespaceURI.
Référencé par declareDefaultNamespace(), et declareNamespace().
DOMIT_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_ChildNodes_Interface::appendChild().
DOMIT_Element::toArray | ( | ) |
Generates an array representation of the node and its children
Réimplémentée à partir de DOMIT_Node.
DOMIT_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, et DOMIT_Node::forHTML().
DOMIT_Element::$namespaceURIMap = array() |