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

Class: ZNF_Business_DB

Source Location: /Business/DB.php

Class ZNF_Business_DB

Class Overview

The ZNF_Business_DB class extends the PEAR DB class.

Connects to the database using the configuration taken from the database configuration file. Returns the ZNF_Business_DB object reference with a singleton pattern.

Located in /Business/DB.php [line 43]

DB
   |
   --ZNF_Business_DB
Author(s): API Tags:
Access:  public

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

Properties

Methods

[ Top ]
Property Summary
static mixed   $_db   The database object reference.
static mixed   $_tablePrefix   Prefix used in the name of the database tables.

[ Top ]
Method Summary
static ZNF_Business_DB   getInstance()   Returns the reference to the ZNF_Business_DB object with a singleton pattern.
static string   getTablePrefix()   Returns the prefix used in the name of the database tables.
ZNF_Business_DB   __construct()   Private constructor to avoid ZNF_Business_DB object creation.
void   __destruct()   Destroys the ZNF_Business_DB object.
void   __clone()   Private clonator to avoid ZNF_Business_DB object clonation.

[ Top ]
Properties
static mixed   $_db [line 52]

The database object reference.

API Tags:
Staticvar:  ZNF_Business_DB $_db:
Access:  private


[ Top ]
static mixed   $_tablePrefix [line 60]

Prefix used in the name of the database tables.

API Tags:
Staticvar:  string $_tablePrefix:
Access:  private


[ Top ]
Methods
static method getInstance  [line 90]

  static ZNF_Business_DB getInstance( )

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

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


API Tags:
Access:  public


[ Top ]
static method getTablePrefix  [line 116]

  static string getTablePrefix( )

Returns the prefix used in the name of the database tables.


API Tags:
Access:  public


[ Top ]
Constructor __construct  [line 67]

  ZNF_Business_DB __construct( )

Private constructor to avoid ZNF_Business_DB object creation.


API Tags:
Access:  private


[ Top ]
Destructor __destruct  [line 126]

  void __destruct( )

Destroys the ZNF_Business_DB object.


API Tags:
Access:  public


[ Top ]
__clone  [line 76]

  void __clone( )

Private clonator to avoid ZNF_Business_DB object clonation.


API Tags:
Access:  private


[ Top ]

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