com.caucho.quercus.lib.xml
Class XMLWriterModule

java.lang.Object
  extended by com.caucho.quercus.module.AbstractQuercusModule
      extended by com.caucho.quercus.lib.xml.XMLWriterModule
All Implemented Interfaces:
QuercusModule

public class XMLWriterModule
extends AbstractQuercusModule

XMLWriter


Field Summary
 
Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
 
Constructor Summary
XMLWriterModule()
           
 
Method Summary
 java.lang.String[] getLoadedExtensions()
          Returns the extensions loaded by the module.
static boolean xmlwriter_end_attribute(XMLWriter w)
          Ends an attribute
static boolean xmlwriter_end_cdata(XMLWriter w)
          Starts a CData section
static boolean xmlwriter_end_comment(XMLWriter w)
          Starts a comment section
static boolean xmlwriter_end_document(XMLWriter w)
          Ends the document
static boolean xmlwriter_end_dtd_attlist(XMLWriter w)
          Ends a DTD attribute list
static boolean xmlwriter_end_dtd_element(XMLWriter w)
          Ends a DTD element list
static boolean xmlwriter_end_dtd_entity(XMLWriter w)
          Ends a DTD entity
static boolean xmlwriter_end_dtd(XMLWriter w)
          Ends a DTD
static boolean xmlwriter_end_element_ns(Env env, XMLWriter w)
          Ends an element
static boolean xmlwriter_end_element(Env env, XMLWriter w)
          Ends an element
static boolean xmlwriter_end_pi(XMLWriter w)
          Ends a pi section
static Value xmlwriter_flush(XMLWriter w)
          Flushes the output and returns the result.
static boolean xmlwriter_full_end_element(Env env, XMLWriter w)
          Ends an element
static XMLWriter xmlwriter_open_memory(Env env)
          Opens the writer for a memory target
static XMLWriter xmlwriter_open_uri(Env env, Path path)
          Opens the writer for a uri target
static Value xmlwriter_output_memory(XMLWriter w)
          Returns the memory result
static boolean xmlwriter_set_indent_string(XMLWriter w, StringValue value)
          sets the indentation string
static boolean xmlwriter_set_indent(XMLWriter w, boolean isIndent)
          enables indentation
static boolean xmlwriter_start_attribute_ns(Env env, XMLWriter w, StringValue prefix, StringValue name, StringValue uri)
          Starts an attribute with a namespace
static boolean xmlwriter_start_attribute(Env env, XMLWriter w, StringValue name)
          Starts an attribute
static boolean xmlwriter_start_cdata(XMLWriter w)
          Starts a CData section
static boolean xmlwriter_start_comment(XMLWriter w)
          Starts a comment section
static boolean xmlwriter_start_document(Env env, XMLWriter w, StringValue version, StringValue encoding, StringValue standalone)
          Starts the document
static boolean xmlwriter_start_dtd_attlist(XMLWriter w, StringValue name)
          Starts a DTD attribute list
static boolean xmlwriter_start_dtd_element(XMLWriter w, StringValue name)
          Starts a DTD element list
static boolean xmlwriter_start_dtd_entity(XMLWriter w, StringValue name)
          Starts a DTD entity
static boolean xmlwriter_start_dtd(XMLWriter w, StringValue name, StringValue publicId, StringValue systemId)
          Starts a DTD
static boolean xmlwriter_start_element_ns(Env env, XMLWriter w, StringValue prefix, StringValue name, StringValue uri)
          Starts a namespaced element
static boolean xmlwriter_start_element(Env env, XMLWriter w, StringValue name)
          Starts an element
static boolean xmlwriter_start_pi(Env env, XMLWriter w, StringValue target)
          Starts a processing instruction section
static boolean xmlwriter_text(Env env, XMLWriter w, StringValue text)
          Writes text
static boolean xmlwriter_write_attribute_ns(Env env, XMLWriter w, StringValue prefix, StringValue name, StringValue uri, StringValue value)
          Writes a complete attribute
static boolean xmlwriter_write_attribute(Env env, XMLWriter w, StringValue name, StringValue value)
          Writes a complete attribute
static boolean xmlwriter_write_cdata(Env env, XMLWriter w, StringValue value)
          Writes a complete cdata
static boolean xmlwriter_write_comment(Env env, XMLWriter w, StringValue value)
          Writes a complete comment
