Indicates whether the requested element is actually a collection of elements of the same type. |
Signature: isCollection($elementName) |
Parameters:
String elementName - The name of the requested element.
|
Returns:
boolean - True if the requested element is actually a collection of elements of the same type.
|
Example:
Indicates whether the requested element is actually a collection of elements of the same type. $collection = $channelElement->isCollection('dc:creator'); |
Indicates whether the requested element is a single DOMIT! node. |
Signature: isNode($elementName) |
Parameters:
String elementName - The name of the requested element.
|
Returns:
boolean - True if the requested element is a single DOMIT! node.
|
Example:
Indicates whether the requested element is a single DOMIT! node. $isnode = $channelElement->isNode('dc:creator'); |
Indicates whether the requested element is a single DOMIT! node (alias for isNode). |
Signature: isCustomRSSElement($elementName) |
Parameters:
String elementName - The name of the requested element.
|
Returns:
boolean - True if the requested element is a single DOMIT! node.
|
Example:
Indicates whether the requested element is a single DOMIT! node. $isCustomRSSElement = $channelElement->isCustomRSSElement('dc:creator'); |
Gets a named list of existing elements. |
Signature: getElementList() |
Returns:
Array - A named list of existing elements
|
Example:
Gets a list of elements contained in the current RSS document. $rssdoc->getElementList(); |
Indicates whether a particular element exists as a child of the current element. |
Signature: hasElement($elementName) |
Parameters:
String elementName - The name of the requested element.
|
Returns:
boolean - True if an element with the specified name exists.
|
Example:
Indicates whether an element named "title" exists in the RSS document. $doesElementExist = $rssdoc->hasElement('title'); |
Gets the text of the specified element. |
Signature: getElementText($elementName) |
Parameters:
String elementName - The name of the requested element.
|
Returns:
String - The element text, or an empty string.
|
Example:
Gets the text of the child element named 'dc:creator'. $elementText = $someElement->getElementText('dc:creator'); |
Gets the text of the element at the specified index. |
Signature: getElementTextAt($index) |
Parameters:
int index - The index of the requested element.
|
Returns:
String - The element text, or an empty string.
|
Example:
Gets the text of the third child element. $elementText = $someElement->getElementTextAt(2); |
Gets a reference to a child element with the specified name. |
Signature: &getElement($elementName) |
Parameters:
String elementName - The name of the requested element.
|
Returns:
Object - A reference to a child element with the specified name.
|
Example:
Gets a reference to the width subelement of an image element. $widthElement =& $imageElement->getElement('width'); |
Gets a reference to a child element at the specified index. |
Signature: &getElementAt($index) |
Parameters:
int index - The index of the requested element.
|
Returns:
Object - A reference to a child element at the specified index.
|
Example:
Gets a reference to the third child element. $thirdElement =& $imageElement->getElementAt(2); |