\it\thecsea\mysqltcs\connectionsMysqlConnection

Class MysqlConnection this class manage a single mysql connection calling the php mysql functions

Summary

Methods
Properties
Constants
__construct()
__clone()
getInstanceNumber()
__destruct()
connect()
getMysqli()
equalsProperties()
equals()
__toString()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$instanceNumber
$instances
$mysqlRef
$host
$user
$password
$name
$key
$cert
$ca
N/A

Properties

$instanceNumber

$instanceNumber : integer

Type

integer

$instances

$instances : integer

Type

integer

$mysqlRef

$mysqlRef : \mysqli

Type

\mysqli

$host

$host : string

Type

string

$user

$user : string

Type

string

$password

$password : string

Type

string

$name

$name : string

Type

string

$key

$key : string

Type

string

$cert

$cert : string

Type

string

$ca

$ca : string

Type

string

Methods

__construct()

__construct(string  $host, string  $user, string  $password, string  $name, string  $key = "", string  $cert = "", string  $ca = "") 

Get a connection to mysql

Parameters

string $host
string $user
string $password
string $name
string $key

optional

string $cert

optional

string $ca

optional

__clone()

__clone() 

Throws

\it\thecsea\mysqltcs\connections\utils\MysqlUtilsException

getInstanceNumber()

getInstanceNumber() : integer

Returns

integer

__destruct()

__destruct() 

connect()

connect() 

Throws

\it\thecsea\mysqltcs\connections\utils\MysqlUtilsException

getMysqli()

getMysqli() : \mysqli

Returns

\mysqli

equalsProperties()

equalsProperties(string  $host, string  $user, string  $password, string  $name, string  $key = "", string  $cert = "", string  $ca = "") : boolean

Check if the passed properties are equal to instance properties

Parameters

string $host
string $user
string $password
string $name
string $key
string $cert
string $ca

Returns

boolean —

true if properties are equals

equals()

equals(\it\thecsea\mysqltcs\connections\MysqlConnection  $connection) : boolean

Check if the passed object is equal to this, this check the properties not the mysqli connection

Parameters

\it\thecsea\mysqltcs\connections\MysqlConnection $connection

Returns

boolean —

true if object is equal

__toString()

__toString() : string

Returns

string