phpDocumentor GalleryCore
Classes
[ class tree: GalleryCore ] [ index: GalleryCore ] [ all elements ]

Procedural File: GalleryStorage.class

Source Location: /modules/core/classes/GalleryStorage.class

Page Details

Database storage mechanism. This object provides the hooks for saving and restoring objects in the persistent store.

Version:  $Revision: 20886 $
Author:  Bharat Mediratta <bharat@menalto.com>
Classes
Class Description
GalleryStorage Database storage mechanism. This object provides the hooks for saving and restoring objects in the persistent store.
GallerySearchResults Container for database result set
GallerySqlFragment Container to store an sql fragment that can be passed to the db abstraction layer.
MySqlStorage MySQL extension of the GalleryStorage class.
Constants
ADODB_ERROR_HANDLER  [line 43]

ADODB_ERROR_HANDLER = 'GalleryAdodbErrorHandler'

This will let ADOdb know which error handler function we want to use.

(if embedded in an application also using ADOdb it may be defined already)


[ Top ]

DATABASE_COLUMN_PREFIX  [line 69]

DATABASE_COLUMN_PREFIX = 'g_'

Default prefix to prepend to column names


[ Top ]

DATABASE_SEQUENCE_EVENT_LOG  [line 59]

DATABASE_SEQUENCE_EVENT_LOG = 'SequenceEventLog'

Name of the sequence we'll use for event log records


[ Top ]

DATABASE_SEQUENCE_ID  [line 49]

DATABASE_SEQUENCE_ID = 'SequenceId'

Name of the sequence we'll use for GalleryEntity ids


[ Top ]

DATABASE_SEQUENCE_LOCK  [line 54]

DATABASE_SEQUENCE_LOCK = 'SequenceLock'

Name of the sequence we'll use for lock ids


[ Top ]

DATABASE_TABLE_PREFIX  [line 64]

DATABASE_TABLE_PREFIX = 'g2_'

Default prefix to prepend to table names


[ Top ]


Functions
GalleryAdodbErrorHandler  [line 1623]

void GalleryAdodbErrorHandler( string $dbms, string $fn, int $errno, string $errmsg, [mixed $p1 = false], [mixed $p2 = false]  )

Default Error Handler for ADOdb. Derived from adodb-errorhandler.inc.php which is (c) 2000, 2001 John Lim (jlim@natsoft.com.my). All rights reserved.

Parameters:
string   $dbms:  the RDBMS you are connecting to
string   $fn:  the name of the calling function (in uppercase)
int   $errno:  the native error number from the database
string   $errmsg:  the native error msg from the database
mixed   $p1:  $fn specific parameter - see below
mixed   $p2:  $fn specific parameter - see below


[ Top ]


Documentation generated on Fri, 08 Oct 2010 05:04:13 -0700 by phpDocumentor 1.3.0RC6