## Zend_Db

Description

Class for connecting to SQL databases and performing common operations.

- license: New BSD License
- copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Db.php (line 41)

Class Constant Summary
ATTR_AUTOCOMMIT = 0
ATTR_CASE = 8
ATTR_CLIENT_VERSION = 5
ATTR_CONNECTION_STATUS = 7
ATTR_CURSOR = 10
ATTR_CURSOR_NAME = 9
ATTR_DRIVER_NAME = 16
ATTR_ERRMODE = 3
ATTR_FETCH_CATALOG_NAMES = 15
ATTR_FETCH_TABLE_NAMES = 14
ATTR_MAX_COLUMN_LEN = 18
ATTR_ORACLE_NULLS = 11
ATTR_PERSISTENT = 12
ATTR_PREFETCH = 1
ATTR_SERVER_INFO = 6
ATTR_SERVER_VERSION = 4
ATTR_STATEMENT_CLASS = 13
ATTR_STRINGIFY_FETCHES = 17
ATTR_TIMEOUT = 2
CASE_LOWER = 2
CASE_NATURAL = 0
CASE_UPPER = 1
CURSOR_FWDONLY = 0
CURSOR_SCROLL = 1
ERRMODE_EXCEPTION = 2
ERRMODE_SILENT = 0
ERRMODE_WARNING = 1
ERR_ALREADY_EXISTS = NULL
ERR_CANT_MAP = NULL
ERR_CONSTRAINT = NULL
ERR_DISCONNECTED = NULL
ERR_MISMATCH = NULL
ERR_NONE = '00000'
ERR_NOT_FOUND = NULL
ERR_NOT_IMPLEMENTED = NULL
ERR_NO_PERM = NULL
ERR_SYNTAX = NULL
ERR_TRUNCATED = NULL
FETCH_ASSOC = 2
FETCH_BOTH = 4
FETCH_BOUND = 6
FETCH_CLASS = 8
FETCH_CLASSTYPE = 262144
FETCH_COLUMN = 7
FETCH_FUNC = 10
FETCH_GROUP = 65536
FETCH_INTO = 9
FETCH_LAZY = 1
FETCH_NAMED = 11
FETCH_NUM = 3
FETCH_OBJ = 5
FETCH_ORI_ABS = 4
FETCH_ORI_FIRST = 2
FETCH_ORI_LAST = 3
FETCH_ORI_NEXT = 0
FETCH_ORI_PRIOR = 1
FETCH_ORI_REL = 5
FETCH_SERIALIZE = 524288
FETCH_UNIQUE = 196608
NULL_EMPTY_STRING = 1
NULL_NATURAL = 0
NULL_TO_STRING = NULL
PARAM_BOOL = 5
PARAM_INPUT_OUTPUT = -2147483648
PARAM_INT = 1
PARAM_LOB = 3
PARAM_NULL = 0
PARAM_STMT = 4
PARAM_STR = 2
Method Summary
static Zend_Db_Adapter_Abstract factory (string $adapterName, [array $config = array()])
Methods
static factory (line 160)

Factory for Zend_Db_Adapter classes.

Additional keys are processed as key-value pairs for the adapter config array.

- access: public
- todo: Remove support for adapter names without underscores in 0.2 release.

Zend_Db_Adapter_Abstract factory (string $adapterName, [array $config = array()])

- string $adapterName: Name of the adapter to return: 'pdo_mysql' -> Zend_Db_Adapter_Pdo_Mysql
- array $config: An array of adapter configuration keys.

Class Constants
ATTR_AUTOCOMMIT = 0 (line 75)

PDO constant values discovered by this script result:

$list = array( 'PARAM_BOOL', 'PARAM_NULL', 'PARAM_INT', 'PARAM_STR', 'PARAM_LOB', 'PARAM_STMT', 'PARAM_INPUT_OUTPUT', 'FETCH_LAZY', 'FETCH_ASSOC', 'FETCH_NUM', 'FETCH_BOTH', 'FETCH_OBJ', 'FETCH_BOUND', 'FETCH_COLUMN', 'FETCH_CLASS', 'FETCH_INTO', 'FETCH_FUNC', 'FETCH_GROUP', 'FETCH_UNIQUE', 'FETCH_CLASSTYPE', 'FETCH_SERIALIZE', 'FETCH_NAMED', 'ATTR_AUTOCOMMIT', 'ATTR_PREFETCH', 'ATTR_TIMEOUT', 'ATTR_ERRMODE', 'ATTR_SERVER_VERSION', 'ATTR_CLIENT_VERSION', 'ATTR_SERVER_INFO', 'ATTR_CONNECTION_STATUS', 'ATTR_CASE', 'ATTR_CURSOR_NAME', 'ATTR_CURSOR', 'ATTR_ORACLE_NULLS', 'ATTR_PERSISTENT', 'ATTR_STATEMENT_CLASS', 'ATTR_FETCH_TABLE_NAMES', 'ATTR_FETCH_CATALOG_NAMES', 'ATTR_DRIVER_NAME', 'ATTR_STRINGIFY_FETCHES', 'ATTR_MAX_COLUMN_LEN', 'ERRMODE_SILENT', 'ERRMODE_WARNING', 'ERRMODE_EXCEPTION', 'CASE_NATURAL', 'CASE_LOWER', 'CASE_UPPER', 'NULL_NATURAL', 'NULL_EMPTY_STRING', 'NULL_TO_STRING ', 'ERR_NONE', 'FETCH_ORI_NEXT', 'FETCH_ORI_PRIOR', 'FETCH_ORI_FIRST', 'FETCH_ORI_LAST', 'FETCH_ORI_ABS', 'FETCH_ORI_REL', 'CURSOR_FWDONLY', 'CURSOR_SCROLL', 'ERR_CANT_MAP', 'ERR_SYNTAX', 'ERR_CONSTRAINT', 'ERR_NOT_FOUND', 'ERR_ALREADY_EXISTS', 'ERR_NOT_IMPLEMENTED', 'ERR_MISMATCH', 'ERR_TRUNCATED', 'ERR_DISCONNECTED', 'ERR_NO_PERM', );

