OCSP_DB--------------------------------------------------- Class OCSP_DB
Located in /db/OCSP_DB.phpclass (line 57)
| Class | Description |
|---|---|
OCSP_DB_mySQL
|
handels mySQL database connections / operations |
array
getArray
(string $aTable, array $conditions, [int $offset = 0], [int $limit = 0], [string $orderBy = ""], [boolean $debug = false])
array
getIndexedArray
(string $aTable, array $conditions, string $idxCol, [mixed $valCols = null], [int $offset = 0], [int $limit = 0], [string $orderBy = ""], [boolean $debug = FALSE])
OCSP_CURSOR
query
([string $aQuery = ""], [boolean $secMode = True], [boolean $withErrMsg = False], [boolean $autoFree = True], [boolean $useBuffer = True])
array
queryArray
(string $aQuery, [int $keyFld = 0], [int $valueFld = 0], [boolean $secMode = True], [boolean $debug = False])
int
updateArray
(string $aTable, array $conditions, array $values, [int $limit = 0], [boolean $debug = false])
adds a column to a table
returns a valid column name
generates a query and returns an array of the resultset
limit <> a multidimensional array is returned (see queryArray) if limit = 1 a single array is returned (see quickQuery)
returns an array with column description arrays for each column where column name is the array index
a column description array has the following elements
returns an array with all tables in the database
returns the database type
('mySQL' for example)
generates a query and returns an array of the resultset with $idxCol as index and $valCols as values
if $valCols is an array of column names this columns are added as array to the returned array if $valCols is empty the complete row is added to the return array else $row[$valCols] is added to the return (simple array)
limit <> a multidimensional array is returned (see queryArray) if limit = 1 a single array is returned (see quickQuery)
can also be called without object OCSP_DB::getMyConfFile() if $this->myConfFile is empty the global dbConffile is returned
Runs the query provided and returns the data from the first column of the first row then frees the result set.
returns the first row matching $filter
inserts a new row out of an array
returns the value of the auto_increment field (idFld) or True in case of an error it returns False
returns $aValue with slashes to use to create query strings
returns WHERE col IN($valArr)
opens a cursor for a query
returns an array of table rows
if $keyFld == $valueFld a simple array is returned ( $array[]=$value )
if $keyFld != $valueFld a simple array is returned where $keyFld is used as index ( $array[$key]=$value )
if $valueFld == -1 a named 2 dimensonal array is returned ( $array[$key]=$row )
if $keyFld == -1 && $valueFld == -1 a 2 dimensonal array is returned ( $array[]=$row )
truncates a table
updates $values in $aTable where $conditions
Documentation generated on Thu, 08 Jan 2009 17:45:28 +0100 by phpDocumentor 1.4.0a2