PHP Класс Statistics

Автор: Egor V. Derevyankin
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
JavaScriptTrigger ( integer $p_params ) : string Prepares JavaScript trigger for statistics requests
ProcessStats ( boolean &$p_statsOnly ) : boolean Process the statistics for the request.
WriteStats ( integer $p_type, integer $p_specifier ) : boolean Writes the statistics for the request.

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

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

Prepares JavaScript trigger for statistics requests
public static JavaScriptTrigger ( integer $p_params ) : string
$p_params integer specs to distinguish the request, js variables and functions
Результат string

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

Process the statistics for the request.
public static ProcessStats ( boolean &$p_statsOnly ) : boolean
$p_statsOnly boolean Is this request just for statistics.
Результат boolean

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

This works according to SessionRequest::Create, just done directly to avoid Zend usage to make it as fast as possible. Note that it contains some apparently nonsensical processing that should be probably avoided, but it was at the original workflow and this is just a copy. I suppose that it would really like to have some workflow simplification.
public static WriteStats ( integer $p_type, integer $p_specifier ) : boolean
$p_type integer type_id of article or, for future, other types
$p_specifier integer object_id of the read article
Результат boolean