static boolean xmlwriter_write_dtd_attlist(Env env, XMLWriter w, StringValue name, StringValue content)
          Writes a DTD attribute list
static boolean xmlwriter_write_dtd_element(Env env, XMLWriter w, StringValue name, StringValue content)
          Writes a DTD element
static boolean xmlwriter_write_dtd_entity(Env env, XMLWriter w, StringValue name, StringValue content)
          Writes a DTD entity
static boolean xmlwriter_write_dtd(Env env, XMLWriter w, StringValue name, StringValue publicId, StringValue systemId, StringValue subset)
          Writes a DTD
static boolean xmlwriter_write_element_ns(Env env, XMLWriter w, StringValue prefix, StringValue name, StringValue uri, StringValue content)
          Writes a complete element
static boolean xmlwriter_write_element(Env env, XMLWriter w, StringValue name, StringValue content)
          Writes a complete element
static boolean xmlwriter_write_pi(Env env, XMLWriter w, StringValue name, StringValue value)
          Writes a pi
static boolean xmlwriter_write_raw(Env env, XMLWriter w, StringValue value)
          Writes raw text
 
Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLWriterModule

public XMLWriterModule()
Method Detail

getLoadedExtensions

public java.lang.String[] getLoadedExtensions()
Description copied from class: AbstractQuercusModule
Returns the extensions loaded by the module.

Specified by:
getLoadedExtensions in interface QuercusModule
Overrides:
getLoadedExtensions in class AbstractQuercusModule

xmlwriter_flush

public static Value xmlwriter_flush(XMLWriter w)
Flushes the output and returns the result.


xmlwriter_open_memory

public static XMLWriter xmlwriter_open_memory(Env env)
Opens the writer for a memory target


xmlwriter_open_uri

public static XMLWriter xmlwriter_open_uri(Env env,
                                           Path path)
Opens the writer for a uri target


xmlwriter_output_memory

public static Value xmlwriter_output_memory(XMLWriter w)
Returns the memory result


xmlwriter_end_attribute

public static boolean xmlwriter_end_attribute(XMLWriter w)
Ends an attribute


xmlwriter_end_cdata

public static boolean xmlwriter_end_cdata(XMLWriter w)
Starts a CData section


xmlwriter_end_comment

public static boolean xmlwriter_end_comment(XMLWriter w)
Starts a comment section


xmlwriter_end_pi

public static boolean xmlwriter_end_pi(XMLWriter w)
Ends a pi section


xmlwriter_end_document

public static boolean xmlwriter_end_document(XMLWriter w)
Ends the document


xmlwriter_end_dtd_attlist

public static boolean xmlwriter_end_dtd_attlist(XMLWriter w)
Ends a DTD attribute list


xmlwriter_end_dtd_element

public static boolean xmlwriter_end_dtd_element(XMLWriter w)
Ends a DTD element list


xmlwriter_end_dtd_entity

public static boolean xmlwriter_end_dtd_entity(XMLWriter w)
Ends a DTD entity


xmlwriter_end_dtd

public static boolean xmlwriter_end_dtd(XMLWriter w)
Ends a DTD


xmlwriter_end_element

public static boolean xmlwriter_end_element(Env env,
                                            XMLWriter w)
Ends an element


xmlwriter_end_element_ns

public static boolean xmlwriter_end_element_ns(Env env,
                                               XMLWriter w)
Ends an element


xmlwriter_full_end_element

public static boolean xmlwriter_full_end_element(Env env,
                                                 XMLWriter w)
Ends an element


xmlwriter_set_indent

public static boolean xmlwriter_set_indent(XMLWriter w,
                                           boolean isIndent)
enables indentation


xmlwriter_set_indent_string

public static boolean xmlwriter_set_indent_string(XMLWriter w,
                                                  StringValue value)
sets the indentation string


xmlwriter_start_attribute

public static boolean xmlwriter_start_attribute(Env env,
                                                XMLWriter w,
                                                StringValue name)
Starts an attribute


xmlwriter_start_attribute_ns

public static boolean xmlwriter_start_attribute_ns(Env env,
                                                   XMLWriter w,
                                                   StringValue prefix,
                                                   StringValue name,
                                                   StringValue uri)
Starts an attribute with a namespace


xmlwriter_start_cdata

