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

File: Table.php

Source Location: /DB_Table-0.21.2/DB/Table.php

Classes:

DB_Table
DB_Table is a database API and data type SQL abstraction class.

Page Details:

Includes:

require_once('PEAR.php') [line 125]
The PEAR class for errors
require_once('Date.php') [line 130]
The Date class for recasting date and time values

DB_TABLE_ERR_CREATE_FLAG [line 59]

DB_TABLE_ERR_CREATE_FLAG = -10
Error code when you use a create() flag that is not recognized (must be 'safe', 'drop', or boolean false.

[ Top ]



DB_TABLE_ERR_DECLARE_COLNAME [line 107]

DB_TABLE_ERR_DECLARE_COLNAME = -18
Error code at create() time when you define a column in $this->col with an invalid column name (usually because it's a reserved keyword).

[ Top ]



DB_TABLE_ERR_DECLARE_DECIMAL [line 89]

DB_TABLE_ERR_DECLARE_DECIMAL = -15
Error code at create() time when you have an error in a 'decimal' definition (usually becuase the 'size' or 'scope' are wrong).

[ Top ]



DB_TABLE_ERR_DECLARE_IDXNAME [line 113]

DB_TABLE_ERR_DECLARE_IDXNAME = -19
Error code at create() time when you define an index in $this->idx with an invalid index name (usually because it's a reserved keyword).

[ Top ]



DB_TABLE_ERR_DECLARE_STRING [line 83]

DB_TABLE_ERR_DECLARE_STRING = -14
Error code at create() time when you have an error in a 'char' or 'varchar' definition in $this->col (usually because 'size' is wrong).

[ Top ]



DB_TABLE_ERR_DECLARE_TYPE [line 95]

DB_TABLE_ERR_DECLARE_TYPE = -16
Error code at create() time when you define a column in $this->col with an unrecognized 'type'.

[ Top ]



DB_TABLE_ERR_IDX_COL_CLOB [line 119]

DB_TABLE_ERR_IDX_COL_CLOB = -20
Error code at create() time when you define an index in $this->idx that refers to a CLOB column.

[ Top ]



DB_TABLE_ERR_IDX_COL_UNDEF [line 71]

DB_TABLE_ERR_IDX_COL_UNDEF = -12
Error code at create() time when you define an index in $this->idx that refers to a column that does not exist in the $this->col array.

[ Top ]



DB_TABLE_ERR_IDX_NO_COLS [line 65]

DB_TABLE_ERR_IDX_NO_COLS = -11
Error code at create() time when you define an index in $this->idx that has no columns.

[ Top ]



DB_TABLE_ERR_IDX_TYPE [line 77]

DB_TABLE_ERR_IDX_TYPE = -13
Error code at create() time when you define a $this->idx index type that is not recognized (must be 'normal' or 'unique').

[ Top ]



DB_TABLE_ERR_INS_COL_NOMAP [line 25]

DB_TABLE_ERR_INS_COL_NOMAP = -4
Error code when you try to insert data to a column that is not in the $this->col array.

[ Top ]



DB_TABLE_ERR_INS_COL_REQUIRED [line 31]

DB_TABLE_ERR_INS_COL_REQUIRED = -5
Error code when you try to insert data, and that data does not have a column marked as 'require' in the $this->col array.

[ Top ]



DB_TABLE_ERR_INS_DATA_INVALID [line 36]

DB_TABLE_ERR_INS_DATA_INVALID = -6
Error code when auto-validation fails on data to be inserted.

[ Top ]



DB_TABLE_ERR_NOT_DB_OBJECT [line 7]

DB_TABLE_ERR_NOT_DB_OBJECT = -1
Error code at instantiation time when the first parameter to the constructor is not a PEAR DB object.

[ Top ]



DB_TABLE_ERR_PHPTYPE [line 13]

DB_TABLE_ERR_PHPTYPE = -2
Error code at instantiation time when the PEAR DB $phptype is not supported by DB_Table.

[ Top ]



DB_TABLE_ERR_SQL_UNDEF [line 19]

DB_TABLE_ERR_SQL_UNDEF = -3
Error code when you call select() or selectResult() and the first parameter does not match any of the $this->sql keys.

[ Top ]



DB_TABLE_ERR_UPD_COL_NOMAP [line 42]

DB_TABLE_ERR_UPD_COL_NOMAP = -7
Error code when you try to update data to a column that is not in the $this->col array.

[ Top ]



DB_TABLE_ERR_UPD_COL_REQUIRED [line 48]

DB_TABLE_ERR_UPD_COL_REQUIRED = -8
Error code when you try to update data, and that data does not have a column marked as 'require' in the $this->col array.

[ Top ]



DB_TABLE_ERR_UPD_DATA_INVALID [line 53]

DB_TABLE_ERR_UPD_DATA_INVALID = -9
Error code when auto-validation fails on update data.

[ Top ]



DB_TABLE_ERR_VALIDATE_TYPE [line 101]

DB_TABLE_ERR_VALIDATE_TYPE = -17
Error code at validation time when a column in $this->col has an unrecognized 'type'.

[ Top ]



Documentation generated on Mon, 11 Mar 2019 13:52:54 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.