Gumbo_Converter_Xml

Gumbo_Converter_Abstract
   |
   --Gumbo_Converter_Xml

XML Converter Class

Author(s): Michael Luster <mluster79@yahoo.com>
License:New BSD License
Copyright:Copyright (c) 2007, iBayou, Michael Luster
Link:http://sourceforge.net/projects/phpgumbo
Version:0.0.1

Inherited Methods

Class Variables

string $_class [line 38]
string $_ns [line 42]
int $_options [line 40]
bool $_prefix [line 44]

Class Methods

public Gumbo_Converter_Xml __construct ( [string $class_name], [int $options], [string $ns], [bool $is_prefix] ) [line 55]

Constructor

Parameter(s):

  • (string) $class_name :: SimpleXMLElement Class Name
  • (int) $options :: LibXML Parameters
  • (string) $ns :: XML Namespace
  • (bool) $is_prefix

[ Top ]
public string getClassName ( ) [line 188]

Returns the Class Name


[ Top ]
public string getNamespace ( ) [line 204]

Returns the Namespace


[ Top ]
public int getOptions ( ) [line 196]

Returns the Options


[ Top ]
public bool isPrefix ( ) [line 212]

Returns the Prefix


[ Top ]
public void setClassName ( string $name ) [line 107]

Sets the Class Name (must be subclass of SimpleXMLElement)

Parameter(s):

  • (string) $name
  • throws:  Gumbo_Exception

[ Top ]
public void setNamespace ( string $ns ) [line 148]

Sets the Namespace

Parameter(s):

  • (string) $ns
  • throws:  Gumbo_Exception

[ Top ]
public void setOptions ( int $options ) [line 129]

Sets the Options from LibXML

Parameter(s):

  • (int) $options
  • throws:  Gumbo_Exception

[ Top ]
public void setPrefix ( bool $val ) [line 167]

Sets the Prefix option

Parameter(s):

  • (bool) $val
  • throws:  Gumbo_Exception

[ Top ]
public Gumbo_Interface_Composite toComposite ( string|SimpleXMLElement $data ) [line 72]

Returns a Composite

Parameter(s):

  • (string|SimpleXMLElement) $data :: array data

[ Top ]
private Gumbo_Interface_Composite _getComposite ( SimpleXMLElement $data ) [line 226]

Returns a single Composite object from an array

This is a recusive method

Parameter(s):

  • (SimpleXMLElement) $data

[ Top ]