PHP 클래스 Segment_Consumer

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

보호된 프로퍼티들

프로퍼티 타입 설명
$options
$secret
$type

공개 메소드들

메소드 설명
__construct ( string $secret, array $options = [] ) Store our secret and options as part of this consumer
alias ( array $message ) : boolean Aliases from one user id to another
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

보호된 메소드들

메소드 설명
debug ( ) : boolean Check whether debug mode is enabled
handleError ( string $code, string $msg ) On an error, try and call the error handler, if debugging output to error_log as well.
ssl ( ) : boolean Check whether we should connect to the API using SSL. This is enabled by default with connections which make batching requests. For connections which can save on round-trip times, you may disable it.

메소드 상세

__construct() 공개 메소드

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

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

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

debug() 보호된 메소드

Check whether debug mode is enabled
protected debug ( ) : boolean
리턴 boolean

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

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

handleError() 보호된 메소드

On an error, try and call the error handler, if debugging output to error_log as well.
protected handleError ( string $code, string $msg )
$code string
$msg string

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

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

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

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

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

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

ssl() 보호된 메소드

Check whether we should connect to the API using SSL. This is enabled by default with connections which make batching requests. For connections which can save on round-trip times, you may disable it.
protected ssl ( ) : boolean
리턴 boolean

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

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

프로퍼티 상세

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

protected $options

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

protected $secret

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

protected $type