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

Class: XML_FastCreate_Text

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

Class Overview

PEAR
   |
   --XML_FastCreate_Overload
      |
      --XML_FastCreate
         |
         --XML_FastCreate_Text

Text 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 55]
Text driver for the XML_FastCreate object.

This is the default driver to use, all XML is a string value. ex: $x =& XML_FastCreate::factory('Text');

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 81]

XML generated
  • Access: public

Type:   string


[ Top ]



Method Detail

XML_FastCreate_Text (Constructor)   [line 94]

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

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

Parameters:

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

[ Top ]

cdata   [line 197]

string cdata( mixed $content)

Make a CDATA section <![CDATA[ (...) ]]>
  • Return: The XML cdata content
  • Access: public

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

Parameters:

mixed   $content   —  Content of the section

[ Top ]

comment   [line 182]

string comment( mixed $content)

Make an XML comment
  • Return: The XML content commented
  • Access: public

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

Parameters:

mixed   $content   —  Content to comment

[ Top ]

exportXML   [line 247]

string exportXML( [ $data = array()], string $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:

string   $xml   —  The XML data (from XML_FastCreate_Text)
   $data   — 

[ Top ]

getXML   [line 210]

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 232]

string importXML( string $xml)

Import XML text to driver data
  • Return: The XML text (correctly quoted)
  • Access: public

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

Parameters:

string   $xml   —  The XML text

[ Top ]

makeXML   [line 134]

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

Make an XML Tag
  • Return: The XML String
  • 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 319]

string noquote( $str, string $content)

Don't quote this content.

To use only if the 'quoteContents' is true

  • Return: The content not quoted
  • Access: public

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

Parameters:

string   $content   —  Content to escape quoting
   $str   — 

[ Top ]

quote   [line 270]

string quote( $str, 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
   $str   — 

[ Top ]


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