PHP 클래스 Segment_QueueConsumer

상속: extends Segment_Consumer
파일 보기 프로젝트 열기: segmentio/analytics-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$batch_size
$max_queue_size
$queue
$type

공개 메소드들

메소드 설명
__construct ( string $secret, array $options = [] ) Store our secret and options as part of this consumer
__destruct ( )
alias ( array $message ) : boolean Aliases from one user id to another
flush ( ) Flushes our queue of messages by batching them to the server
flushBatch ( [type] $batch ) : [type] Flushes a batch of messages.
group ( array $message ) : boolean Tags traits about the group.
identify ( array $message ) : boolean Tags traits about the user.
page ( array $message ) : boolean Tracks a page view.
screen ( array $message ) : boolean Tracks a screen view.
track ( array $message ) : boolean Tracks a user action

보호된 메소드들

메소드 설명
enqueue ( mixed $item ) : boolean Adds an item to our queue.
payload ( $batch ) : {Array} Given a batch of messages the method returns a valid payload.

메소드 상세

__construct() 공개 메소드

Store our secret and options as part of this consumer
public __construct ( string $secret, array $options = [] )
$secret string
$options array

__destruct() 공개 메소드

public __destruct ( )

alias() 공개 메소드

Aliases from one user id to another
public alias ( array $message ) : boolean
$message array
리턴 boolean whether the alias call succeeded

enqueue() 보호된 메소드

Adds an item to our queue.
protected enqueue ( mixed $item ) : boolean
$item mixed
리턴 boolean whether call has succeeded

flush() 공개 메소드

Flushes our queue of messages by batching them to the server
public flush ( )

flushBatch() 추상적인 공개 메소드

Flushes a batch of messages.
abstract public flushBatch ( [type] $batch ) : [type]
$batch [type]
리턴 [type]

group() 공개 메소드

Tags traits about the group.
public group ( array $message ) : boolean
$message array
리턴 boolean whether the group call succeeded

identify() 공개 메소드

Tags traits about the user.
public identify ( array $message ) : boolean
$message array
리턴 boolean whether the identify call succeeded

page() 공개 메소드

Tracks a page view.
public page ( array $message ) : boolean
$message array
리턴 boolean whether the page call succeeded

payload() 보호된 메소드

Given a batch of messages the method returns a valid payload.
protected payload ( $batch ) : {Array}
리턴 {Array}

screen() 공개 메소드

Tracks a screen view.
public screen ( array $message ) : boolean
$message array
리턴 boolean whether the screen call succeeded

track() 공개 메소드

Tracks a user action
public track ( array $message ) : boolean
$message array
리턴 boolean whether the track call succeeded

프로퍼티 상세

$batch_size 보호되어 있는 프로퍼티

protected $batch_size

$max_queue_size 보호되어 있는 프로퍼티

protected $max_queue_size

$queue 보호되어 있는 프로퍼티

protected $queue

$type 보호되어 있는 프로퍼티

protected $type