PHP 클래스 Statistics

저자: Egor V. Derevyankin
파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

공개 메소드들

메소드 설명
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