Contentserv PHP API

CSStagingPersistentMessage extends CSStagingMessage
in package

API Layer for StagingMessage Database object.

Serves as a blueprint for all types of Staging Messages.

Tags

Table of Contents

acknowledge()  : bool
Acknowledges the staging message. A persistent message has their HasUpdate flag and IsQueued flag updated.
delete()  : bool
Deletes the staging message.
dequeue()  : bool
Dequeues a staging message.
getAttempts()  : int
Returns the value that indicates how many attempts have already been made.
getBatchId()  : string
getHasUpdate()  : int
Returns the value indicating whether there is an update available.
getId()  : int
Get the ID of the CSStagingMessage.
getIsDeleted()  : int
Get the value of the "isDeleted" property.
getIsQueued()  : int
Get the value of the "IsQueued" property.
getLastChange()  : string
Retrieves the last change date of the message.
getOperationType()  : string
Retrieves the operation type of the CSStagingMessage.
getPriority()  : int
Retrieves the priority of the CSStagingMessage.
getQueuedAt()  : string
Returns the timestamp when the message was queued.
getRecordID()  : int
Retrieves the record ID the message is responsible for.
getRecordType()  : string
Retrieves the record type the message is responsible for.
isQueued()  : bool
Checks if the staging message is queued.
queue()  : bool
Queues the staging message for processing.
reject()  : bool
Rejects the staging message.
setAttempts()  : void
Sets the attempts value of the assigned record.
setBatchId()  : void
setHasUpdate()  : void
Sets the flag indicating whether there is an update available.
setIsDeleted()  : void
Set the value of the "isDeleted" property.
setIsQueued()  : void
Sets the flag indicating whether the message is queued or not.
setLastChange()  : void
Sets the last change value of the assigned record.
setOperationType()  : void
Sets the operation type for the staging message.
setPriority()  : void
Sets the priority of the staging message.
setQueuedAt()  : void
Sets the queueing timestamp for the staging message.
setRecordID()  : void
Sets the record ID for the CSStagingPersistentMessage.
setRecordType()  : void
Sets the record type for the CSStagingPersistentMessage.
store()  : bool
Stores the CSStagingMessage.

Methods

acknowledge()

Acknowledges the staging message. A persistent message has their HasUpdate flag and IsQueued flag updated.

public acknowledge() : bool
Tags
inheritDoc
Return values
bool

Returns true if the acknowledgement is successful, false otherwise.

delete()

Deletes the staging message.

public delete() : bool
Tags
Return values
bool

Returns true if the staging message is successfully deleted, false otherwise.

dequeue()

Dequeues a staging message.

public dequeue() : bool
Tags
Return values
bool

True if the message was successfully dequeued, false otherwise.

getAttempts()

Returns the value that indicates how many attempts have already been made.

public getAttempts() : int
Tags
Return values
int

The value that indicates how many attempts have already been made.

getHasUpdate()

Returns the value indicating whether there is an update available.

public getHasUpdate() : int
Tags
Return values
int

The value indicating whether there is an update available.

getId()

Get the ID of the CSStagingMessage.

public getId() : int
Tags
Return values
int

The ID of the CSStagingMessage.

getIsDeleted()

Get the value of the "isDeleted" property.

public getIsDeleted() : int
Tags
Return values
int

The value of the "isDeleted" property.

getIsQueued()

Get the value of the "IsQueued" property.

public getIsQueued() : int
Tags
Return values
int

The value of the "IsQueued" property.

getLastChange()

Retrieves the last change date of the message.

public getLastChange() : string
Tags
Return values
string

The last change date.

getOperationType()

Retrieves the operation type of the CSStagingMessage.

public getOperationType() : string
Tags
Return values
string

The operation type.

getPriority()

Retrieves the priority of the CSStagingMessage.

public getPriority() : int
Tags
Return values
int

The priority of the CSStagingMessage.

getQueuedAt()

Returns the timestamp when the message was queued.

public getQueuedAt() : string
Tags
Return values
string

The queued timestamp.

getRecordID()

Retrieves the record ID the message is responsible for.

public getRecordID() : int
Tags
Return values
int

The record ID.

getRecordType()

Retrieves the record type the message is responsible for.

public getRecordType() : string
Tags
Return values
string

The record type.

isQueued()

Checks if the staging message is queued.

public final isQueued() : bool
Tags
Return values
bool

Returns true if the staging message is queued, false otherwise.

queue()

Queues the staging message for processing.

public queue() : bool
Tags
inheritDoc
Return values
bool

Returns true if the staging message is successfully queued, false otherwise.

reject()

Rejects the staging message.

public reject([bool $bRetry = false ]) : bool
Parameters
$bRetry : bool = false

(optional) Whether to retry the message or not.

Tags
inheritDoc
Return values
bool

Returns true if the rejection is successful, false otherwise.

setAttempts()

Sets the attempts value of the assigned record.

public setAttempts(int $iAttempts) : void
Parameters
$iAttempts : int

The attempts value.

Tags
Return values
void

setBatchId()

public setBatchId(string $sBatchId) : void
Parameters
$sBatchId : string
Tags
Return values
void

setHasUpdate()

Sets the flag indicating whether there is an update available.

public setHasUpdate(int $bHasUpdate) : void
Parameters
$bHasUpdate : int

The flag indicating whether there is an update available.

Tags
Return values
void

setIsDeleted()

Set the value of the "isDeleted" property.

public setIsDeleted(int $bIsDeleted) : void
Parameters
$bIsDeleted : int

The value to set for the "isDeleted" property.

Tags
Return values
void

setIsQueued()

Sets the flag indicating whether the message is queued or not.

public setIsQueued(int $bIsQueued) : void
Parameters
$bIsQueued : int

The flag indicating whether the message is queued (1) or not (0).

Tags
Return values
void

setLastChange()

Sets the last change value of the assigned record.

public setLastChange(string $sLastChange) : void
Parameters
$sLastChange : string

The last change value.

Tags
Return values
void

setOperationType()

Sets the operation type for the staging message.

public setOperationType(string $sOperationType) : void
Parameters
$sOperationType : string

The operation type to set.

Tags
Return values
void

setPriority()

Sets the priority of the staging message.

public setPriority(int $iPriority) : void
Parameters
$iPriority : int

The priority value to set.

Tags
Return values
void

setQueuedAt()

Sets the queueing timestamp for the staging message.

public setQueuedAt(string $sQueuedAt) : void
Parameters
$sQueuedAt : string

The queueing timestamp.

Tags
Return values
void

setRecordID()

Sets the record ID for the CSStagingPersistentMessage.

public setRecordID(int $iRecordID) : void
Parameters
$iRecordID : int

The record ID to set.

Tags
Return values
void

setRecordType()

Sets the record type for the CSStagingPersistentMessage.

public setRecordType(string $sRecordType) : void
Parameters
$sRecordType : string

The record type to set.

Tags
Return values
void

store()

Stores the CSStagingMessage.

public store() : bool
Tags
Return values
bool

Returns true if the CSStagingMessage is successfully stored, false otherwise.


        

Search results