API - XOOPS 2.5.11 Beta 2
By monxoops.fr
XmlPlugin Class Reference
Inheritance diagram for XmlPlugin:
Collaboration diagram for XmlPlugin:

Public Member Functions

 getTypes ()
 
 getTriggers ()
 
 parse (&$var, BasicObject &$o, $trigger)
 
- Public Member Functions inherited from Plugin
 setParser (Parser $p)
 
 getTypes ()
 
 getTriggers ()
 
 parse (&$variable, BasicObject &$o, $trigger)
 

Static Public Attributes

static $parse_method = 'SimpleXML'
 

Static Protected Member Functions

static xmlToSimpleXML ($var, $parent_path)
 
static xmlToDOMDocument ($var, $parent_path)
 

Additional Inherited Members

- Protected Attributes inherited from Plugin
 $parser
 

Member Function Documentation

◆ getTriggers()

getTriggers ( )

Reimplemented from Plugin.

◆ getTypes()

getTypes ( )

An array of types (As returned by gettype) for all data this plugin can operate on.

Returns
array List of types

Reimplemented from Plugin.

◆ parse()

parse ( $var,
BasicObject $o,
  $trigger 
)

Reimplemented from Plugin.

Here is the call graph for this function:

◆ xmlToDOMDocument()

static xmlToDOMDocument (   $var,
  $parent_path 
)
staticprotected

Get the DOMDocument info.

The documentation of DOMDocument::loadXML() states that while you can call it statically, it will give an E_STRICT warning. On my system it actually gives an E_DEPRECATED warning, but it works so we'll just add an error-silencing '@' to the access path.

If it errors loading then we wouldn't have gotten this far in the first place.

Parameters
string$varThe XML string
null | string$parent_pathThe path to the parent, in this case the XML string
Returns
null|array The root element DOMNode, the access path, and the root element name

◆ xmlToSimpleXML()

static xmlToSimpleXML (   $var,
  $parent_path 
)
staticprotected

Field Documentation

◆ $parse_method

$parse_method = 'SimpleXML'
static

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