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

Class: XML_XUL_Document

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

Class Overview


XML/XUL/Document.php


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 51]
XML/XUL/Document.php

Document object



[ Top ]


Method Detail

XML_XUL_Document (Constructor)   [line 135]

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

constructor
  • Access: public

Parameters:

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

[ Top ]

addOverlay   [line 159]

void addOverlay( $uri)

add an overlay
  • Access: public

Parameters:

   $uri   — 

[ Top ]

addRoot   [line 203]

void addRoot( object root &$el)

add the root element
  • Access: public

Parameters:

object root   &$el   —  element

[ Top ]

addStylesheet   [line 170]

void addStylesheet( string $uri)

add a stylesheet
  • Access: public

Parameters:

string   $uri   —  uri of the stylesheet

[ Top ]

createElement   [line 318]

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

create any XUL element
  • Access: public

Parameters:

string   $name   —  element name
array   $attributes   —  attributes
string   $cdata   —  character data, mainly used for description element
   $replaceEntities   — 

[ Top ]

createHtmlElement   [line 349]

object XML_XUL_Element_Html createHtmlElement( string $name, [array $attributes = array()], [string $cdata = null])

create any HTML ELement
  • Access: public

Parameters:

string   $name   —  element name
array   $attributes   —  attributes
string   $cdata   —  character data, mainly used for description element

[ Top ]

createHtmlRaw   [line 368]

object XML_XUL_Element_Html createHtmlRaw( string $html)

create HTML block by supplying raw HTML code
  • Access: public

Parameters:

string   $html   —  html

[ Top ]

enableValidation   [line 192]

void enableValidation( [boolean $enable = true])

enable validation
  • Access: public

Parameters:

boolean   $enable   — 

[ Top ]

getDebug   [line 412]

string getDebug( )

get debug info about the document as string.

Use this instead of a print_r on the tree.

  • Access: public

[ Top ]

getElementById   [line 386]

object XML_XUL_Element getElementById( string $id)

get an element by its id
  • Access: public

Parameters:

string   $id   —  id

[ Top ]

getElementsByTagname   [line 398]

array getElementsByTagname( string $tagname)

get a nodelist of elements by their tagname
  • Return: array containing XML_XUL_Element objects
  • Access: public

Parameters:

string   $tagname   —  id

[ Top ]

save   [line 236]

void save( [string $filename = null])

write the document to a file

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

  • Access: public

Parameters:

string   $filename   —  filename

[ Top ]

send   [line 221]

void send( )

send the document to the output stream

Use this method to display the document in Mozilla.

  • Access: public

[ Top ]

serialize   [line 271]

string serialize( )

serialize the document
  • Access: public

[ Top ]

setDTD   [line 181]

void setDTD( string $uri)

set the URI of the DTD
  • Access: public

Parameters:

string   $uri   —  uri of the dtd

[ Top ]

setHtmlNamespace   [line 148]

void setHtmlNamespace( string $ns)

set the namespace for XHTML element
  • Access: public

Parameters:

string   $ns   — 

[ Top ]

showDebug   [line 436]

void showDebug( )

show debug info about the document.

Use this instead of a print_r on the tree.

  • Access: public
  • Uses: getDebugInfo()

[ Top ]


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