Property | Type | Description | |
---|---|---|---|
$_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. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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. |
public __construct ( DataSift_User $user = false ) | ||
$user | DataSift_User | The user creating this object. |
public getInitialStatus ( ) : string | ||
return | string |
public getOutputParam ( string $key ) : string | ||
$key | string | The parameter to get. |
return | string |
public getOutputParams ( ) : array | ||
return | array |
public setInitialStatus ( string $status ) | ||
$status | string | The initial status. |
public setOutputParam ( string $key, string $val ) | ||
$key | string | The output parameter to set. |
$val | string | The value to set it to. |
public setOutputType ( string $type ) | ||
$type | string | The output type. |
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. |
return | DataSift_PushSubscription | The new subscription. |
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. |
return | DataSift_PushSubscription | The new subscription. |
public subscribeHistoricPlaybackId ( string $playback_id, string $name ) : DataSift_PushSubscription | ||
$playback_id | string | The playback ID. |
$name | string | A name for this subscription. |
return | DataSift_PushSubscription | The new subscription. |
public subscribeStreamHash ( string $hash, string $name ) : DataSift_PushSubscription | ||
$hash | string | The has to which to subscribe. |
$name | string | A name for this subscription. |
return | DataSift_PushSubscription | The new subscription. |
public validate ( ) |
protected $_initial_status |
protected $_output_type |