SGL_DBClass for handling DB resources.
Located in /SGL/DB.php (line 51)
array
getPagedData
( &$db, string $query, [array $pager_options = array()], [boolean $disabled = false], [int $fetchMode = DB_FETCHMODE_ASSOC], [mixed $dbparams = array()], object $db)
static getDsn (line 115)
Returns the default dsn specified in the global config.
static setConnection (line 210)
Sets the DB_DataObject DB resource to be the same as the sgl DB singleton. You can use this for sharing connections between PEAR::DataObjects and SGL_DB.
This enables you to use DataObjects and SGL_DB in the same transaction.
example usage: $oUser = DB_DataObject::factory($this->conf['table']['user']); SGL_DB::setConnection(); $dbh->autocommit(); ... do some transactional DO and SGL_DB stuff $dbh->commit();
static singleton (line 67)
Returns a singleton reference to the DB resource.
example usage: $dbh = & SGL_DB::singleton(); warning: in order to work correctly, DB handle singleton must be instantiated statically and by reference
getPagedData (line 252)
rewriteCountQuery (line 232)
Helper method - Rewrite the query into a "SELECT COUNT(*)" query.
_getDsnAsArray (line 146)
_getDsnAsString (line 163)
Documentation generated on Tue, 23 Feb 2010 18:14:29 +0000 by phpDocumentor 1.4.3