Zend Framework  3.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Xml Class Reference

XML config reader. More...

Public Member Functions

 fromFile ($filename)
 fromFile(): defined by Reader interface.
 
 fromString ($string)
 fromString(): defined by Reader interface.
 

Protected Member Functions

 process ()
 Process data from the created XMLReader.
 
 processNextElement ()
 Process the next inner element.
 
 getAttributes ()
 Get all attributes on the current node.
 

Protected Attributes

 $reader
 
 $directory
 
 $textNodes
 

Detailed Description

XML config reader.

Member Function Documentation

fromFile (   $filename)

fromFile(): defined by Reader interface.

See Also
ReaderInterface::fromFile()
Parameters
string$filename
Returns
array
Exceptions
Exception\RuntimeException

Implements ReaderInterface.

fromString (   $string)

fromString(): defined by Reader interface.

See Also
ReaderInterface::fromString()
Parameters
string$string
Returns
array|bool
Exceptions
Exception\RuntimeException

Implements ReaderInterface.

getAttributes ( )
protected

Get all attributes on the current node.

Returns
array
process ( )
protected

Process data from the created XMLReader.

Returns
array
processNextElement ( )
protected

Process the next inner element.

Returns
mixed

Member Data Documentation

$directory
protected
$reader
protected
$textNodes
protected
Initial value:
= [
XMLReader::TEXT,
XMLReader::CDATA,
XMLReader::WHITESPACE,
XMLReader::SIGNIFICANT_WHITESPACE
]