API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
DOMIT_Utilities::convertEntities | ( | $ | text, |
$ | definedEntities | ||
) |
Converts illegal XML characters to their entity representations
string | The text to be formatted |
array | User defined translation table for entities |
Références $text.
Référencé par getNormalizedElementString(), getNormalizedString(), DOMIT_Attr::toString(), DOMIT_TextNode::toString(), DOMIT_Lite_TextNode::toString(), et DOMIT_Lite_Element::toString().
DOMIT_Utilities::DOMIT_Utilities | ( | ) |
Raises an error if an attempt to instantiate the class is made
DOMIT_Utilities::forHTML | ( | $ | text, |
$ | doPrint = false |
||
) |
Formats a string for presentation as HTML
string | The string to be formatted |
boolean | True if the string is to be sent directly to output |
Références $text.
DOMIT_Utilities::fromArray | ( | &$ | node, |
&$ | myArray | ||
) |
DOMIT_Utilities::getIndentation | ( | $ | node_level | ) |
Returns the indentation required for the specified node level
int | The current node level |
Références $i.
Référencé par getNormalizedElementString(), et getNormalizedString().
DOMIT_Utilities::getNormalizedElementString | ( | &$ | node, |
$ | response, | ||
$ | node_level, | ||
$ | subEntities, | ||
$ | definedEntities | ||
) |
Gets a normalized (formatted for readability) representation of the current element
Object | The node to be normalized |
string | The current normalized text |
int | The level in the DOM hierarchy where the node is located |
boolean | True if illegal xml characters in text nodes and attributes should be converted to entities |
array | User defined translation table for entities |
Références $i, $total, convertEntities(), getIndentation(), getNormalizedString(), et isTextNode().
Référencé par getNormalizedString().
DOMIT_Utilities::getNormalizedString | ( | &$ | node, |
$ | node_level, | ||
$ | subEntities = false , |
||
$ | definedEntities | ||
) |
Gets a normalized (formatted for readability) representation of the current node
Object | The node to be normalized |
int | The level in the DOM hierarchy where the node is located |
boolean | True if illegal xml characters in text nodes and attributes should be converted to entities |
array | User defined translation table for entities |
Références $i, $total, convertEntities(), getIndentation(), et getNormalizedElementString().
Référencé par getNormalizedElementString(), et toNormalizedString().
DOMIT_Utilities::isTextNode | ( | &$ | node | ) |
Determines whether the specified node is a Text node
Object | The node to be tested |
Références $type.
Référencé par getNormalizedElementString().
DOMIT_Utilities::parseAttributes | ( | ) |
DOMIT_Utilities::printUTF8Header | ( | $ | contentType = 'text/html' | ) |
Set the browser header to interpret data as UTF-8 formatted
string | The content type of the data |
DOMIT_Utilities::removeExtension | ( | $ | fileName | ) |
Removes the extension from the specified file name
string | The file name |
Référencé par DOMIT_cache::cacheExists(), DOMIT_cache::fromCache(), DOMIT_cache::removeFromCache(), et DOMIT_cache::toCache().
DOMIT_Utilities::toNormalizedString | ( | &$ | node, |
$ | subEntities = false , |
||
$ | definedEntities | ||
) |
Generates a normalized (formatted for readability) representation of the node and its children
Object | The root node of the narmalization |
boolean | True if illegal xml characters in text nodes and attributes should be converted to entities |
Références $i, $total, et getNormalizedString().
DOMIT_Utilities::validateXML | ( | $ | xmlText | ) |
Determines whether the XML string is valid (NOT FULLY IMPLEMENTED!)
string | The XML text |
Références $text.
Référencé par DOMIT_Document::parseXML(), et DOMIT_Lite_Document::parseXML().