PHP Класс Pheasant\Database\FilterChain

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
clear ( ) Clears all callbacks
execute ( $sql, $executor ) : result Executes the query through the internal filters and executor
onError ( $callback ) Attach an error handler, gets called with the exception, return ignored
onQuery ( $callback ) Attach an intercepting filter, gets called with query, returns query
onResult ( $callback ) Attach an results filter, gets called with the query, result and the time taken, returns result

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

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

Clears all callbacks
public clear ( )

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

Executes the query through the internal filters and executor
public execute ( $sql, $executor ) : result
Результат result set of some sort

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

Attach an error handler, gets called with the exception, return ignored
public onError ( $callback )

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

Attach an intercepting filter, gets called with query, returns query
public onQuery ( $callback )

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

Attach an results filter, gets called with the query, result and the time taken, returns result
public onResult ( $callback )