Abstract Class ConfigBaseAbstract

Description

Abstract base config class. Extended classes must overwrite existing Methods.

Located in /contenido/classes/mp/class.confighandler.php (line 71)


	
			
Direct descendents
Class Description
 class ConfigFileStorage ConfigFileStorage to store serialized configuration in files.
 class ConfigDBStorage Class ConfigDBStorage to store serialized configuration in a table.
Variable Summary
 bool $_bError
 string $_key
Method Summary
 ConfigBaseAbstract __construct ( $options)
 mixed getExpires ()
Variables
bool $_bError = false (line 77)

Flag about occured error

  • access: protected
string $_key = null (line 83)

Key of configuration (could be a file or a md5 hash, depends on child class)

  • access: protected
int $_lifetime = 0 (line 89)

Lifetime of cached data in seconds

  • access: protected
Methods
Constructor __construct (line 103)

Constructor of ConfigBaseAbstract, does some checks, stops further script execution if validation of arguments fails.

  • throws: InvalidArgumentException If option key 'key' is missing or empty
  • access: public
ConfigBaseAbstract __construct ( $options)
  • array $options: Assoziative options array as follows:
    1.  $options['key']      Configuration keydepending on child class
    2.  $options['lifetime'Lifetime of data in secondsoptional

Redefined in descendants as:
getExpires (line 123)

Returns remained lifetime

  • return: Remained lifetime or null
  • access: protected
mixed getExpires ()

Documentation generated on Sun, 08 Feb 2009 22:00:24 +0100 by phpDocumentor 1.4.1