CWIS Developer Documentation
Classes | Variables
Database.php File Reference

Go to the source code of this file.

Classes

class  Database
 SQL database abstraction object with smart query caching. More...
 

Variables

const DB_OKAY 0
 
const DB_ERROR 1
 
const DB_ACCESSDENIED 2
 
const DB_UNKNOWNDB 3
 
const DB_UNKNOWNTABLE 4
 
const DB_SYNTAXERROR 5
 
const DB_DBALREADYEXISTS 6
 
const DB_DBDOESNOTEXIST 7
 
const DB_DISKFULL 8
 
const DB_NOVALUE "!-_-_-DB_NOVALUE-_-_-!"
 
 $APDBErrorCodeMappings
 
const DATE_SQL "Y-m-d H:i:s"
 

Variable Documentation

$APDBErrorCodeMappings
Initial value:
= array(
1045 => DB_ACCESSDENIED,
1049 => DB_UNKNOWNDB,
1046 => DB_UNKNOWNTABLE,
1064 => DB_SYNTAXERROR,
1007 => DB_DBALREADYEXISTS, # ? (not sure)
1008 => DB_DBDOESNOTEXIST, # ? (not sure)
1021 => DB_DISKFULL, # ? (not sure)
)
const DB_ACCESSDENIED
Definition: Database.php:1728
const DB_SYNTAXERROR
Definition: Database.php:1731
const DB_DISKFULL
Definition: Database.php:1734
const DB_UNKNOWNTABLE
Definition: Database.php:1730
const DB_DBDOESNOTEXIST
Definition: Database.php:1733
const DB_DBALREADYEXISTS
Definition: Database.php:1732
const DB_UNKNOWNDB
Definition: Database.php:1729

Definition at line 1741 of file Database.php.

const DATE_SQL "Y-m-d H:i:s"

Definition at line 1752 of file Database.php.

const DB_ACCESSDENIED 2

Definition at line 1728 of file Database.php.

const DB_DBALREADYEXISTS 6

Definition at line 1732 of file Database.php.

const DB_DBDOESNOTEXIST 7

Definition at line 1733 of file Database.php.

const DB_DISKFULL 8

Definition at line 1734 of file Database.php.

const DB_ERROR 1

Definition at line 1727 of file Database.php.

const DB_NOVALUE "!-_-_-DB_NOVALUE-_-_-!"
const DB_OKAY 0

Definition at line 1726 of file Database.php.

const DB_SYNTAXERROR 5

Definition at line 1731 of file Database.php.

const DB_UNKNOWNDB 3

Definition at line 1729 of file Database.php.

const DB_UNKNOWNTABLE 4

Definition at line 1730 of file Database.php.