PHP Класс Phactory\Sql\DbUtil\AbstractDbUtil

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_pdo
$_quoteChar quote character for table and column names. Override in DB-specific descendant classes

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

disableForeignKeys() публичный Метод

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

enableForeignKeys() публичный Метод

public enableForeignKeys ( )

getColumns() абстрактный публичный Метод

abstract public getColumns ( $table )

getPrimaryKey() абстрактный публичный Метод

abstract public getPrimaryKey ( $table )

getQuoteChar() публичный Метод

public getQuoteChar ( )

quoteIdentifier() публичный Метод

public quoteIdentifier ( string $identifier ) : string
$identifier string name of table, column, etc
Результат string quoted identifier

Описание свойств

$_pdo защищенное свойство

protected $_pdo

$_quoteChar защищенное свойство

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