Zend Framework
1.12
|
Public Member Functions | |
__construct (array $options=array()) | |
Constructor. | |
setJobId ($id) | |
Set the job identifier. | |
getJobId () | |
Retrieve the job identifier. | |
getJob () | |
Retrieve the internal ZendApi_Job instance. | |
__sleep () | |
Store queue and data in serialized object. | |
getQueueClass () | |
Query the class name of the Queue object for which this Message was created. | |
Protected Member Functions | |
_setJobProperties () | |
Sets properties on the ZendApi_Job instance. | |
Protected Attributes | |
$_job | |
$_id = null | |
__construct | ( | array | $options = array() | ) |
Constructor.
The constructor should be an array of options.
If the option 'data' is provided, and is an instance of ZendApi_Job, that object will be used as the internal job; if that option is not a ZendApi_Job instance, an exception will be thrown.
Alternately, you may specify the 'script' parameter, which should be a JobQueue script the job will request. A new ZendApi_Job object will then be created using that script and any options you provide.
array | $options |
Zend_Queue_Exception |
__sleep | ( | ) |
Store queue and data in serialized object.
|
protected |
Sets properties on the ZendApi_Job instance.
Any options in the $_data array will be checked. Those matching options in ZendApi_Job will be used to set those options in that instance.
getJob | ( | ) |
Retrieve the internal ZendApi_Job instance.
getJobId | ( | ) |
Retrieve the job identifier.
getQueueClass | ( | ) |
Query the class name of the Queue object for which this Message was created.
setJobId | ( | $id | ) |
|
protected |
|
protected |