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

Class: XML_XUL

Source Location: /XML_XUL-0.9.1/XML/XUL.php

Class Overview


XML/XUL.php


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 59]
XML/XUL.php

package to create XUL documents

To create a new document you have to call createDocument() statically:

  1.  require_once 'XML/XUL.php';
  2.  
  3.  $doc XML_XUL::createDocument'myXUL.xml''myNs' );

The document object provides methods to create and add any element you like:

  1.  $win $doc->createElement('window'array('title'=> 'Example for PEAR::XML_XUL'));
  2.  $doc->addRoot($win);



[ Top ]


Method Detail

apiVersion   [line 68]

string apiVersion( )

return API version
  • Return: API version
  • Access: public

[ Top ]

createDocument   [line 81]

void createDocument( [string $filename = null], [string $ns = null], [string $encoding = null])

create a XUL document
  • Access: public

Parameters:

string   $filename   —  filename
string   $ns   —  namespace for XUL elements
string   $encoding   —  encoding of the document

[ Top ]

loadFile   [line 95]

void loadFile( string $filename)

load a XUL document from file
  • Access: public

Parameters:

string   $filename   —  filename

[ Top ]

loadString   [line 110]

void loadString( string $filename, [ $ns = null])

load a XUL document from a string
  • Access: public

Parameters:

string   $filename   —  filename
   $ns   — 

[ Top ]


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