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

File: MDB2.php

Source Location: /MDB2-2.5.0b5/MDB2.php

Classes:

MDB2
The main 'MDB2' class is simply a container class with some static methods for creating DB objects as well as some utility functions common to all parts of DB.
MDB2_Error
MDB2_Error implements a class for reporting portable database error messages.
MDB2_Driver_Common
MDB2_Driver_Common: Base class that is extended by each MDB2 driver
MDB2_Result
The dummy class that all user space result classes should extend from
MDB2_Result_Common
The common result class for MDB2 result objects
MDB2_Row
The simple class that accepts row data as an array
MDB2_Statement_Common
The common statement class for MDB2 statement objects
MDB2_Module_Common
The common modules class for MDB2 module objects

Page Details:

Includes:

require_once('PEAR.php') [line 55]

MDB2_ERROR [line 68]

MDB2_ERROR = -1

[ Top ]



MDB2_ERROR_ACCESS_VIOLATION [line 94]

MDB2_ERROR_ACCESS_VIOLATION = -27

[ Top ]



MDB2_ERROR_ALREADY_EXISTS [line 72]

MDB2_ERROR_ALREADY_EXISTS = -5

[ Top ]



MDB2_ERROR_CANNOT_ALTER [line 98]

MDB2_ERROR_CANNOT_ALTER = -31

[ Top ]



MDB2_ERROR_CANNOT_CREATE [line 82]

MDB2_ERROR_CANNOT_CREATE = -15

[ Top ]



MDB2_ERROR_CANNOT_DELETE [line 83]

MDB2_ERROR_CANNOT_DELETE = -16

[ Top ]



MDB2_ERROR_CANNOT_DROP [line 84]

MDB2_ERROR_CANNOT_DROP = -17

[ Top ]



MDB2_ERROR_CANNOT_REPLACE [line 95]

MDB2_ERROR_CANNOT_REPLACE = -28

[ Top ]



MDB2_ERROR_CONNECT_FAILED [line 91]

MDB2_ERROR_CONNECT_FAILED = -24

[ Top ]



MDB2_ERROR_CONSTRAINT [line 70]

MDB2_ERROR_CONSTRAINT = -3

[ Top ]



MDB2_ERROR_CONSTRAINT_NOT_NULL [line 96]

MDB2_ERROR_CONSTRAINT_NOT_NULL = -29

[ Top ]



MDB2_ERROR_DEADLOCK [line 97]

MDB2_ERROR_DEADLOCK = -30

[ Top ]



MDB2_ERROR_DISCONNECT_FAILED [line 104]

MDB2_ERROR_DISCONNECT_FAILED = -37

[ Top ]



MDB2_ERROR_DIVZERO [line 80]

MDB2_ERROR_DIVZERO = -13

[ Top ]



MDB2_ERROR_EXTENSION_NOT_FOUND [line 92]

MDB2_ERROR_EXTENSION_NOT_FOUND = -25

[ Top ]



MDB2_ERROR_INSUFFICIENT_DATA [line 102]

MDB2_ERROR_INSUFFICIENT_DATA = -35

[ Top ]



MDB2_ERROR_INVALID [line 75]

MDB2_ERROR_INVALID = -8

[ Top ]



MDB2_ERROR_INVALID_DATE [line 79]

MDB2_ERROR_INVALID_DATE = -12

[ Top ]



MDB2_ERROR_INVALID_DSN [line 90]

MDB2_ERROR_INVALID_DSN = -23

[ Top ]



MDB2_ERROR_INVALID_NUMBER [line 78]

MDB2_ERROR_INVALID_NUMBER = -11

[ Top ]



MDB2_ERROR_LOADMODULE [line 101]

MDB2_ERROR_LOADMODULE = -34

[ Top ]



MDB2_ERROR_MANAGER [line 99]

MDB2_ERROR_MANAGER = -32

[ Top ]



MDB2_ERROR_MANAGER_PARSE [line 100]

MDB2_ERROR_MANAGER_PARSE = -33

[ Top ]



MDB2_ERROR_MISMATCH [line 74]

MDB2_ERROR_MISMATCH = -7

[ Top ]



MDB2_ERROR_NEED_MORE_DATA [line 87]

MDB2_ERROR_NEED_MORE_DATA = -20

[ Top ]



MDB2_ERROR_NODBSELECTED [line 81]

MDB2_ERROR_NODBSELECTED = -14

[ Top ]



MDB2_ERROR_NOSUCHDB [line 93]

MDB2_ERROR_NOSUCHDB = -26

[ Top ]



MDB2_ERROR_NOSUCHFIELD [line 86]

MDB2_ERROR_NOSUCHFIELD = -19

[ Top ]



MDB2_ERROR_NOSUCHTABLE [line 85]

MDB2_ERROR_NOSUCHTABLE = -18

[ Top ]



MDB2_ERROR_NOT_CAPABLE [line 76]

MDB2_ERROR_NOT_CAPABLE = -9

[ Top ]



MDB2_ERROR_NOT_FOUND [line 71]

MDB2_ERROR_NOT_FOUND = -4

[ Top ]



MDB2_ERROR_NOT_LOCKED [line 88]

MDB2_ERROR_NOT_LOCKED = -21

[ Top ]



MDB2_ERROR_NO_PERMISSION [line 103]

