Job/Common.php
Interface for Danga's Gearman job scheduling system
PHP version 5.1.0+
LICENSE: This source file is subject to the New BSD license that is available through the world-wide-web at the following URI: http://www.opensource.org/licenses/bsd-license.php. If you did not receive a copy of the New BSD License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.
- Author
- Joe Stump
- Category
- Net
- Copyright
- 2007-2008 Digg.com, Inc.
- License
- New BSD License
- Link
- http://pear.php.net/package/Net_Gearman
- Link
- http://www.danga.com/gearman/
- Package
- ShSo\Net\Gearman
- Version
- CVS: $Id$
\ShSo\Net\Gearman\Job\Common
abstract
Package: ShSo\Net\GearmanBase job class for all Gearman jobs
- See
- ShSo\Net\Gearman\Worker
- Author
- Joe Stump
- Category
- Net
- Copyright
- 2007-2008 Digg.com, Inc.
- License
- New BSD License
- Link
- http://www.danga.com/gearman/
- Version
- Release: @package_version@
Properties
Methods

__construct(resource $conn, string $handle, array $initParams = array()) : voidConstructor
Parameters
| Name | Type | Description |
|---|---|---|
| $conn | resource | Connection to communicate with |
| $handle | string | Job ID / handle for this job |
| $initParams | array | initialization parameters |

run(array $arg) : voidabstract
Run your job here
Parameters
Throws
| Name | Type | Description |
|---|---|---|
| $arg | array | Arguments passed from the client |
| Exception | Description |
|---|---|
| \ShSo\Net\Gearman\Job\ShSo\Net\Gearman\Exception |