PHP Class MeekroDB, TeamPass

Show file Open project: nilsteampassnet/TeamPass Class Usage Examples

Public Properties

Property Type Description
$affected_rows
$current_db
$dbName initial connection
$encoding
$error_handler
$host
$insert_id
$internal_mysql internal
$named_param_seperator
$nested_transactions
$nested_transactions_count
$nonsql_error_handler
$num_rows
$param_char configure workings
$password
$port
$server_info
$success_handler
$throw_exception_on_error
$throw_exception_on_nonsql_error
$usenull
$user

Public Methods

Method Description
__construct ( $host = null, $user = null, $password = null, $dbName = null, $port = null, $encoding = null )
affectedRows ( )
columnList ( $table )
commit ( $all = false )
count ( )
debugMode ( $handler = true )
delete ( )
disconnect ( )
get ( )
insert ( $table, $data )
insertId ( )
insertIgnore ( $table, $data )
insertOrReplace ( $which, $table, $datas, $options = [] )
insertUpdate ( )
nonSQLError ( $message )
numRows ( )
query ( )
queryAllLists ( )
queryFirstColumn ( )
queryFirstField ( )
queryFirstList ( )
queryFirstRow ( )
queryFullColumns ( )
queryOneColumn ( )
queryOneField ( )
queryOneList ( )
queryOneRow ( )
queryRaw ( )
queryRawUnbuf ( )
replace ( $table, $data )
rollback ( $all = false )
serverVersion ( )
setDB ( $dbName )
sqleval ( )
startTransaction ( )
tableList ( $db = null )
transactionDepth ( )
update ( )
useDB ( )

Protected Methods

Method Description
escape ( $str )
formatTableName ( $table )
intval ( $var )
parseQueryParams ( )
parseTS ( $ts )
preparseQueryParams ( )
prependCall ( $function, $args, $prepend )
queryHelper ( )
sanitize ( $value )

Method Details

__construct() public method

public __construct ( $host = null, $user = null, $password = null, $dbName = null, $port = null, $encoding = null )

affectedRows() public method

public affectedRows ( )

columnList() public method

public columnList ( $table )

commit() public method

public commit ( $all = false )

count() public method

public count ( )

debugMode() public method

public debugMode ( $handler = true )

delete() public method

public delete ( )

disconnect() public method

public disconnect ( )

escape() protected method

protected escape ( $str )

formatTableName() protected method

protected formatTableName ( $table )

get() public method

public get ( )

insert() public method

public insert ( $table, $data )

insertId() public method

public insertId ( )

insertIgnore() public method

public insertIgnore ( $table, $data )

insertOrReplace() public method

public insertOrReplace ( $which, $table, $datas, $options = [] )

insertUpdate() public method

public insertUpdate ( )

intval() protected method

protected intval ( $var )

nonSQLError() public method

public nonSQLError ( $message )

numRows() public method

public numRows ( )

parseQueryParams() protected method

protected parseQueryParams ( )

parseTS() protected method

protected parseTS ( $ts )

preparseQueryParams() protected method

protected preparseQueryParams ( )

prependCall() protected method

protected prependCall ( $function, $args, $prepend )

query() public method

public query ( )

queryAllLists() public method

public queryAllLists ( )

queryFirstColumn() public method

public queryFirstColumn ( )

queryFirstField() public method

public queryFirstField ( )

queryFirstList() public method

public queryFirstList ( )

queryFirstRow() public method

public queryFirstRow ( )

queryFullColumns() public method

public queryFullColumns ( )

queryHelper() protected method

protected queryHelper ( )

queryOneColumn() public method

public queryOneColumn ( )

queryOneField() public method

public queryOneField ( )

queryOneList() public method

public queryOneList ( )

queryOneRow() public method

public queryOneRow ( )

queryRaw() public method

public queryRaw ( )

queryRawUnbuf() public method

public queryRawUnbuf ( )

replace() public method

public replace ( $table, $data )

rollback() public method

public rollback ( $all = false )

sanitize() protected method

protected sanitize ( $value )

serverVersion() public method

public serverVersion ( )

setDB() public method

public setDB ( $dbName )

sqleval() public method

public sqleval ( )

startTransaction() public method

public startTransaction ( )

tableList() public method

public tableList ( $db = null )

transactionDepth() public method

public transactionDepth ( )

update() public method

public update ( )

useDB() public method

public useDB ( )

Property Details

$affected_rows public property

public $affected_rows

$current_db public property

public $current_db

$dbName public property

initial connection
public $dbName

$encoding public property

public $encoding

$error_handler public property

public $error_handler

$host public property

public $host

$insert_id public property

public $insert_id

$internal_mysql public property

internal
public $internal_mysql

$named_param_seperator public property

public $named_param_seperator

$nested_transactions public property

public $nested_transactions

$nested_transactions_count public property

public $nested_transactions_count

$nonsql_error_handler public property

public $nonsql_error_handler

$num_rows public property

public $num_rows

$param_char public property

configure workings
public $param_char

$password public property

public $password

$port public property

public $port

$server_info public property

public $server_info

$success_handler public property

public $success_handler

$throw_exception_on_error public property

public $throw_exception_on_error

$throw_exception_on_nonsql_error public property

public $throw_exception_on_nonsql_error

$usenull public property

public $usenull

$user public property

public $user