PHP Class Phactory\Sql\DbUtil\AbstractDbUtil

Datei anzeigen Open project: chriskite/phactory

Protected Properties

Property Type Description
$_pdo
$_quoteChar quote character for table and column names. Override in DB-specific descendant classes

Public Methods

Method Description
__construct ( Phactory $phactory ) MySQL and SqlLite uses that
disableForeignKeys ( ) Not available in all RDBMS - default - do nothing
enableForeignKeys ( )
getColumns ( $table )
getPrimaryKey ( $table )
getQuoteChar ( )
quoteIdentifier ( string $identifier ) : string

Method Details

__construct() public method

MySQL and SqlLite uses that
public __construct ( Phactory $phactory )
$phactory Phactory\Sql\Phactory

disableForeignKeys() public method

Not available in all RDBMS - default - do nothing
public disableForeignKeys ( )

enableForeignKeys() public method

public enableForeignKeys ( )

getColumns() abstract public method

abstract public getColumns ( $table )

getPrimaryKey() abstract public method

abstract public getPrimaryKey ( $table )

getQuoteChar() public method

public getQuoteChar ( )

quoteIdentifier() public method

public quoteIdentifier ( string $identifier ) : string
$identifier string name of table, column, etc
return string quoted identifier

Property Details

$_pdo protected_oe property

protected $_pdo

$_quoteChar protected_oe property

quote character for table and column names. Override in DB-specific descendant classes
protected $_quoteChar