Public Method Details |
&DBWrapper |
public void &DBWrapper( string $dbname, string $host, string $user, string $passwd )
|
|
Connect to a database.
|
Parameter |
|
string |
$dbname |
|
|
Database name. |
|
|
string |
$host |
|
|
Database host. |
|
|
|
|
|
Returns |
void |
|
create_db |
public void create_db( $name )
|
|
Create a database.
|
Parameter |
|
|
$name |
|
|
Warning: documentation is missing. |
|
Returns |
void |
|
drop_db |
public void drop_db( $name )
|
|
Drop a database.
|
Parameter |
|
|
$name |
|
|
Warning: documentation is missing. |
|
Returns |
void |
|
create_table |
public void create_table( object dbdepend $dep, string $table, string $prefix )
|
|
Create a table based on dbdepend object.
|
Parameter |
|
|
|
string |
$table |
|
|
Table name. |
|
|
string |
$prefix |
|
|
Table name.prefix to use. |
|
Returns |
void |
|
&query |
public object db_result &query( string $query )
|
|
Perform a SQL query.
|
Parameter |
|
string |
$query |
|
|
SQL query string |
|
Returns |
object db_result |
|
insert_id |
public string insert_id( )
|
|
Return primary key value of last inserted record.
|
Returns |
string |
|
close |
public boolean close( )
|
|
Close the database connection.
|
Returns |
boolean |
|
error |
public string error( )
|
|
Return error string of last operation.
|
Returns |
string An empty string is returned if no error occured. |
|
is_connected |
public boolean is_connected( )
|
|
Check if database connection was established.
|
Returns |
boolean True if we're connected to a database, false otherwise. |
|