phpCoreLib2
[ class tree: phpCoreLib2 ] [ index: phpCoreLib2 ] [ all elements ]

Class: DDataBase

Source Location: /DataBase/DDataBase.php

Class Overview

DObject
   |
   --DDataBase

Base class for data base handling


Variables

Constants

Methods


Child classes:

DRawAccess
Base class for handling tables
DDataBaseSQLImporter
SQL Database importer class
DTableShell
Base class for handling tables

Inherited Constants

Inherited Variables

Inherited Methods

Class: DObject

DObject::__construct()
Constructor
DObject::debug()
Debig
DObject::getClassMembers()
Gets member variables of the instance
DObject::getClassMemberType()
Gets class member type
DObject::getClassMethods()
Gets classes of the class
DObject::getClassName()
Gets class name
DObject::PHPSerialize()
Gets serialized string of the class
DObject::trace()
Trace
DObject::__destruct()
Descructor
DObject::__toString()
Returns String equivalent of the object.

Class Details

[line 69]
Base class for data base handling



[ Top ]


Class Variables

$autoAddSlashes =  PHP_DDATABASE_AUTO_ADD_SLASHES

[line 138]

Auto add slashes



Tags:

access:  public

Type:   int


[ Top ]

$autoHtmlSpecialChars =  PHP_DDATABASE_AUTO_HTML_SPECIALCHARS

[line 131]

Auto html specialchars



Tags:

access:  public

Type:   int


[ Top ]

$autoStripSlashes =  PHP_DDATABASE_AUTO_STRIP_SLASHES

[line 145]

Auto strip slashes



Tags:

access:  public

Type:   int


[ Top ]

$db =  null

[line 111]

SQL DataBase



Tags:

access:  public

Type:   string


[ Top ]

$encoding =  null

[line 118]

Database encoding



Tags:

access:  public

Type:   string


[ Top ]

$errorMsg =  ""

[line 124]

Error message



Tags:

access:  public

Type:   string


[ Top ]

$host =  null

[line 93]

SQL Host



Tags:

access:  public

Type:   string


[ Top ]

$latestSQL =  ""

[line 152]

Latest SQL exequted



Tags:

access:  public

Type:   mixed


[ Top ]

$pass =  null

[line 105]

SQL Passwrod



Tags:

access:  public

Type:   string


[ Top ]

$SQLType =  null

[line 87]

SQL Type



Tags:

access:  public

Type:   string


[ Top ]

$user =  null

[line 99]

SQL User



Tags:

access:  public

Type:   string


[ Top ]

$_DBConnection =  null

[line 158]

DataBase connection



Tags:

access:  protected

Type:   DSQLAbstractBase


[ Top ]



Class Methods


static method getInstance [line 241]

static DDataBase &getInstance( [string $SQLType = null], [string $host = null], [string $user = null], [string $pass = null], [string $db = null], [ $encoding = null])

Gets database instance



Tags:

access:  public


Overridden in child classes as:

DTableShell::getInstance()
Gets instance

Parameters:

string   $SQLType  
string   $host  
string   $user  
string   $pass  
string   $db  
   $encoding  

[ Top ]

constructor __construct [line 172]

DDataBase __construct( [string $SQLType = null], [string $host = null], [string $user = null], [string $pass = null], [string $db = null], [string $encoding = null])

Constructor



Tags:

access:  public


Overridden in child classes as:

DRawAccess::__construct()
Class constructor
DDataBaseSQLImporter::__construct()
Constructor
DTableShell::__construct()
Class constructor
DTableSQLExporter::__construct()
Class constructor

Overrides DObject::__construct() (Constructor)

Parameters:

string   $SQLType  
string   $host  
string   $user  
string   $pass  
string   $db  
string   $encoding  

[ Top ]

method getDBInstance [line 225]

IDSQLBase &getDBInstance( )

Gets IDSQLBase instance



Tags:

access:  public


[ Top ]

method initializeSQLBase [line 193]

void initializeSQLBase( )

Initializes the DB Layber



Tags:

access:  public


[ Top ]

method query [line 269]

array query( mixed $SQLQuery, [int $page = DDataBase::NO_PAGING], [int $itemsPerPage = PHP_DDATABASE_DEFAULT_ITEMS_PER_PAGE])

Execute a SQL Query and returns the data



Tags:

access:  public


Parameters:

mixed   $SQLQuery  
int   $page   Page starting from 0
int   $itemsPerPage  

[ Top ]

method setCurrentDB [line 254]

void setCurrentDB( string $db)

Sets the current db



Tags:

access:  public


Parameters:

string   $db  

[ Top ]


Class Constants

NO_PAGING =  -1

[line 74]

No Paging constant


[ Top ]



Documentation generated on Sat, 17 Apr 2010 22:03:49 +0300 by phpDocumentor 1.4.3