PHP 클래스 DataSift_Push_Definition

저자: Stuart Dallas ([email protected])
파일 보기 프로젝트 열기: datasift/datasift-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_initial_status An initial status for push subscriptions.
$_output_params The output parameters.
$_output_type The output_type of this push definition.
$_user The user that owns this push definition.

공개 메소드들

메소드 설명
__construct ( DataSift_User $user = false ) Constructor. Takes the user creating the object.
getInitialStatus ( ) : string Get the initial status for subscriptions.
getOutputParam ( string $key ) : string Get an output parameter.
getOutputParams ( ) : array Get all of the output parameters.
getOutputType ( ) : string Get the output type.
setInitialStatus ( string $status ) Set the initial status for subscriptions.
setOutputParam ( string $key, string $val ) Set an output parameter.
setOutputType ( string $type ) Set the output type.
subscribeDefinition ( DataSift_Definition $definition, string $name ) : DataSift_PushSubscription Subscribe this endpoint to a Definition.
subscribeHistoric ( DataSift_Historic $historic, string $name ) : DataSift_PushSubscription Subscribe this endpoint to a Historic.
subscribeHistoricPlaybackId ( string $playback_id, string $name ) : DataSift_PushSubscription Subscribe this endpoint to a historic playback ID.
subscribeStreamHash ( string $hash, string $name ) : DataSift_PushSubscription Subscribe this endpoint to a stream hash.
validate ( ) Validate the output type and parameters with the DataSift API.

보호된 메소드들

메소드 설명
subscribe ( string $hash_type, string $hash, string $name ) : DataSift_PushSubscription Subscribe this endpoint to a stream hash or historic playback ID. Note that this will activate the subscription if the initial status is set to active.

메소드 상세

__construct() 공개 메소드

Constructor. Takes the user creating the object.
public __construct ( DataSift_User $user = false )
$user DataSift_User The user creating this object.

getInitialStatus() 공개 메소드

Get the initial status for subscriptions.
public getInitialStatus ( ) : string
리턴 string

getOutputParam() 공개 메소드

Get an output parameter.
public getOutputParam ( string $key ) : string
$key string The parameter to get.
리턴 string

getOutputParams() 공개 메소드

Get all of the output parameters.
public getOutputParams ( ) : array
리턴 array

getOutputType() 공개 메소드

Get the output type.
public getOutputType ( ) : string
리턴 string

setInitialStatus() 공개 메소드

Set the initial status for subscriptions.
public setInitialStatus ( string $status )
$status string The initial status.

setOutputParam() 공개 메소드

Set an output parameter.
public setOutputParam ( string $key, string $val )
$key string The output parameter to set.
$val string The value to set it to.

setOutputType() 공개 메소드

Set the output type.
public setOutputType ( string $type )
$type string The output type.

subscribe() 보호된 메소드

Subscribe this endpoint to a stream hash or historic playback ID. Note that this will activate the subscription if the initial status is set to active.
protected subscribe ( string $hash_type, string $hash, string $name ) : DataSift_PushSubscription
$hash_type string "hash" or "playback_id"
$hash string The hash or playback ID.
$name string A name for this subscription.
리턴 DataSift_PushSubscription The new subscription.

subscribeDefinition() 공개 메소드

Subscribe this endpoint to a Definition.
public subscribeDefinition ( DataSift_Definition $definition, string $name ) : DataSift_PushSubscription
$definition DataSift_Definition The definition to which to subscribe.
$name string A name for this subscription.
리턴 DataSift_PushSubscription The new subscription.

subscribeHistoric() 공개 메소드

Subscribe this endpoint to a Historic.
public subscribeHistoric ( DataSift_Historic $historic, string $name ) : DataSift_PushSubscription
$historic DataSift_Historic The historic object to which to subscribe.
$name string A name for this subscription.
리턴 DataSift_PushSubscription The new subscription.

subscribeHistoricPlaybackId() 공개 메소드

Subscribe this endpoint to a historic playback ID.
public subscribeHistoricPlaybackId ( string $playback_id, string $name ) : DataSift_PushSubscription
$playback_id string The playback ID.
$name string A name for this subscription.
리턴 DataSift_PushSubscription The new subscription.

subscribeStreamHash() 공개 메소드

Subscribe this endpoint to a stream hash.
public subscribeStreamHash ( string $hash, string $name ) : DataSift_PushSubscription
$hash string The has to which to subscribe.
$name string A name for this subscription.
리턴 DataSift_PushSubscription The new subscription.

validate() 공개 메소드

Validate the output type and parameters with the DataSift API.
public validate ( )

프로퍼티 상세

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

An initial status for push subscriptions.
protected $_initial_status

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

The output parameters.
protected $_output_params

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

The output_type of this push definition.
protected $_output_type

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

The user that owns this push definition.
protected $_user