PHP Класс Spot\Log

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

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

Свойство Тип Описание
$_queries
$_queryCount
$_queryLimit

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

Метод Описание
addQuery ( $adapter, mixed $query, mixed $data = null ) Add query to log
lastQuery ( ) : array Get last query run from log
queries ( ) : array Get full query log
queryCount ( ) : integer Get a count of how many queries have been run
queryLimit ( $limit = null ) : integer Get/set query limit A limit should be set by default to prevent query log from consuming and exhausing available memory

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

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

Add query to log
public static addQuery ( $adapter, mixed $query, mixed $data = null )
$query mixed Query run
$data mixed Data used in query - usually array, but can be scalar or null

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

Get last query run from log
public static lastQuery ( ) : array
Результат array Queries that have been executed and all data that has been passed with them

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

Get full query log
public static queries ( ) : array
Результат array Queries that have been executed and all data that has been passed with them

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

Get a count of how many queries have been run
public static queryCount ( ) : integer
Результат integer Total number of queries that have been run

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

Get/set query limit A limit should be set by default to prevent query log from consuming and exhausing available memory
public static queryLimit ( $limit = null ) : integer
Результат integer Query limit

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

$_queries защищенное статическое свойство

protected static $_queries

$_queryCount защищенное статическое свойство

protected static $_queryCount

$_queryLimit защищенное статическое свойство

protected static $_queryLimit