databaseDatabase connector class
Located in /includes/database.php (line 13)
| Class | Description |
|---|---|
mamboDatabase
|
Database connector class |
database
database
([string $host = 'localhost'], string $user, string $pass, string $db, string $table_prefix)
void
mosBindArrayToObject
(array $array, obj &$obj, [string $ignore = ''], [boolean $prefix = NULL], [ $checkSlashes = true])
Internal
$_cursor
= null (line 25)
boolean
$_debug
(line 27)
string
$_errorMsg
= '' (line 19)
int
$_errorNum
(line 17)
array
$_log
= array() (line 29)
string
$_null_date
= '0000-00-00 00:00:00' (line 31)
Internal
$_resource
= '' (line 23)
string
$_sql
= '' (line 15)
string
$_table_prefix
= '' (line 21)
Database object constructor
Fudge method for ADOdb compatibility
Document::db_insertObject()
{ Description }
Load a assoc list of database rows
This global function loads the first row of a query into an object
If an object is passed to this function, the returned row is bound to the existing elements of object. If object has a value of null, then all of the returned query fields returned in the object.
Load a list of database objects
This method loads the first field of the first row returned by the query.
Load an array of single field results into an array
Load a list of database rows (numeric column indexing)
Copy the named array content into the object as properties
only existing properties of object are filled. when undefined in hash, properties wont be deleted
Strip slashes from strings or arrays of strings
This function replaces a string identifier $prefix with the string held is the _table_prefix class variable.
Load an array of retrieved database objects or values
Sets the SQL query string for later execution.
Sets the SQL query string for later execution.
This function replaces a string identifier $prefix with the string held is the _table_prefix class variable.
Document::db_updateObject()
{ Description }
Documentation generated on Mon, 05 May 2008 16:19:10 +0400 by phpDocumentor 1.4.0