TITAN Library for PHP5  5.6.0
Web Software Development Kit for PHP5
xml Class Reference

Titan I/O Buffered XML Output Class. More...

Inheritance diagram for xml:
ml

Public Member Functions

 __construct ($add_xml_tag=true, $version= '1.0', $encoding= 'UTF-8')
 
 xml_tag ($version= '1.0', $encoding= '')
 
 tag ($tag_name, $content, $attributes= '')
 
- Public Member Functions inherited from ml
 __construct ()
 
 __call ($tag_name, array $arguments)
 
 instack ($tag_name, $nested=false)
 
 mark ($label)
 
 wrap ($label)
 
 buffer ($content, $newline=false)
 
 open ($tag_name, $attributes= '')
 
 close ($tag_name)
 
 tag ($tag_name, $content, $attributes= '')
 
 void ($tag_name, $attributes= '')
 
 serialize ($var, $value)
 
 unserialize ($xml_string)
 
 reset_stack ()
 
 clear ()
 
 display ()
 
 complete ($display=true)
 

Additional Inherited Members

- Data Fields inherited from ml
 $stack = false
 Stack Class for tag stack.
 
 $is_buffered = true
 Should the output be buffered?
 
 $indent = 0
 Output indent level (for pretty printing)
 
 $tag_template
 Templates for tag generation.
 
 $replacements = array()
 For serialize() - Replacement value pairs.
 
 $skip_replace = array()
 For serialize() - List of vars to skip replacement.
 
- Protected Attributes inherited from ml
 $obuff = false
 Output Buffer Class.
 
 $is_void = false
 Is the current tag a void tag?
 
 $in_tag = false
 Is the current tag being handled by $this->tag()?
 
 $use_newline = false
 $this->tag(): Use standard newline?
 
 $use_stack = true
 Should the current tag use the stack?
 
 $pre = ''
 List of content to include before opening a tag in tag/content pairs.
 
 $noclose = array()
 List of tags that open normally but do not close (e.g. "<meta>")
 
 $voidtags = array()
 List of tags that are void tags (e.g. "<foo />")
 
 $cancels = array()
 List of tag cancels in key/value pairs (e.g. "body" cancels "head")
 
 $dependencies = array()
 List of tag dependencies in key/value pairs (e.g. "body" requires "html")
 
 $attr = array()
 List of default tag attributes (setting an attribute to false prevents its inclusion)
 
 $ns_prefix = ''
 XML namespace prefix.
 

Detailed Description

Titan I/O Buffered XML Output Class.

Class: \tl\output\xml

Author
James E. Bush work@.nosp@m.bush.nosp@m..cc
Version
5.6.0

Constructor & Destructor Documentation

__construct (   $add_xml_tag = true,
  $version = '1.0',
  $encoding = 'UTF-8' 
)

Constructor

Parameters
bool$add_xml_tag(optional) Include <?xml?> tag? (default) true
string$version(optional) XML version number (default) '1.0'
string$encoding(optional) XML Encoding

Member Function Documentation

xml_tag (   $version = '1.0',
  $encoding = '' 
)

Add an <?xml?> tag

Parameters
string$version(optional) XML version number (default) '1.0'
string$encoding(optional) XML Encoding
Returns
string The <?xml?> tag
tag (   $tag_name,
  $content,
  $attributes = '' 
)

Create a complete XML tag (Open a tag, add content, and close the tag)

Parameters
string$tag_nameThe tag to use
string$contentThe content to use
array$attributes(optional) Tag attributes

The documentation for this class was generated from the following file: