XML_FastCreate
[ class tree: XML_FastCreate ] [ index: XML_FastCreate ] [ all elements ]

Class: XML_FastCreate_XML_Tree

Source Location: /XML_FastCreate-1.0.4/XML/FastCreate/XML_Tree.php

Class Overview

PEAR
   |
   --XML_FastCreate_Overload
      |
      --XML_FastCreate
         |
         --XML_FastCreate_XML_Tree

XML_Tree driver for the XML_FastCreate object.


Author(s):

Version:

  • CVS: $Id$

Copyright:

  • 1997-2005 The PHP Group

Variables

Methods


Inherited Variables

Inherited Methods

Class: XML_FastCreate

XML_FastCreate::cdata()
Make a CDATA section <![CDATA[ (...) ]]>
XML_FastCreate::comment()
Make an XML comment
XML_FastCreate::exportXML()
Export driver data to XML text
XML_FastCreate::factory()
Factory : Make an instance of XML_FastCreate object
XML_FastCreate::getXML()
Return the current XML text
XML_FastCreate::importXML()
Import XML text to driver data
XML_FastCreate::indentXML()
Indent an XML text
XML_FastCreate::isValid()
Check if the XML respect the DTD.
XML_FastCreate::makeXML()
Make an XML Tag
XML_FastCreate::noquote()
Don't quote this content.
XML_FastCreate::quote()
Encode a string to be include in XML tags.
XML_FastCreate::toXML()
Print the current XML to standard output
XML_FastCreate::xml()
Make an XML tag.

Class Details

[line 61]
XML_Tree driver for the XML_FastCreate object.

This driver offer the possibility to manipulate XML_Tree object. ex: $x =& XML_FastCreate::factory('XML_Tree'); KNOWN BUGS : => Some features don't work in XML_Tree output :

  • noquote(), comment() and cdata() are not yet possible with XML_Tree
  • singleAttribute option is not possible
  • expand option cannot be disable
PHP versions 4 and 5

LICENSE: This source file is subject to version 3.0 of the PHP license that is available through the world-wide-web at the following URI: http://www.php.net/license/3_0.txt. If you did not receive a copy of the PHP License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.



[ Top ]


Class Variables

$xml =  ''

[line 87]

XML generated
  • Access: public

Type:   string


[ Top ]



Method Detail

XML_FastCreate_XML_Tree (Constructor)   [line 100]

object An XML_FastCreate_XML_Tree( [ $options = array()], array $list)

Make an instance of the XML_FastCreate_XML_Tree driver.
  • Return: XML_FastCreate_XML_Tree instance
  • Access: public

Parameters:

array   $list   —  List of options. See XML_FastCreate:factory()
   $options   — 

[ Top ]

cdata   [line 229]

object The cdata( mixed $content)

(Make a CDATA section <![CDATA[ (...) ]]>)

Not yet possible with XML_Tree

  • Return: XML_Tree cdata content
  • Access: public

Overrides XML_FastCreate::cdata() (Make a CDATA section <![CDATA[ (...) ]]>)

Parameters:

mixed   $content   —  Content of the section

[ Top ]

comment   [line 212]

object The comment( mixed $content)

(Make an XML comment)

Not yet possible with XML_Tree

  • Return: XML_Tree content commented
  • Access: public

Overrides XML_FastCreate::comment() (Make an XML comment)

Parameters:

mixed   $content   —  Content to comment

[ Top ]

exportXML   [line 281]

string exportXML( [ $data = array()], object $xml)

Export driver data to XML text
  • Return: The XML text output
  • Access: public

Overrides XML_FastCreate::exportXML() (Export driver data to XML text)

Parameters:

object   $xml   —  The XML_Tree data (from XML_FastCreate_XML_Tree)
   $data   — 

[ Top ]

getXML   [line 242]

string getXML( )

Return the current XML text
  • Return: The current XML text
  • Access: public

Overrides XML_FastCreate::getXML() (Return the current XML text)
[ Top ]

importXML   [line 264]

object The importXML( string $xml)

Import XML text to driver data
  • Return: XML_Tree content
  • Access: public

Overrides XML_FastCreate::importXML() (Import XML text to driver data)

Parameters:

string   $xml   —  The XML text

[ Top ]

makeXML   [line 134]

object The makeXML( string $tag, [array $attribs = array()], [array $contents = array()])

Make an XML Tag
  • Return: XML into an XML_Tree object
  • Access: public

Overrides XML_FastCreate::makeXML() (Make an XML Tag)

Parameters:

string   $tag   —  Name of the tag
array   $attribs   —  List of attributes
array   $contents   —  List of contents (strings or sub tags)

[ Top ]

noquote   [line 195]

string noquote( string $content)

(Don't quote this content.)

Not yet possible with XML_Tree

  • Return: The content not quoted
  • Access: public

Overrides XML_FastCreate::noquote() (Don't quote this content.)

Parameters:

string   $content   —  Content to escape quoting

[ Top ]

quote   [line 178]

string quote( string $content)

Encode a string to be include in XML tags.

To use only if the 'quoteContents' is false Convert : & < > " ' To : &amp; &lt; &gt; &quot; &apos;

  • Return: The quoted content
  • Access: public

Overrides XML_FastCreate::quote() (Encode a string to be include in XML tags.)

Parameters:

string   $content   —  Content to be quoted

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:46:41 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.