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

Java-style properties config reader. More...

Public Member Functions

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

Protected Member Functions

 process (array $data)
 Process the array for.
 
 parse ($string)
 Parse Java-style properties string.
 

Protected Attributes

 $directory
 

Detailed Description

Java-style properties config reader.

Member Function Documentation

fromFile (   $filename)

fromFile(): defined by Reader interface.

See Also
ReaderInterface::fromFile()
Parameters
string$filename
Returns
array
Exceptions
Exception\RuntimeExceptionif the file cannot be read

Implements ReaderInterface.

fromString (   $string)

fromString(): defined by Reader interface.

See Also
ReaderInterface::fromString()
Parameters
string$string
Returns
array
Exceptions
Exception\RuntimeExceptionif an
is found

Implements ReaderInterface.

parse (   $string)
protected

Parse Java-style properties string.

Todo:

Support use of the equals sign "key=value" as key-value delimiter

Ignore whitespace that precedes text past the first line of multiline values

Parameters
string$string
Returns
array
process ( array  $data)
protected

Process the array for.

Parameters
array$data
Returns
array
Exceptions
Exception\RuntimeExceptionif an
is found

Member Data Documentation

$directory
protected