| [ Index ] |
|
Code source de Joomla 1.0.13 |
[Code source] [Imprimer] [Statistiques]
DOMIT Utilities are a set of utilities for the DOMIT! parser
| Author: | John Heinstein <johnkarl@nbnet.nb.ca> |
| Copyright: | (C) 2004 John Heinstein. All rights reserved |
| License: | http://www.gnu.org/copyleft/lesser.html LGPL License |
| Poids: | 384 lignes (11 kb) |
| Inclus ou requis: | 16 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
DOMIT_Utilities:: (13 méthodes):
DOMIT_Utilities()
toNormalizedString()
convertEntities()
getNormalizedString()
getNormalizedElementString()
isTextNode()
getIndentation()
removeExtension()
validateXML()
printUTF8Header()
forHTML()
fromArray()
parseAttributes()
Classe: DOMIT_Utilities - X-Ref
A set of utilities for the DOMIT! parser| DOMIT_Utilities() X-Ref |
| Raises an error if an attempt to instantiate the class is made |
| toNormalizedString(&$node, $subEntities=false, $definedEntities) X-Ref |
| Generates a normalized (formatted for readability) representation of the node and its children param: Object The root node of the narmalization param: boolean True if illegal xml characters in text nodes and attributes should be converted to entities return: string The formatted string representation |
| convertEntities($text, $definedEntities) X-Ref |
| Converts illegal XML characters to their entity representations param: string The text to be formatted param: array User defined translation table for entities return: string The formatted text |
| getNormalizedString(&$node, $node_level, $subEntities=false, $definedEntities) X-Ref |
| Gets a normalized (formatted for readability) representation of the current node param: Object The node to be normalized param: int The level in the DOM hierarchy where the node is located param: boolean True if illegal xml characters in text nodes and attributes should be converted to entities param: array User defined translation table for entities return: string The normalized string representation |
| getNormalizedElementString(&$node, $response, $node_level,$subEntities, $definedEntities) X-Ref |
| Gets a normalized (formatted for readability) representation of the current element param: Object The node to be normalized param: string The current normalized text param: int The level in the DOM hierarchy where the node is located param: boolean True if illegal xml characters in text nodes and attributes should be converted to entities param: array User defined translation table for entities return: string The normalized string representation |
| isTextNode(&$node) X-Ref |
| Determines whether the specified node is a Text node param: Object The node to be tested return: boolean True if the node is a Text node |
| getIndentation($node_level) X-Ref |
| Returns the indentation required for the specified node level param: int The current node level return: string The indentation required for the specified node level |
| removeExtension($fileName) X-Ref |
| Removes the extension from the specified file name param: string The file name return: string The file name, stripped of its extension |
| validateXML($xmlText) X-Ref |
| Determines whether the XML string is valid (NOT FULLY IMPLEMENTED!) param: string The XML text return: boolean True if the XML text is valid |
| printUTF8Header($contentType = 'text/html') X-Ref |
| Set the browser header to interpret data as UTF-8 formatted param: string The content type of the data |
| forHTML($text, $doPrint = false) X-Ref |
| Formats a string for presentation as HTML param: string The string to be formatted param: boolean True if the string is to be sent directly to output return: string The HTML formatted string |
| fromArray(&$node, &$myArray) X-Ref |
| Generates a node tree from an array and appends it to the specified document or node param: object The document or node to which the child nodes should be appended param: array An associative multidimensional array of elements and values |
| parseAttributes() X-Ref |
| Pas de description |
| Généré le : Wed Nov 21 14:43:32 2007 | par Balluche grâce à PHPXref 0.7 |
|