Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
MysqlHandler Class Reference
Collaboration diagram for MysqlHandler:
Collaboration graph

Public Member Functions

 MysqlHandler ($db_host, $db_user, $db_pass, $db_name="chat", $table_name="chat_data")
 connectDB ()
 store (&$what, $key)
 restore (&$what, $key)
 halt ($msg)

Data Fields

 $db_name
 $db_host
 $db_user
 $db_pass
 $table_name
 $debug = true
 $connection

Member Function Documentation

connectDB ( )

Here is the call graph for this function:

Here is the caller graph for this function:

halt (   $msg)

print error message and exit script

private

Parameters
string$msgthe message to print

Here is the caller graph for this function:

MysqlHandler (   $db_host,
  $db_user,
  $db_pass,
  $db_name = "chat",
  $table_name = "chat_data" 
)

constructor

public

Parameters
string$db_name
string$table_name

Here is the call graph for this function:

restore ( $what,
  $key 
)

restores a variable from shared memory

public

Parameters
mixed&$whatvariable to restore (call by reference)
integer$keythe key from which to store

Here is the call graph for this function:

store ( $what,
  $key 
)

stores a variable in shared memory

public

Parameters
mixed&$whatvariable to store (call by reference)
integer$keythe key under which to store

Here is the call graph for this function:

Field Documentation

$connection
$db_host
$db_name
$db_pass
$db_user
$debug = true
$table_name

The documentation for this class was generated from the following file: