PHP Class Flake\Core\Database

Inheritance: extends FLObject
Datei anzeigen Open project: jeromeschneider/baikal Class Usage Examples

Public Methods

Method Description
DELETEquery ( $table, $where )
INSERTquery ( $table, $fields_values, $no_quote_fields = false )
SELECTquery ( $select_fields, $from_table, $where_clause, $groupBy = '', $orderBy = '', $limit = '' )
UPDATEquery ( $table, $where, $fields_values, $no_quote_fields = false )
__destruct ( )
close ( )
exec_DELETEquery ( $table, $where )
exec_INSERTquery ( $table, $fields_values, $no_quote_fields = false )
exec_SELECTquery ( $select_fields, $from_table, $where_clause, $groupBy = '', $orderBy = '', $limit = '' )
exec_UPDATEquery ( $table, $where, $fields_values, $no_quote_fields = false )
fullQuote ( $str, $table )
fullQuoteArray ( $arr, $table, $noQuote = false )
getPDO ( )
lastInsertId ( )
query ( $sSql ) * Should be abstract, but we provide a body anyway as PDO abstracts these methods for us
quote ( $str )
tables ( )

Protected Methods

Method Description
messageAndDie ( $sMessage ) * common stuff

Method Details

DELETEquery() public method

public DELETEquery ( $table, $where )

INSERTquery() public method

public INSERTquery ( $table, $fields_values, $no_quote_fields = false )

SELECTquery() public method

public SELECTquery ( $select_fields, $from_table, $where_clause, $groupBy = '', $orderBy = '', $limit = '' )

UPDATEquery() public method

public UPDATEquery ( $table, $where, $fields_values, $no_quote_fields = false )

__destruct() public method

public __destruct ( )

close() public method

public close ( )

exec_DELETEquery() public method

public exec_DELETEquery ( $table, $where )

exec_INSERTquery() public method

public exec_INSERTquery ( $table, $fields_values, $no_quote_fields = false )

exec_SELECTquery() public method

public exec_SELECTquery ( $select_fields, $from_table, $where_clause, $groupBy = '', $orderBy = '', $limit = '' )

exec_UPDATEquery() public method

public exec_UPDATEquery ( $table, $where, $fields_values, $no_quote_fields = false )

fullQuote() public method

public fullQuote ( $str, $table )

fullQuoteArray() public method

public fullQuoteArray ( $arr, $table, $noQuote = false )

getPDO() public method

public getPDO ( )

lastInsertId() public method

public lastInsertId ( )

messageAndDie() protected method

* common stuff
protected messageAndDie ( $sMessage )

query() public method

* Should be abstract, but we provide a body anyway as PDO abstracts these methods for us
public query ( $sSql )

quote() public method

public quote ( $str )

tables() abstract public method

abstract public tables ( )