API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
& DOMIT_Document::_importNode | ( | &$ | parentNode, |
&$ | sourceNode, | ||
$ | deep | ||
) |
Imports a node (and optionally its children) from another DOM Document
object | A reference to the parent of the node to be imported |
object | A reference to the node to be imported |
boolean | True if the children of the imported node are also to be imported |
Références $i, $total, createAttribute(), createAttributeNS(), createCDATASection(), createComment(), createDocumentFragment(), createElement(), createElementNS(), createProcessingInstruction(), createTextNode(), et DOMIT_DOMException::raiseException().
Référencé par importNode().
& DOMIT_Document::appendChild | ( | &$ | node | ) |
Appends a node to the childNodes list of the current node
Object | The node to be appended |
Réimplémentée à partir de DOMIT_ChildNodes_Interface.
Références $i, $total, DOMIT_DOMException::raiseException(), et setDocumentElement().
Référencé par setDocumentElement().
DOMIT_Document::appendEntityTranslationTable | ( | $ | table | ) |
Appends an array of entity mappings to the existing translation table
Intended mainly to facilitate the conversion of non-ASCII entities into equivalent characters
array | A list of entity mappings in the format: array('&' => '&'); |
& DOMIT_Document::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_Document::createAttribute | ( | $ | name | ) |
Creates a new DOMIT_Attr node
string | The name of the attribute |
Références $name.
Référencé par _importNode().
& DOMIT_Document::createAttributeNS | ( | $ | namespaceURI, |
$ | qualifiedName | ||
) |
Creates a new DOMIT_Attr node (namespace aware)
string | The namespaceURI of the attribute |
string | The qualifiedName of the attribute |
Références DOMIT_Node::$namespaceURI.
Référencé par _importNode().
& DOMIT_Document::createCDATASection | ( | $ | data | ) |
Creates a new DOMIT_CDataSection node
string | The text of the CDATASection |
Références $data.
Référencé par _importNode().
& DOMIT_Document::createComment | ( | $ | text | ) |
Creates a new DOMIT_Comment node
string | The comment text |
Références $text.
Référencé par _importNode().
& DOMIT_Document::createDocumentFragment | ( | ) |
Creates a new DOMIT_DocumentFragment node
Référencé par _importNode().
& DOMIT_Document::createElement | ( | $ | tagName | ) |
Creates a new DOMIT_Element node
string | The tag name of the element |
Référencé par _importNode().
& DOMIT_Document::createElementNS | ( | $ | namespaceURI, |
$ | qualifiedName | ||
) |
Creates a new DOMIT_Element node (namespace aware)
string | The namespaceURI of the element |
string | The qualifiedName of the element |
Références DOMIT_Node::$namespaceURI.
Référencé par _importNode().
& DOMIT_Document::createProcessingInstruction | ( | $ | target, |
$ | data | ||
) |
Creates a new DOMIT_ProcessingInstruction node
string | The target of the processing instruction |
string | The data of the processing instruction |
Référencé par _importNode().
& DOMIT_Document::createTextNode | ( | $ | data | ) |
Creates a new DOMIT_Text node
string | The text of the node |
Références $data.
Référencé par _importNode().
DOMIT_Document::DOMIT_Document | ( | ) |
DOM Document constructor
Références DOMIT_Node::_constructor().
DOMIT_Document::establishConnection | ( | $ | url | ) |
Establishes a connection, given an url
string | The url of the data |
Références $host, $url, php_http_connection::formatHost(), et setConnection().
Référencé par getTextFromFile().
DOMIT_Document::expandEmptyElementTags | ( | $ | truthVal, |
$ | expandEmptyElementExceptions = false |
||
) |
Specifies whether elements tags will be rendered to string as <element></element> rather than <element>
boolean | True if the expanded form is to be used |
mixed | An array of tag names that should be excepted from expandEmptyElements rule (optional) |
Références $expandEmptyElementExceptions.
DOMIT_Document::getDocType | ( | ) |
Returns a doctype object
& DOMIT_Document::getDOMImplementation | ( | ) |
Returns a reference to the DOMIT_DOMImplementation object
& DOMIT_Document::getElementByID | ( | $ | elementID, |
$ | isStrict = true |
||
) |
Returns the element 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 DOMIT_DOMException::raiseException().
& DOMIT_Document::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_Document::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_Document::getElementsByTagName | ( | $ | tagName | ) |
Retrieves a NodeList of child elements with the specified tag name
string | The matching element tag name |
& DOMIT_Document::getElementsByTagNameNS | ( | $ | namespaceURI, |
$ | localName | ||
) |
Retrieves a NodeList of child elements with the specified namespaceURI and localName
string | The matching namespaceURI |
string | The matching localName |
Références DOMIT_Node::$localName, et DOMIT_Node::$namespaceURI.
DOMIT_Document::getErrorCode | ( | ) |
Returns the error code from the underlying SAX parser
DOMIT_Document::getErrorString | ( | ) |
Returns the error string from the underlying SAX parser
& DOMIT_Document::getNodesByNodeType | ( | $ | type, |
&$ | contextNode | ||
) |
Retrieves all child nodes of the specified nodeType
string | The nodeType of matching nodes |
Object | The root node of the search |
Références $type.
& DOMIT_Document::getNodesByNodeValue | ( | $ | value, |
&$ | contextNode | ||
) |
Retrieves all child nodes of the specified nodeValue
string | The nodeValue of matching nodes |
Object | The root node of the search |
DOMIT_Document::getText | ( | ) |
Returns the concatented text of the current node and its children
Réimplémentée à partir de DOMIT_Node.
DOMIT_Document::getTextFromFile | ( | $ | filename | ) |
Retrieves text from a file
string | The file path |
Références $filename, establishConnection(), et php_file_utilities::getDataFromFile().
Référencé par loadXML().
DOMIT_Document::getVersion | ( | ) |
Returns the current version of DOMIT!
DOMIT_Document::getXMLDeclaration | ( | ) |
Returns the xml declaration processing instruction
& DOMIT_Document::importNode | ( | &$ | importedNode, |
$ | deep = true |
||
) |
Imports a node (and optionally its children) from another DOM Document
object | A reference to the node to be imported |
boolean | True if the children of the imported node are also to be imported |
Références DOMIT_Node::$parentNode, et _importNode().
& DOMIT_Document::insertBefore | ( | &$ | newChild, |
&$ | refChild | ||
) |
Inserts a node to the childNodes list of the current node
Object | The node to be inserted |
Object | The node before which the insertion is to occur |
Réimplémentée à partir de DOMIT_ChildNodes_Interface.
Références $i, $total, $type, DOMIT_DOMException::raiseException(), et setDocumentElement().
Référencé par replaceChild().
DOMIT_Document::load | ( | &$ | contextNode | ) |
Manages the firing of the onLoad() event
Object | The parent node of the current recursion |
Référencé par parseXML().
DOMIT_Document::loadXML | ( | $ | filename, |
$ | useSAXY = true , |
||
$ | preserveCDATA = true , |
||
$ | fireLoadEvent = false |
||
) |
Parses an xml file
string | The xml file to be parsed |
boolean | True if SAXY is to be used instead of Expat |
boolean | False if CDATA Section are to be generated as Text nodes |
boolean | True if onLoad is to be called on each node after parsing |
Références $filename, getTextFromFile(), et parseXML().
DOMIT_Document::parsedBy | ( | ) |
Indicates the SAX parser used to parse the current document
DOMIT_Document::parseXML | ( | $ | xmlText, |
$ | useSAXY = true , |
||
$ | preserveCDATA = true , |
||
$ | fireLoadEvent = false |
||
) |
Parses an xml string
string | The xml text to be parsed |
boolean | True if SAXY is to be used instead of Expat |
boolean | False if CDATA Section are to be generated as Text nodes |
boolean | True if onLoad is to be called on each node after parsing |
Références load(), et DOMIT_Utilities::validateXML().
Référencé par loadXML().
DOMIT_Document::preserveWhitespace | ( | $ | truthVal | ) |
Specifies whether DOMIT! preserves whitespace when parsing
boolean | True if whitespace is to be preserved |
& DOMIT_Document::removeChild | ( | &$ | oldChild | ) |
Removes a node from the childNodes list of the current node
Object | The node to be removed |
Réimplémentée à partir de DOMIT_ChildNodes_Interface.
& DOMIT_Document::replaceChild | ( | &$ | newChild, |
&$ | oldChild | ||
) |
Replaces a node with another
Object | The new node |
Object | The old node |
Réimplémentée à partir de DOMIT_ChildNodes_Interface.
Références $i, $total, insertBefore(), DOMIT_DOMException::raiseException(), et setDocumentElement().
Référencé par setDocumentElement().
DOMIT_Document::resolveErrors | ( | $ | truthVal | ) |
Specifies whether DOMIT! will try to fix invalid XML before parsing begins
boolean | True if errors are to be resolved |
DOMIT_Document::saveTextToFile | ( | $ | filename, |
$ | text | ||
) |
Saves text to a file
string | The file path |
string | The text to be saved |
Références $filename, $text, et php_file_utilities::putDataToFile().
Référencé par saveXML().
DOMIT_Document::saveXML | ( | $ | filename, |
$ | normalized = false |
||
) |
Saves the current DOM document as an xml file
string | The path of the xml file |
boolean | True if xml text is to be normalized before saving |
Références $filename, saveTextToFile(), DOMIT_Node::toNormalizedString(), et toString().
DOMIT_Document::setAuthorization | ( | $ | user, |
$ | password | ||
) |
Specifies basic authentication for an http connection
string | The user name |
string | The password |
Références $user.
DOMIT_Document::setConnection | ( | $ | host, |
$ | path = '/' , |
||
$ | port = 80 , |
||
$ | timeout = 0 , |
||
$ | user = null , |
||
$ | password = null |
||
) |
Specifies the parameters of the http conection used to obtain the xml data
string | The ip address or domain name of the connection |
string | The path of the connection |
int | The port that the connection is listening on |
int | The timeout value for the connection |
string | The user name, if authentication is required |
string | The password, if authentication is required |
Références $host, $path, et $user.
Référencé par establishConnection().
& DOMIT_Document::setDocumentElement | ( | &$ | node | ) |
Set the specified node as document element
Object | The node that is to become document element |
Références appendChild(), DOMIT_DOMException::raiseException(), et replaceChild().
Référencé par appendChild(), insertBefore(), et replaceChild().
DOMIT_Document::setNamespaceAwareness | ( | $ | truthVal | ) |
Specifies whether DOMIT! processes namespace information
boolean | True if namespaces are to be processed |
DOMIT_Document::setProxyAuthorization | ( | $ | user, |
$ | password | ||
) |
Specifies basic authentication for the proxy
string | The user name |
string | The password |
Références $user.
DOMIT_Document::setProxyConnection | ( | $ | host, |
$ | path = '/' , |
||
$ | port = 80 , |
||
$ | timeout = 0 , |
||
$ | user = null , |
||
$ | password = null |
||
) |
Specifies that a proxy is to be used to obtain the xml data
string | The ip address or domain name of the proxy |
string | The path to the proxy |
int | The port that the proxy is listening on |
int | The timeout value for the connection |
string | The user name, if authentication is required |
string | The password, if authentication is required |
DOMIT_Document::toArray | ( | ) |
Generates an array representation of the node and its children
Réimplémentée à partir de DOMIT_Node.
DOMIT_Document::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().
Référencé par saveXML().
DOMIT_Document::useHTTPClient | ( | $ | truthVal | ) |
Specifies whether an HTTP client should be used to establish a connection
boolean | True if an HTTP client is to be used to establish the connection |
DOMIT_Document::$definedEntities = array() |
DOMIT_Document::$doctype |
DOMIT_Document::$documentElement |
DOMIT_Document::$doExpandEmptyElementTags = false |
DOMIT_Document::$doResolveErrors = false |
DOMIT_Document::$doUseHTTPClient = false |
DOMIT_Document::$errorCode = 0 |
DOMIT_Document::$errorString = '' |
DOMIT_Document::$expandEmptyElementExceptions = array() |
Référencé par expandEmptyElementTags().
DOMIT_Document::$httpConnection = null |
DOMIT_Document::$implementation |
DOMIT_Document::$isModified |
DOMIT_Document::$isNamespaceAware = false |
DOMIT_Document::$namespaceURIMap = array() |
DOMIT_Document::$parser |
DOMIT_Document::$preserveWhitespace = false |
DOMIT_Document::$xmlDeclaration |