Class MagratheaDatabase
This class will provide a layer for connecting with mysql
Located at MagratheaDatabase.php
Methods summary
public static
|
|
public
|
#
MagratheaDatabase( )
This is a singleton! Should be called by private method Instance. Don't implement new ones |
public
itself
|
|
public
itself
|
#
SetConnection( string $host, string $database, string $username, string $password, $port = null )
Setups connection |
public
itself
|
|
public
boolean
|
|
public
|
|
public
object
|
|
public
array
|
|
public
object
|
|
public
object
|
|
public
|
|
public
|
#
PrepareAndExecute( string $query, array $arrTypes, array $arrValues )
Prepares and execute a query and returns the inserted id (if any) |
Magic methods summary
Constants summary
integer |
FETCH_ASSOC
|
#
1
|
integer |
FETCH_OBJECT
|
#
2
|
integer |
FETCH_NUM
|
#
3
|
integer |
FETCH_ARRAY
|
#
4
|
Properties summary
protected static
|
$inst
|
#
null
|