PHP Класс Pop\Db\Db

Автор: Nick Sagona, III ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$adapter mixed Default database adapter object
$isPdo boolean Flag for a PDO adapter

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

Метод Описание
__construct ( string $type, array $options, string $prefix = 'Pop\Db\Adapter\' ) : Db Constructor
adapter ( ) : mixed Get the database adapter.
factory ( string $type, array $options, string $prefix = 'Pop\Db\Adapter\' ) : Db Determine whether or not an instance of the DB object exists already, and instantiate the object if it doesn't exist.
getAdapterType ( ) : string Get the database adapter type.
isPdo ( ) : boolean Get the PDO flag

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

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

Instantiate the database connection object.
public __construct ( string $type, array $options, string $prefix = 'Pop\Db\Adapter\' ) : Db
$type string
$options array
$prefix string
Результат Db

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

Get the database adapter.
public adapter ( ) : mixed
Результат mixed

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

Determine whether or not an instance of the DB object exists already, and instantiate the object if it doesn't exist.
public static factory ( string $type, array $options, string $prefix = 'Pop\Db\Adapter\' ) : Db
$type string
$options array
$prefix string
Результат Db

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

Get the database adapter type.
public getAdapterType ( ) : string
Результат string

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

Get the PDO flag
public isPdo ( ) : boolean
Результат boolean

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

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

Default database adapter object
protected mixed $adapter
Результат mixed

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

Flag for a PDO adapter
protected bool $isPdo
Результат boolean