$const = array(); foreach ($list as $name) { $const[$name] = constant("PDO::$name"); } var_export($const);

ATTR_CASE = 8 (line 76)
ATTR_CLIENT_VERSION = 5 (line 77)
ATTR_CONNECTION_STATUS = 7 (line 78)
ATTR_CURSOR = 10 (line 79)
ATTR_CURSOR_NAME = 9 (line 80)
ATTR_DRIVER_NAME = 16 (line 81)
ATTR_ERRMODE = 3 (line 82)
ATTR_FETCH_CATALOG_NAMES = 15 (line 83)
ATTR_FETCH_TABLE_NAMES = 14 (line 84)
ATTR_MAX_COLUMN_LEN = 18 (line 85)
ATTR_ORACLE_NULLS = 11 (line 86)
ATTR_PERSISTENT = 12 (line 87)
ATTR_PREFETCH = 1 (line 88)
ATTR_SERVER_INFO = 6 (line 89)
ATTR_SERVER_VERSION = 4 (line 90)
ATTR_STATEMENT_CLASS = 13 (line 91)
ATTR_STRINGIFY_FETCHES = 17 (line 92)
ATTR_TIMEOUT = 2 (line 93)
CASE_LOWER = 2 (line 94)
CASE_NATURAL = 0 (line 95)
CASE_UPPER = 1 (line 96)
CURSOR_FWDONLY = 0 (line 97)
CURSOR_SCROLL = 1 (line 98)
ERRMODE_EXCEPTION = 2 (line 110)
ERRMODE_SILENT = 0 (line 111)
ERRMODE_WARNING = 1 (line 112)
ERR_ALREADY_EXISTS = NULL (line 99)
ERR_CANT_MAP = NULL (line 100)
ERR_CONSTRAINT = NULL (line 101)
ERR_DISCONNECTED = NULL (line 102)
ERR_MISMATCH = NULL (line 103)
ERR_NONE = '00000' (line 105)
ERR_NOT_FOUND = NULL (line 106)
ERR_NOT_IMPLEMENTED = NULL (line 107)
ERR_NO_PERM = NULL (line 104)
ERR_SYNTAX = NULL (line 108)
ERR_TRUNCATED = NULL (line 109)
FETCH_ASSOC = 2 (line 113)
FETCH_BOTH = 4 (line 114)
FETCH_BOUND = 6 (line 115)
FETCH_CLASS = 8 (line 116)
FETCH_CLASSTYPE = 262144 (line 117)
FETCH_COLUMN = 7 (line 118)
FETCH_FUNC = 10 (line 119)
FETCH_GROUP = 65536 (line 120)
FETCH_INTO = 9 (line 121)
FETCH_LAZY = 1 (line 122)
FETCH_NAMED = 11 (line 123)
FETCH_NUM = 3 (line 124)
FETCH_OBJ = 5 (line 125)
FETCH_ORI_ABS = 4 (line 126)
FETCH_ORI_FIRST = 2 (line 127)
FETCH_ORI_LAST = 3 (line 128)
FETCH_ORI_NEXT = 0 (line 129)
FETCH_ORI_PRIOR = 1 (line 130)
FETCH_ORI_REL = 5 (line 131)
FETCH_SERIALIZE = 524288 (line 132)
FETCH_UNIQUE = 196608 (line 133)
NULL_EMPTY_STRING = 1 (line 134)
NULL_NATURAL = 0 (line 135)
NULL_TO_STRING = NULL (line 136)
PARAM_BOOL = 5 (line 137)
PARAM_INPUT_OUTPUT = -2147483648 (line 138)
PARAM_INT = 1 (line 139)
PARAM_LOB = 3 (line 140)
PARAM_NULL = 0 (line 141)
PARAM_STMT = 4 (line 142)
PARAM_STR = 2 (line 143)

Documentation generated on Tue, 11 Jul 2006 12:16:49 -0500 by phpDocumentor 1.3.0RC6