PHP 클래스 Resque\Helpers\Stats

저자: Michael Haynes ([email protected])
파일 보기 프로젝트 열기: mjphaynes/php-resque 1 사용 예제들

공개 메소드들

메소드 설명
clear ( string $stat, string $key = Stats::DEFAULT_KEY ) : boolean Delete a statistic with the given name.
decr ( string $stat, integer $by = 1, string $key = Stats::DEFAULT_KEY ) : boolean Decrement the value of the specified statistic by a certain amount (default is -1)
get ( string $stat, string $key = Stats::DEFAULT_KEY ) : mixed Get the value of the supplied statistic counter for the specified statistic
incr ( string $stat, integer $by = 1, string $key = Stats::DEFAULT_KEY ) : boolean Increment the value of the specified statistic by a certain amount (default is 1)

메소드 상세

clear() 공개 정적인 메소드

Delete a statistic with the given name.
public static clear ( string $stat, string $key = Stats::DEFAULT_KEY ) : boolean
$stat string The name of the statistic to delete.
$key string The stat key to use
리턴 boolean True if successful, false if not.

decr() 공개 정적인 메소드

Decrement the value of the specified statistic by a certain amount (default is -1)
public static decr ( string $stat, integer $by = 1, string $key = Stats::DEFAULT_KEY ) : boolean
$stat string The name of the statistic to decrement.
$by integer The amount to decrement the statistic by.
$key string The stat key to use
리턴 boolean True if successful, false if not.

get() 공개 정적인 메소드

Get the value of the supplied statistic counter for the specified statistic
public static get ( string $stat, string $key = Stats::DEFAULT_KEY ) : mixed
$stat string The name of the statistic to get the stats for
$key string The stat key to use
리턴 mixed Value of the statistic.

incr() 공개 정적인 메소드

Increment the value of the specified statistic by a certain amount (default is 1)
public static incr ( string $stat, integer $by = 1, string $key = Stats::DEFAULT_KEY ) : boolean
$stat string The name of the statistic to increment
$by integer The amount to increment the statistic by
$key string The stat key to use
리턴 boolean True if successful, false if not.