GearmanTask::create

(PECL gearman <= 0.5.0) Create a task (deprecated) public GearmanTask GearmanTask::create ( void ) Returns a new GearmanTask object. Note: This method was removed in the 0.6.0 version of the Gearman extension. Returns: A GearmanTask oject or FALSE on failure.

GearmanTask::__construct

(PECL gearman >= 0.5.0) Create a GearmanTask instance public GearmanTask::__construct ( void ) Creates a GearmanTask instance representing a task to be submitted to a job server. Returns: A GearmanTask object.

GearmanJob::workloadSize

(PECL gearman >= 0.5.0) Get size of work load public int GearmanJob::workloadSize ( void ) Returns the size of the job's work load (the data the worker is to process) in bytes. Returns: The size in bytes. See also: GearmanJob::workload() -

GearmanJob::workload

(PECL gearman >= 0.5.0) Get workload public string GearmanJob::workload ( void ) Returns the workload for the job. This is serialized data that is to be processed by the worker. Returns: Serialized data. See also: GearmanClient::do() - GearmanJob::workloadSize() -

GearmanJob::warning

(PECL gearman <= 0.5.0) Send a warning (deprecated) public bool GearmanJob::warning ( string $warning ) Sends a warning for this job while it is running. Note: This method has been replaced by GearmanJob::sendWarning() in the 0.6.0 release of the Gearman extension. Parameters: warning A warning messages. Returns: Returns TRUE on success o

GearmanJob::unique

(PECL gearman >= 0.5.0) Get the unique identifier public string GearmanJob::unique ( void ) Returns the unique identifiter for this job. The identifier is assigned by the client. Returns: An opaque unique identifier. See also: GearmanClient::do() - GearmanTask::uuid() -

GearmanJob::status

(PECL gearman <= 0.5.0) Send status (deprecated) public bool GearmanJob::status ( int $numerator, int $denominator ) Sends status information to the job server and any listening clients. Use this to specify what percentage of the job has been completed. Note: This method has been replaced by GearmanJob::sendStatus() in the 0.6.0 release of the Gearman extenstion. Parameters: n

GearmanJob::setReturn

(PECL gearman >= 0.5.0) Set a return value public bool GearmanJob::setReturn ( int $gearman_return_t ) Sets the return value for this job, indicates how the job completed. Parameters: gearman_return_t A valid Gearman return value. Returns: Description...

GearmanJob::sendWarning

(PECL gearman >= 0.6.0) Send a warning public bool GearmanJob::sendWarning ( string $warning ) Sends a warning for this job while it is running. Parameters: warning A warning message. Returns: Returns TRUE on success or FALSE on failure. See also: GearmanJob

GearmanJob::sendStatus

(PECL gearman >= 0.6.0) Send status public bool GearmanJob::sendStatus ( int $numerator, int $denominator ) Sends status information to the job server and any listening clients. Use this to specify what percentage of the job has been completed. Parameters: numerator The numerator of the precentage completed expressed as a fraction. denominator