Queue/Message/PlatformJob.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Queue
- Subpackage
- Message
- Version
- $Id$
\Zend_Queue_Message_PlatformJob
Package: Zend_Queue\Message
Throws
Returns
Class for managing Zend Platform JobQueue jobs via Zend_Queue
- Parent(s)
- \Zend_Queue_Message
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods
__construct(array $options = array()) : void
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.
ParametersName | Type | Description |
---|---|---|
$options | array |
Exception | Description |
---|---|
\Zend_Queue_Exception |
_setJobProperties() : void
Sets properties on the ZendApi_Job instance
Any options in the {@link $_data} array will be checked. Those matching
options in ZendApi_Job will be used to set those options in that
instance.
getQueueClass() : string
Query the class name of the Queue object for which this Message was created.
Returns
Type | Description |
---|---|
string |
setJobId(string $id) : \Zend_Queue_Message_PlatformJob
Set the job identifier
Used within Zend_Queue only.
ParametersName | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
\Zend_Queue_Message_PlatformJob |