GearmanTask::sendData

(PECL gearman <= 0.5.0) Send data for a task (deprecated) public int GearmanTask::sendData ( string $data ) Parameters: data Data to send to the worker. Returns: The length of data sent, or FALSE if the send failed. This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding docum

GearmanTask::returnCode

(PECL gearman >= 0.5.0) Get the last return code public int GearmanTask::returnCode ( void ) Returns the last Gearman return code for this task. Returns: A valid Gearman return code. See also: GearmanClient::returnCode() -

GearmanTask::recvData

(PECL gearman >= 0.5.0) Read work or result data into a buffer for a task public array GearmanTask::recvData ( int $data_len ) Parameters: data_len Length of data to be read. Returns: An array whose first element is the length of data read and the second is the data buffer. Returns FALSE if the read failed. T

GearmanTask::jobHandle

(PECL gearman >= 0.5.0) Get the job handle public string GearmanTask::jobHandle ( void ) Returns the job handle for this task. Returns: The opaque job handle. See also: GearmanClient::doJobHandle() -

GearmanTask::isRunning

(PECL gearman >= 0.5.0) Test whether the task is currently running public bool GearmanTask::isRunning ( void ) Indicates whether or not this task is currently running. Returns: TRUE if the task is running, FALSE otherwise.

GearmanTask::isKnown

(PECL gearman >= 0.5.0) Determine if task is known public bool GearmanTask::isKnown ( void ) Gets the status information for whether or not this task is known to the job server. Returns: TRUE if the task is known, FALSE otherwise.

GearmanTask::functionName

(PECL gearman >= 0.6.0) Get associated function name public string GearmanTask::functionName ( void ) Returns the name of the function this task is associated with, i.e., the function the Gearman worker calls. Returns: A function name.

GearmanTask::function

(PECL gearman <= 0.5.0) Get associated function name (deprecated) public string GearmanTask::function ( void ) Returns the name of the function this task is associated with, i.e., the function the Gearman worker calls. Note: This method has been replaced by GearmanTask::functionName() in the 0.6.0 release of the Gearman extension. Returns: A function name.

GearmanTask::dataSize

(PECL gearman >= 0.5.0) Get the size of returned data public int GearmanTask::dataSize ( void ) Returns the size of the data being returned for a task. Returns: The data size, or FALSE if there is no data. See also: GearmanTask::data() -

GearmanTask::data

(PECL gearman >= 0.5.0) Get data returned for a task public string GearmanTask::data ( void ) Returns data being returned for a task by a worker. Returns: The serialized data, or FALSE if no data is present. See also: GearmanTask::dataSize() -