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

Class: XML_Beautifier_Renderer

Source Location: /XML_Beautifier-1.2.2/Beautifier/Renderer.php

Class Overview


Renderer base class for XML_Beautifier


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2003-2008 Stephan Schmidt <schst@php.net>

Methods


Child classes:

XML_Beautifier_Renderer_Plain
Basic XML Renderer for XML Beautifier

Inherited Variables

Inherited Methods


Class Details

[line 60]
Renderer base class for XML_Beautifier


[ Top ]


Method Detail

XML_Beautifier_Renderer (Constructor)   [line 75]

XML_Beautifier_Renderer XML_Beautifier_Renderer( [array $options = array()])

create a new renderer
  • Access: public

Parameters:

array   $options   —  for the serialization

[ Top ]

normalize   [line 105]

array normalize( array $tokens)

normalize the XML tree

When normalizing an XML tree, adjacent data sections are combined to one data section.

  • Return: XML tree
  • Access: public

Parameters:

array   $tokens   —  XML tree as returned by the tokenizer

[ Top ]

serialize   [line 89]

string serialize( array $tokens)

Serialize the XML tokens
  • Return: XML document
  • Abstract:
  • Access: public

Overridden in child classes as:

XML_Beautifier_Renderer_Plain::serialize()
Serialize the XML tokens

Parameters:

array   $tokens   —  XML tokens

[ Top ]


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