phpDocumentor ZNF
Config
[ class tree: ZNF ] [ index: ZNF ] [ all elements ]

Class: ZNF_Config_DBConfig

Source Location: /Config/DBConfig.php

Class ZNF_Config_DBConfig

Class Overview

ZNF_Config_DBConfig contains the collection of static database configuration informations.

Returns the ZNF_Config_DBConfig object reference with a singleton pattern.

Located in /Config/DBConfig.php [line 39]



		
				Author(s):
		
		
		API Tags:
Access:  public

Information Tags:
Version:  SVN $Id: DBConfig.php 43 2007-06-26 23:36:35Z aronnax $
Copyright:  2004-2007 The ZNF Development Team
Link:  http://www.zeronotice.org
Since:  Release 0.7.5
License:  LGPL

Properties

Methods

[ Top ]
Constant Summary
CONFIG_FILE   Name of the configuration file.

[ Top ]
Property Summary
static mixed   $_dbConfig   The ZNF_Config_DBConfig object reference.
array   $_config   The array of the configuration file.

[ Top ]
Method Summary
static ZNF_Config_DBConfig   getInstance()   Returns the reference to the ZNF_Config_DBConfig object with a singleton pattern.
ZNF_Config_DBConfig   __construct()   Private constructor to avoid ZNF_Config_DBConfig object creation.
void   __destruct()   Destroys the ZNF_Config_DBConfig object.
string   getDbms()   Returns the database DBMS.
string   getDbname()   Returns the database dbname.
string   getHostname()   Returns the database hostname.
string   getPassword()   Returns the database password.
string   getTablePrefix()   Returns the database table prefix.
string   getUsername()   Returns the database username.
void   _parseConfiguration()   Parses and validates the configuration file.
void   __clone()   Private clonator to avoid ZNF_Config_DBConfig object clonation.

[ Top ]
Properties
static mixed   $_dbConfig [line 53]

The ZNF_Config_DBConfig object reference.

API Tags:
Staticvar:  ZNF_Config_DBConfig $_dbConfig:
Access:  protected


[ Top ]
array   $_config [line 61]

The array of the configuration file.

API Tags:
Access:  protected


[ Top ]
Methods
static method getInstance  [line 92]

  static ZNF_Config_DBConfig getInstance( )

Returns the reference to the ZNF_Config_DBConfig object with a singleton pattern.

This object is shared by all the classes that require the database configuration.


API Tags:
Access:  public


[ Top ]
Constructor __construct  [line 68]

  ZNF_Config_DBConfig __construct( )

Private constructor to avoid ZNF_Config_DBConfig object creation.


API Tags:
Access:  private


[ Top ]
Destructor __destruct  [line 226]

  void __destruct( )

Destroys the ZNF_Config_DBConfig object.


API Tags:
Access:  public


[ Top ]
getDbms  [line 161]

  string getDbms( )

Returns the database DBMS.


API Tags:
Access:  public


[ Top ]
getDbname  [line 205]

  string getDbname( )

Returns the database dbname.


API Tags:
Access:  public


[ Top ]
getHostname  [line 194]

  string getHostname( )

Returns the database hostname.


API Tags:
Access:  public


[ Top ]
getPassword  [line 183]

  string getPassword( )

Returns the database password.


API Tags:
Access:  public


[ Top ]
getTablePrefix  [line 216]

  string getTablePrefix( )

Returns the database table prefix.


API Tags:
Access:  public


[ Top ]
getUsername  [line 172]

  string getUsername( )

Returns the database username.


API Tags:
Access:  public


[ Top ]
_parseConfiguration  [line 109]

  void _parseConfiguration( )

Parses and validates the configuration file.

For performance reasons implements a caching mechanism that serializes the configuration file in an internal structure.


API Tags:
Access:  protected


[ Top ]
__clone  [line 78]

  void __clone( )

Private clonator to avoid ZNF_Config_DBConfig object clonation.


API Tags:
Access:  private


[ Top ]
Constants
CONFIG_FILE = 'znf-db-config.xml' [line 45]

Name of the configuration file.


[ Top ]

Documentation generated on Wed, 14 Nov 2007 23:47:36 +0100 by phpDocumentor 1.4.0