PHP Класс Doctrine\MongoDB\LoggableDatabase

С версии: 1.0
Автор: Jonathan H. Wage ([email protected])
Автор: Bulat Shakirzyanov ([email protected])
Наследование: extends MongoDB\Database, implements Doctrine\MongoDB\Loggable
Показать файл Открыть проект

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

Свойство Тип Описание
$loggerCallable callable The logger callable.

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

Метод Описание
__construct ( Connection $connection, MongoDB $mongoDB, Doctrine\Common\EventManager $evm, integer $numRetries, callable $loggerCallable ) Constructor.
authenticate ( $username, $password )
command ( array $data, array $options = [], &$hash = null )
createCollection ( $name, $cappedOrOptions = false, $size, $max )
drop ( )
execute ( $code, array $args = [] )
getDBRef ( array $ref )
log ( array $log ) Log something using the configured logger callable.

Защищенные методы

Метод Описание
doGetGridFS ( $prefix )
doSelectCollection ( string $name ) : Doctrine\MongoDB\LoggableCollection Return a new LoggableCollection instance.

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

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

Constructor.
public __construct ( Connection $connection, MongoDB $mongoDB, Doctrine\Common\EventManager $evm, integer $numRetries, callable $loggerCallable )
$connection Connection Connection used to create Collections
$mongoDB MongoDB MongoDB instance being wrapped
$evm Doctrine\Common\EventManager EventManager instance
$numRetries integer Number of times to retry queries
$loggerCallable callable The logger callable

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

См. также: Database::authenticate()
public authenticate ( $username, $password )

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

См. также: Database::command()
public command ( array $data, array $options = [], &$hash = null )
$data array
$options array

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

См. также: Database::createCollection()
public createCollection ( $name, $cappedOrOptions = false, $size, $max )

doGetGridFS() защищенный Метод

См. также: Database::doGetGridFS()
protected doGetGridFS ( $prefix )

doSelectCollection() защищенный Метод

Return a new LoggableCollection instance.
См. также: Database::doSelectCollection()
protected doSelectCollection ( string $name ) : Doctrine\MongoDB\LoggableCollection
$name string
Результат Doctrine\MongoDB\LoggableCollection

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

См. также: Database::drop()
public drop ( )

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

См. также: Database::execute()
public execute ( $code, array $args = [] )
$args array

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

См. также: Database::getDBRef()
public getDBRef ( array $ref )
$ref array

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

Log something using the configured logger callable.
См. также: Loggable::log()
public log ( array $log )
$log array

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

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

The logger callable.
protected callable $loggerCallable
Результат callable