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

Class: XML_MXML_Document

Source Location: /XML_MXML-0.3.0/MXML/Document.php

Class Overview


XML/MXML/Document.php


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 46]
XML/MXML/Document.php

Document object



[ Top ]


Class Variables

$root =

[line 56]

Root element.

Should be an Application element.

  • Access: protected



[ Top ]



Method Detail

__construct (Constructor)   [line 292]

XML_MXML_Document __construct( [string $filename = null])

Constructor
  • Access: public

Parameters:

string   $filename   — 

[ Top ]

addRoot   [line 333]

void addRoot( object $el)

Add the root element.
  • Access: public

Parameters:

object   $el   —  root element

[ Top ]

createElement   [line 438]

object XML_MXML_Element createElement( string $name, [array $attributes = array()], [string $cdata = null], [ $replaceEntities = true])

Create any MXML element.
  • Throws: Exception
  • Access: public

Parameters:

string   $name   — 
array   $attributes   — 
string   $cdata   — 
   $replaceEntities   — 

[ Top ]

dump   [line 517]

string dump( [boolean $availableAttributes = true])

Get debug info about the document as string.

Use this instead of a print_r on the tree.

  • Access: public

Parameters:

boolean   $availableAttributes   — 

[ Top ]

enableValidation   [line 307]

void enableValidation( [boolean $enable = true], [boolean $caseInsensitive = true])

Enable validation.
  • Access: public

Parameters:

boolean   $enable   — 
boolean   $caseInsensitive   — 

[ Top ]

forceVersion   [line 321]

void forceVersion( string $version)

Force MXML version.
  • Access: public

Parameters:

string   $version   — 

[ Top ]

getElementById   [line 486]

object XML_MXML_Element getElementById( string $id)

Get an element by its id.
  • Access: public

Parameters:

string   $id   — 

[ Top ]

getElementsByTagname   [line 500]

array getElementsByTagname( string $tagname)

Get a nodelist of elements by their tagname.
  • Return: array containing XML_MXML_Element objects
  • Access: public

Parameters:

string   $tagname   — 

[ Top ]

save   [line 386]

void save( [string $filename = null])

Write the document to a file.

You may specify a filename to override the filename passed in the constructor.

  • Throws: Exception
  • Access: public

Parameters:

string   $filename   — 

[ Top ]

send   [line 368]

void send( )

Send the document to the output stream.
  • Access: public

[ Top ]

serialize   [line 418]

string serialize( )

Serialize the document.
  • Access: public

[ Top ]

validateDocument   [line 350]

boolean validateDocument( )

Validate document.
  • Throws: Exception
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:57:16 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.