webmatic3.wm3DB
\core\classes\DB\wm3DB.php at line 32

Class wm3DB

wm3DB

public class wm3DB


Constructor Summary

wm3DB(mixed db_server, mixed db_user, mixed db_password, mixed db_name, mixed db_prefix)

Method Summary
static void

checkConnection(mixed server, mixed user, mixed password, mixed name)

static void

checkDatabaseServerVersion(mixed server, mixed user, mixed password)

void

close(void )

Close the current database connection

void

connect(void )

Connect to the database (die if fail)

void

countDBTables()

void

countDBUsedSpace()

void

countTable(mixed table, mixed where)

void

existValue(mixed table, mixed field, mixed value, mixed id_name, mixed id_value)

static void

existsDatabase()

void

existsTable(mixed table)

void

fetch(mixed result, mixed object)

void

fieldFlags(mixed result, mixed i)

void

fieldLenght(mixed result, mixed i)

void

fieldName(mixed result, mixed i)

void

fieldType(mixed result, mixed i)

void

getCharset()

void

getConnection()

void

getDBVersion()

void

getFirstRowField(mixed table, mixed field)

void

getLastInsertID()

void

getNextAutoIncrementID(mixed table)

void

getQueriesAffected()

void

getRSPosition(mixed rs, mixed field, mixed id_value)

void

listFields(mixed table)

void

listTables()

Resource

query(wm3DBQuery/String query)

Execute a query with the current connection (die if fail)

void

resultToArray(mixed result, mixed object)

void

saveAllTableFields(mixed tb, mixed _F, mixed _R)

static void

serverInformations(mixed server, mixed user, mixed password)

void

tableName(mixed result, mixed i)

void

totalFields(mixed result)

void

totalRows(mixed result)

void

useCharset()

Constructor Detail

\core\classes\DB\wm3DB.php at line 42

wm3DB

public wm3DB(mixed db_server, mixed db_user, mixed db_password, mixed db_name, mixed db_prefix)

Method Detail

\core\classes\DB\wm3DB.php at line 289

checkConnection

public static void checkConnection(mixed server, mixed user, mixed password, mixed name)

\core\classes\DB\wm3DB.php at line 295

checkDatabaseServerVersion

public static void checkDatabaseServerVersion(mixed server, mixed user, mixed password)

\core\classes\DB\wm3DB.php at line 72

close

public void close(void )

Close the current database connection


\core\classes\DB\wm3DB.php at line 60

connect

public void connect(void )

Connect to the database (die if fail)


\core\classes\DB\wm3DB.php at line 244

countDBTables

public void countDBTables()

\core\classes\DB\wm3DB.php at line 251

countDBUsedSpace

public void countDBUsedSpace()

\core\classes\DB\wm3DB.php at line 182

countTable

public void countTable(mixed table, mixed where)

\core\classes\DB\wm3DB.php at line 235

existValue

public void existValue(mixed table, mixed field, mixed value, mixed id_name, mixed id_value)

\core\classes\DB\wm3DB.php at line 310

existsDatabase

public static void existsDatabase()

\core\classes\DB\wm3DB.php at line 263

existsTable

public void existsTable(mixed table)

\core\classes\DB\wm3DB.php at line 96

fetch

public void fetch(mixed result, mixed object)

\core\classes\DB\wm3DB.php at line 151

fieldFlags

public void fieldFlags(mixed result, mixed i)

\core\classes\DB\wm3DB.php at line 145

fieldLenght

public void fieldLenght(mixed result, mixed i)

\core\classes\DB\wm3DB.php at line 133

fieldName

public void fieldName(mixed result, mixed i)

\core\classes\DB\wm3DB.php at line 139

fieldType

public void fieldType(mixed result, mixed i)

\core\classes\DB\wm3DB.php at line 233

getCharset

public void getCharset()

\core\classes\DB\wm3DB.php at line 322

getConnection

public void getConnection()

\core\classes\DB\wm3DB.php at line 268

getDBVersion

public void getDBVersion()

\core\classes\DB\wm3DB.php at line 199

getFirstRowField

public void getFirstRowField(mixed table, mixed field)

\core\classes\DB\wm3DB.php at line 210

getLastInsertID

public void getLastInsertID()

\core\classes\DB\wm3DB.php at line 216

getNextAutoIncrementID

public void getNextAutoIncrementID(mixed table)

\core\classes\DB\wm3DB.php at line 324

getQueriesAffected

public void getQueriesAffected()

\core\classes\DB\wm3DB.php at line 222

getRSPosition

public void getRSPosition(mixed rs, mixed field, mixed id_value)

\core\classes\DB\wm3DB.php at line 121

listFields

public void listFields(mixed table)

\core\classes\DB\wm3DB.php at line 115

listTables

public void listTables()

\core\classes\DB\wm3DB.php at line 81

query

public Resource query(wm3DBQuery/String query)

Execute a query with the current connection (die if fail)

Parameters:
query - a wm3DBQuery object or a query string
Returns:
the query result set

\core\classes\DB\wm3DB.php at line 188

resultToArray

public void resultToArray(mixed result, mixed object)

\core\classes\DB\wm3DB.php at line 157

saveAllTableFields

public void saveAllTableFields(mixed tb, mixed _F, mixed _R)

\core\classes\DB\wm3DB.php at line 303

serverInformations

public static void serverInformations(mixed server, mixed user, mixed password)

\core\classes\DB\wm3DB.php at line 127

tableName

public void tableName(mixed result, mixed i)

\core\classes\DB\wm3DB.php at line 109

totalFields

public void totalFields(mixed result)

\core\classes\DB\wm3DB.php at line 103

totalRows

public void totalRows(mixed result)

\core\classes\DB\wm3DB.php at line 91

useCharset

public void useCharset()