PHPLights/Documentation/Interfaces/LsConfigIface

From Linuxnetworks
< PHPLights‎ | Documentation‎ | Interfaces
Revision as of 19:58, 16 September 2007 by Nose (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Synopsis

interface LsConfigIface
{
  public static function get( $name, $default = NULL );
  public static function set( $name, $value );
  public static function has( $name );
  public function addFile( $key, $file );
}

Description

PHPLights allows multiple ways of storing configuration data of applications. The most often used method is to store them in PHP files whose associative arrays can be added natively to the runtime configuration. However, different file formats or storage mechanisms (like database tables) are possible.

Public functions

get()

public static function get( $name, $default = NULL );

set()

public static function set( $name, $value );

has()

public static function has( $name );

addFile()

public function addFile( $key, $file );