Stud.IP  2.4 Revision 48548
 All Data Structures Namespaces Files Functions Variables Groups Pages
Configuration Class Reference
Inheritance diagram for Configuration:
Inheritance graph
Collaboration diagram for Configuration:
Collaboration graph

Public Member Functions

 __construct ($conf=array(), $path=NULL)
 offsetExists ($offset)
 offsetGet ($offset)
 offsetSet ($offset, $value)
 offsetUnset ($offset)

Static Public Member Functions

static load ($path, $force=FALSE)

Detailed Description

This class is used to configure the Squeeze packager. You can either use a yaml file or a plain PHP array.

Constructor & Destructor Documentation

__construct (   $conf = array(),
  $path = NULL 
)

Create an instance of this class by using a plain PHP array.

Parameters
array$confan array containing the configuration settings
string$paththe path to the config file that was used (NULL if instantiated via constructor)

Member Function Documentation

static load (   $path,
  $force = FALSE 
)
static

Create a configuration object by parsing a yaml file. The result of the parser is cached for 10 seconds. You can force an uncached parsing by setting the 2nd param to true.

Parameters
string$paththe file to parse
bool$forcecache unless TRUE
Returns
Configuration an instance of this class

Here is the caller graph for this function:

offsetExists (   $offset)

ArrayAccess: Check whether the given offset exists.

offsetGet (   $offset)

ArrayAccess: Get the value at the given offset.

offsetSet (   $offset,
  $value 
)

ArrayAccess: Set the value at the given offset.

offsetUnset (   $offset)

ArrayAccess: Delete the value at the given offset.


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