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

Class: XML_Transformer

Source Location: /XML_Transformer-1.1.2/XML/Transformer.php

Class Overview


XML Transformations in PHP.


Author(s):

Variables

Methods


Child classes:

XML_Transformer_Driver_OutputBuffer
Uses PHP's Output Buffering mechanism to catch the output of a script, transforms it, and outputs the result.
XML_Transformer_Driver_Cache
Caching Transformer.

Inherited Variables

Inherited Methods


Class Details

[line 36]
XML Transformations in PHP.

With this class one can easily bind PHP functionality to XML tags, thus transforming an XML input tree into another XML tree without the need for XSLT.



[ Top ]


Class Variables

$_secondPassRequired =  FALSE

[line 146]

  • Access: public

Type:   boolean


[ Top ]



Method Detail

XML_Transformer (Constructor)   [line 163]

XML_Transformer XML_Transformer( [array $parameters = array()])

Constructor.
  • Access: public

Parameters:

array   $parameters   — 

[ Top ]

canonicalize   [line 211]

mixed canonicalize( mixed $target)

Canonicalizes a given attributes array or element name.
  • Access: public

Parameters:

mixed   $target   — 

[ Top ]

isOverloadedNamespace   [line 296]

boolean isOverloadedNamespace( string $namespacePrefix)

Returns TRUE if a given namespace is overloaded, FALSE otherwise.
  • Access: public

Parameters:

string   $namespacePrefix   — 

[ Top ]

overloadNamespace   [line 237]

void overloadNamespace( string $namespacePrefix, object &$object, [boolean $recursiveOperation = ''])

Overloads an XML Namespace.
  • Access: public

Parameters:

string   $namespacePrefix   — 
object   &$object   — 
boolean   $recursiveOperation   — 

[ Top ]

sendMessage   [line 312]

void sendMessage( string $message, [string $target = 'error_log'])

Sends a message to a given target.
  • Access: public

Parameters:

string   $message   — 
string   $target   — 

[ Top ]

setCaseFolding   [line 336]

void setCaseFolding( boolean $caseFolding, [integer $caseFoldingTo = CASE_UPPER])

Sets the XML parser's case-folding option.
  • Access: public

Parameters:

boolean   $caseFolding   — 
integer   $caseFoldingTo   — 

[ Top ]

setCollapsingOfEmptyTags   [line 354]

void setCollapsingOfEmptyTags( boolean $collapseEmptyTags, [integer $mode = XML_UTIL_COLLAPSE_ALL])

Sets the collapsing of empty tags.
  • Access: public

Parameters:

boolean   $collapseEmptyTags   — 
integer   $mode   — 

[ Top ]

setDebug   [line 371]

void setDebug( mixed $debug)

Enables or disables debugging information.
  • Access: public

Parameters:

mixed   $debug   — 

[ Top ]

setLogTarget   [line 392]

void setLogTarget( string $logTarget)

Sets the target to which error messages and debugging messages are sent.
  • Access: public

Parameters:

string   $logTarget   — 

[ Top ]

setRecursiveOperation   [line 405]

void setRecursiveOperation( boolean $recursiveOperation)

Enables or disables the recursive operation.
  • Access: public

Parameters:

boolean   $recursiveOperation   — 

[ Top ]

stackdump   [line 418]

string stackdump( )

Returns a stack dump as a debugging aid.
  • Access: public

[ Top ]

transform   [line 448]

string transform( string $xml)

Transforms a given XML string using the registered PHP callbacks for overloaded tags.
  • Access: public

Overridden in child classes as:

XML_Transformer_Driver_Cache::transform()
Cached transformation a given XML string using the registered PHP callbacks for overloaded tags.

Parameters:

string   $xml   — 

[ Top ]

unOverloadNamespace   [line 281]

void unOverloadNamespace( string $namespacePrefix)

Reverts overloading of a given XML Namespace.
  • Access: public

Parameters:

string   $namespacePrefix   — 

[ Top ]


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