Gumbo_Config_Reader_Php



Config PHP Reader

A PHP Reader will simply include the defined PHP file, and parse an array into a Composite object

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

Implements interfaces:

Class Variables

string $_name =  "config" [line 41]

Class Methods

public Gumbo_Config_Reader_Php __construct ( [string $name] ) [line 49]

Constructor

Parameter(s):

  • (string) $name :: config variable name

[ Top ]
public string getName ( ) [line 130]

Returns the Config variable name


[ Top ]
public Gumbo_Interface_Composite read ( string $file ) [line 63]

Reads the given configuration into memory, and returns the results

Parameter(s):

  • (string) $file
Implementation of:
Gumbo_Interface_Config_Reader::read()

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

Sets the config variable name

Parameter(s):

  • (string) $name
  • precondition:  valid PHP variable name
  • postcondition:  removes non alpha-numeric (excluding underscores) from the name

[ Top ]