Definition at line 17 of file embient.db.php.
Public Member Functions | |
| EmbientDatabase () | |
| Constructor - to initialise all variables. | |
| Init ($cfg) | |
| Initialise the database. | |
| Connect () | |
| Connect to database. | |
| Disconnect () | |
| Disconnect from database. | |
| Query ($query, $file, $line) | |
| Execute the database query. | |
| GetRowsCount () | |
| return the number of rows from previous query | |
| FetchArray () | |
| return a single row of an associative array of column_name => value of previous query. | |
| FetchAll () | |
| return all result from the previous query in an associative array. | |
| FetchRow () | |
| return a single row of the result in a linear array. | |
| GetNextID ($tablename, $idname) | |
| get next unique ID from database | |
Public Attributes | |
| $connection | |
| database connection | |
| $result | |
| last result id to use with mySQL function | |
Private Member Functions | |
| _prepare ($sql) | |
Private Attributes | |
| $_db_host | |
| $_db_user | |
| $_db_pass | |
| $_db_name | |
| $_prefix | |
|
|
Constructor - to initialise all variables.
Definition at line 47 of file embient.db.php. |
|
|
prepare the query
Definition at line 299 of file embient.db.php. |
|
|
Connect to database.
Definition at line 94 of file embient.db.php. Here is the call graph for this function: ![]() |
|
|
Disconnect from database.
Definition at line 130 of file embient.db.php. Here is the call graph for this function: ![]() |
|
|
return all result from the previous query in an associative array.
Definition at line 214 of file embient.db.php. Here is the call graph for this function: ![]() |
|
|
return a single row of an associative array of column_name => value of previous query.
Definition at line 197 of file embient.db.php. Here is the call graph for this function: ![]() |
|
|
return a single row of the result in a linear array.
Definition at line 239 of file embient.db.php. Here is the call graph for this function: ![]() |
|
||||||||||||
|
get next unique ID from database Return a new unique ID in the given sequence according to value in {sequence} table. Currently, this function support only Drupal style.
Definition at line 265 of file embient.db.php. Here is the call graph for this function: ![]() |
|
|
return the number of rows from previous query
Definition at line 180 of file embient.db.php. Here is the call graph for this function: ![]() |
|
|
Initialise the database.
Definition at line 68 of file embient.db.php. Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Execute the database query.
Definition at line 161 of file embient.db.php. Here is the call graph for this function: ![]() |
|
|
database host name Definition at line 28 of file embient.db.php. |
|
|
name of database to connect to Definition at line 37 of file embient.db.php. |
|
|
password to login to database server Definition at line 34 of file embient.db.php. |
|
|
user name to login to database server Definition at line 31 of file embient.db.php. |
|
|
table prefix to put in front of all table name Definition at line 40 of file embient.db.php. |
|
|
database connection
Definition at line 20 of file embient.db.php. |
|
|
last result id to use with mySQL function
Definition at line 23 of file embient.db.php. |
1.4.6-NO