sql 
[ doc home ] [ class tree: sql ] [ index: sql ] [ all elements ]

Class: IsterSqlDriver

Source Location: /IsterSqlDriver.php

Class Overview

IsterObject
   |
   --IsterSqlDriver

Base class for SQL drivers.


Author(s): Ingo Schramm   

Copyright: Copyright (c) 2005 Ister.ORG Ingo Schramm

Variables

Methods


Child classes:

IsterSqlDriverDbx
The Dbx driver of the package.
IsterSqlDriverPostgresql
The PostgreSQL driver of the package.
IsterSqlDriverMysql
The MySQL driver of the package.

Inherited Constants

Inherited Variables

Inherited Methods

Class: IsterObject

IsterObject::IsterObject()
Constructor
IsterObject::abstractMethodError()
Report attempt to call an abstract method.
IsterObject::addLogger()
Add an IsterLogger to process log messages.
IsterObject::deleteLogger()
Delete an already registered IsterLogger.
IsterObject::getLoggerNames()
Fetch the names of all currently registered IsterLoggers.
IsterObject::getMem()
Return maximum amount of memory an application has allocated at this point.
IsterObject::log()
Trigger a log message.
IsterObject::passPHPmessage()
Catch PHP E_WARNING and E_NOTICE messages.
IsterObject::serialize()
Serialize the object.
IsterObject::setLogLocal()
Set logging local for the current object.
IsterObject::setupLogger()
Setup a logger.
IsterObject::triggerError()
Alias for log();
IsterObject::unserialize()
Unserialize the object.
IsterObject::__sleep()
Executed prior to serialize().
IsterObject::__wakeup()
Executed prior to unserialize().

Class Details

Base class for SQL drivers.

copyright:  Copyright (c) 2005 Ister.ORG Ingo Schramm
author:  Ingo Schramm


[ Top ]


Class Variables

protected object IsterEssourceChecker $reschecker The object's ressource checker.
[ Top ]



Class Methods


constructor IsterSqlDriver

IsterSqlDriver IsterSqlDriver( )

Constructor

[ Top ]

method getConnection

array getConnection( )

Return the current connection parameters.

[ Top ]

method getLink

resource getLink( )

Return the current connection resource.

return:  The link resource or null.
[ Top ]

method setConnection

boolean setConnection( string $server, string $username, string $password, string $db, [integer $port = null], [string $socket = null])

Setup the connection.

Note that this method will not connect to the databse, use your drivers connect()-method to establish a connection.


Overridden in child classes as:

IsterSqlDriverDbx::setConnection()
Setup the connection.

Parameters:

string   $server  
string   $username  
string   $password  
string   $db  
integer   $port  
string   $socket  

[ Top ]


Documentation generated on Tue, 20 Dec 2005 11:21:12 +0100 by phpDocumentor 1.3.0RC4