MDB2_ERROR_NO_PERMISSION = -36

[ Top ]



MDB2_ERROR_SYNTAX [line 69]

MDB2_ERROR_SYNTAX = -2

[ Top ]



MDB2_ERROR_TRUNCATED [line 77]

MDB2_ERROR_TRUNCATED = -10

[ Top ]



MDB2_ERROR_UNSUPPORTED [line 73]

MDB2_ERROR_UNSUPPORTED = -6

[ Top ]



MDB2_ERROR_VALUE_COUNT_ON_ROW [line 89]

MDB2_ERROR_VALUE_COUNT_ON_ROW = -22

[ Top ]



MDB2_FETCHMODE_ASSOC [line 132]

MDB2_FETCHMODE_ASSOC = 2
Column data indexed by column names

[ Top ]



MDB2_FETCHMODE_DEFAULT [line 122]

MDB2_FETCHMODE_DEFAULT = 0
This is a special constant that tells MDB2 the user hasn't specified any particular get mode, so the default should be used.

[ Top ]



MDB2_FETCHMODE_FLIPPED [line 145]

MDB2_FETCHMODE_FLIPPED = 4
For multi-dimensional results: normally the first level of arrays is the row number, and the second level indexed by column number or name.

MDB2_FETCHMODE_FLIPPED switches this order, so the first level of arrays is the column name, and the second level the row number.


[ Top ]



MDB2_FETCHMODE_OBJECT [line 137]

MDB2_FETCHMODE_OBJECT = 3
Column data as object properties

[ Top ]



MDB2_FETCHMODE_ORDERED [line 127]

MDB2_FETCHMODE_ORDERED = 1
Column data indexed by numbers, ordered from 0 and up

[ Top ]



MDB2_OK [line 67]

MDB2_OK = true
The method mapErrorCode in each MDB2_dbtype implementation maps native error codes to one of these.

If you add an error code here, make sure you also add a textual version of it in MDB2::errorMessage().


[ Top ]



MDB2_PORTABILITY_ALL [line 213]

MDB2_PORTABILITY_ALL = 127
Portability: turn on all portability features.

[ Top ]



MDB2_PORTABILITY_DELETE_COUNT [line 173]

MDB2_PORTABILITY_DELETE_COUNT = 4
Portability: force reporting the number of rows deleted.

[ Top ]



MDB2_PORTABILITY_EMPTY_TO_NULL [line 201]

MDB2_PORTABILITY_EMPTY_TO_NULL = 32
Portability: convert empty values to null strings in data output by query*() and fetch*().

[ Top ]



MDB2_PORTABILITY_ERRORS [line 194]

MDB2_PORTABILITY_ERRORS = 16
Portability: makes certain error messages in certain drivers compatible with those from other DBMS's.

  • mysql, mysqli: change unique/primary key constraints MDB2_ERROR_ALREADY_EXISTS -> MDB2_ERROR_CONSTRAINT
  • odbc(access): MS's ODBC driver reports 'no such field' as code 07001, which means 'too few parameters.' When this option is on that code gets mapped to MDB2_ERROR_NOSUCHFIELD.


[ Top ]



MDB2_PORTABILITY_FIX_ASSOC_FIELD_NAMES [line 207]

MDB2_PORTABILITY_FIX_ASSOC_FIELD_NAMES = 64
Portability: removes database/table qualifiers from associative indexes

[ Top ]



MDB2_PORTABILITY_FIX_CASE [line 161]

MDB2_PORTABILITY_FIX_CASE = 1
Portability: convert names of tables and fields to case defined in the "field_case" option when using the query*(), fetch*() and tableInfo() methods.

[ Top ]



MDB2_PORTABILITY_NONE [line 154]

MDB2_PORTABILITY_NONE = 0
Portability: turn off all portability features.

[ Top ]



MDB2_PORTABILITY_NUMROWS [line 179]

MDB2_PORTABILITY_NUMROWS = 8
Portability: not needed in MDB2 (just left here for compatibility to DB)

[ Top ]



MDB2_PORTABILITY_RTRIM [line 167]

MDB2_PORTABILITY_RTRIM = 2
Portability: right trim the data output by query*() and fetch*().

[ Top ]



MDB2_PREPARE_MANIP [line 112]

MDB2_PREPARE_MANIP = false
These are just helper constants to more verbosely express parameters to prepare()

[ Top ]



MDB2_PREPARE_RESULT [line 113]

MDB2_PREPARE_RESULT = null

[ Top ]



MDB2_closeOpenTransactions [line 4567]

void MDB2_closeOpenTransactions( )

Close any open transactions form persistent connections
  • Access: public


[ Top ]



MDB2_defaultDebugOutput [line 4599]

void|string MDB2_defaultDebugOutput( object reference &$db, string $scope, string $message, [array $context = array()])

default debug output handler
  • Return: optionally return a modified message, this allows rewriting a query before being issued or prepared
  • Access: public


Parameters

object reference   &$db   to an MDB2 database object
string   $scope   usually the method name that triggered the debug call: for example 'query', 'prepare', 'execute', 'parameters', 'beginTransaction', 'commit', 'rollback'
string   $message   message that should be appended to the debug variable
array   $context   contains context information about the debug() call common keys are: is_manip, time, result etc.
[ Top ]



Documentation generated on Mon, 11 Mar 2019 15:51:34 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.