DBAPILegacy Database API class for MySQL.
Located in /model/modx/dbapi.class.php (line 12)
DBAPI
__construct
([ $host = ''], [ $dbase = ''], [ $uid = ''], [ $pwd = ''], [ $pre = ''], [ $dbtype = ''])
mixed
insert
(mixed $fields, string $intotable, [string $fromfields = "*"], [string $fromtable = ""], [string $where = ""], [string $limit = ""])
mixed
select
([string $fields = "*"], [string $from = ""], [string $where = ""], [string $orderby = ""], [string $limit = ""])
Constructor __construct (line 22)
DBAPI constructor
connect (line 101)
Connect to database.
delete (line 168)
Delete a record from the DB
disconnect (line 119)
Disconnect from the DB
escape (line 130)
Escape field data
exec (line 272)
Execute an SQL query
getAffectedRows (line 307)
Get affected rows by last query
getColumn (line 409)
Get an array of values for a column
getColumnNames (line 428)
Returns an array of all the column names
getHTMLGrid (line 545)
Get an HTML grid
getInsertId (line 296)
Get the last INSERTed primary key
getLastError (line 317)
Get last error from DB
getRecordCount (line 327)
Get record count from last query
getRow (line 349)
Gets a row of values from a result set
getTableMetaData (line 488)
Returns an array of MySQL structure detail for each column of a table
getValue (line 448)
Returns the value from the first column in the set
getXML (line 464)
Returns an XML format of the dataset $ds
initDataTypes (line 54)
Called in the constructor to set up arrays containing the types of database fields that can be used with specific PHP types
insert (line 242)
Insert a record into the DB.
makeArray (line 592)
Turns a recordset into a multidimensional array
prepareDate (line 512)
Prepares a date in the proper format for specific database types given a UNIX timestamp
query (line 142)
Mainly for internal use. Developers should use select, update, insert, delete where possible
select (line 189)
Select a record from the DB
update (line 210)
Update a record in the DB
Documentation generated on Fri, 17 Jun 2011 10:03:18 -0600 by phpDocumentor 1.4.3