PHP Class mysqliDbConnection

Inheritance: extends jDbConnection
Datei anzeigen Open project: jelix/jelix

Protected Properties

Property Type Description
$_charsets

Public Methods

Method Description
__construct ( $profile )
beginTransaction ( ) begin a transaction
commit ( ) Commit since the last begin
encloseName ( string $fieldName ) : string enclose the field name
errorCode ( )
errorInfo ( )
execMulti ( $queries ) Execute several sql queries
getAttribute ( integer $id ) : string
lastInsertId ( $fromSequence = '' )
prepare ( $query )
rollback ( ) Rollback since the last begin
setAttribute ( integer $id, string $value )

Protected Methods

Method Description
_autoCommitNotify ( boolean $state ) : void tell mysql to be autocommit or not
_connect ( )
_disconnect ( )
_doExec ( $query )
_doLimitQuery ( $queryString, $offset, $number )
_doQuery ( $query )
_quote ( $text, $binary ) : string

Method Details

__construct() public method

public __construct ( $profile )

_autoCommitNotify() protected method

tell mysql to be autocommit or not
protected _autoCommitNotify ( boolean $state ) : void
$state boolean the state of the autocommit value
return void

_connect() protected method

protected _connect ( )

_disconnect() protected method

protected _disconnect ( )

_doExec() protected method

protected _doExec ( $query )

_doLimitQuery() protected method

protected _doLimitQuery ( $queryString, $offset, $number )

_doQuery() protected method

protected _doQuery ( $query )

_quote() protected method

protected _quote ( $text, $binary ) : string
return string escaped text or binary string

beginTransaction() public method

begin a transaction
public beginTransaction ( )

commit() public method

Commit since the last begin
public commit ( )

encloseName() public method

enclose the field name
Since: 1.1.1
public encloseName ( string $fieldName ) : string
$fieldName string the field name
return string the enclosed field name

errorCode() public method

public errorCode ( )

errorInfo() public method

public errorInfo ( )

execMulti() public method

Execute several sql queries
public execMulti ( $queries )

getAttribute() public method

See also: PDO::getAttribute()
public getAttribute ( integer $id ) : string
$id integer the attribut id
return string the attribute value

lastInsertId() public method

public lastInsertId ( $fromSequence = '' )

prepare() public method

public prepare ( $query )

rollback() public method

Rollback since the last begin
public rollback ( )

setAttribute() public method

See also: PDO::setAttribute()
public setAttribute ( integer $id, string $value )
$id integer the attribut id
$value string the attribute value

Property Details

$_charsets protected_oe property

protected $_charsets