public static boolean xmlwriter_start_cdata(XMLWriter w)
Starts a CData section


xmlwriter_start_comment

public static boolean xmlwriter_start_comment(XMLWriter w)
Starts a comment section


xmlwriter_start_document

public static boolean xmlwriter_start_document(Env env,
                                               XMLWriter w,
                                               StringValue version,
                                               StringValue encoding,
                                               StringValue standalone)
Starts the document


xmlwriter_start_dtd_attlist

public static boolean xmlwriter_start_dtd_attlist(XMLWriter w,
                                                  StringValue name)
Starts a DTD attribute list


xmlwriter_start_dtd_element

public static boolean xmlwriter_start_dtd_element(XMLWriter w,
                                                  StringValue name)
Starts a DTD element list


xmlwriter_start_dtd_entity

public static boolean xmlwriter_start_dtd_entity(XMLWriter w,
                                                 StringValue name)
Starts a DTD entity


xmlwriter_start_dtd

public static boolean xmlwriter_start_dtd(XMLWriter w,
                                          StringValue name,
                                          StringValue publicId,
                                          StringValue systemId)
Starts a DTD


xmlwriter_start_element

public static boolean xmlwriter_start_element(Env env,
                                              XMLWriter w,
                                              StringValue name)
Starts an element


xmlwriter_start_element_ns

public static boolean xmlwriter_start_element_ns(Env env,
                                                 XMLWriter w,
                                                 StringValue prefix,
                                                 StringValue name,
                                                 StringValue uri)
Starts a namespaced element


xmlwriter_start_pi

public static boolean xmlwriter_start_pi(Env env,
                                         XMLWriter w,
                                         StringValue target)
Starts a processing instruction section


xmlwriter_text

public static boolean xmlwriter_text(Env env,
                                     XMLWriter w,
                                     StringValue text)
Writes text


xmlwriter_write_attribute

public static boolean xmlwriter_write_attribute(Env env,
                                                XMLWriter w,
                                                StringValue name,
                                                StringValue value)
Writes a complete attribute


xmlwriter_write_attribute_ns

public static boolean xmlwriter_write_attribute_ns(Env env,
                                                   XMLWriter w,
                                                   StringValue prefix,
                                                   StringValue name,
                                                   StringValue uri,
                                                   StringValue value)
Writes a complete attribute


xmlwriter_write_cdata

public static boolean xmlwriter_write_cdata(Env env,
                                            XMLWriter w,
                                            StringValue value)
Writes a complete cdata


xmlwriter_write_comment

public static boolean xmlwriter_write_comment(Env env,
                                              XMLWriter w,
                                              StringValue value)
Writes a complete comment


xmlwriter_write_dtd_attlist

public static boolean xmlwriter_write_dtd_attlist(Env env,
                                                  XMLWriter w,
                                                  StringValue name,
                                                  StringValue content)
Writes a DTD attribute list


xmlwriter_write_dtd_element

public static boolean xmlwriter_write_dtd_element(Env env,
                                                  XMLWriter w,
                                                  StringValue name,
                                                  StringValue content)
Writes a DTD element


xmlwriter_write_dtd_entity

public static boolean xmlwriter_write_dtd_entity(Env env,
                                                 XMLWriter w,
                                                 StringValue name,
                                                 StringValue content)
Writes a DTD entity


xmlwriter_write_dtd

public static boolean xmlwriter_write_dtd(Env env,
                                          XMLWriter w,
                                          StringValue name,
                                          StringValue publicId,
                                          StringValue systemId,
                                          StringValue subset)
Writes a DTD


xmlwriter_write_element

public static boolean xmlwriter_write_element(Env env,
                                              XMLWriter w,
                                              StringValue name,
                                              StringValue content)
Writes a complete element


xmlwriter_write_element_ns

public static boolean xmlwriter_write_element_ns(Env env,
                                                 XMLWriter w,
                                                 StringValue prefix,
                                                 StringValue name,
                                                 StringValue uri,
                                                 StringValue content)
Writes a complete element


xmlwriter_write_pi

public static boolean xmlwriter_write_pi(Env env,
                                         XMLWriter w,
                                         StringValue name,
                                         StringValue value)
Writes a pi


xmlwriter_write_raw

public static boolean xmlwriter_write_raw(Env env,
                                          XMLWriter w,
                                          StringValue value)
Writes raw text