GearmanWorker::setOptions

(PECL gearman >= 0.5.0) Set worker options public bool GearmanWorker::setOptions ( int $option ) Sets one or more options to the supplied value. Parameters: option The options to be set Returns: Always returns TRUE. See also: GearmanWorker::options() -

GearmanWorker::setId

(No version information available, might only be in Git) Give the worker an identifier so it can be tracked when asking gearmand for the list of available workers. public bool GearmanWorker::setId ( string $id ) Assigns the worker an identifier. Parameters: id A string identifier. Returns: Returns TRUE on success or FALSE on failure.

GearmanWorker::returnCode

(PECL gearman >= 0.5.0) Get last Gearman return code public int GearmanWorker::returnCode ( void ) Returns the last Gearman return code. Returns: A valid Gearman return code. See also: GearmanWorker::error() - GearmanWorker::getErrno() -

GearmanWorker::removeOptions

(PECL gearman >= 0.6.0) Remove worker options public bool GearmanWorker::removeOptions ( int $option ) Removes (unsets) one or more worker options. Parameters: option The options to be removed (unset) Returns: Always returns TRUE. See also: GearmanWorker::op

GearmanWorker::register

(PECL gearman >= 0.6.0) Register a function with the job server public bool GearmanWorker::register ( string $function_name [, int $timeout ] ) Registers a function name with the job server with an optional timeout. The timeout specifies how many seconds the server will wait before marking a job as failed. If the timeout is set to zero, there is no timeout. Parameters: function_nam

GearmanWorker::options

(PECL gearman >= 0.6.0) Get worker options public int GearmanWorker::options ( void ) Gets the options previously set for the worker. Returns: The options currently set for the worker. See also: GearmanWorker::setOptions() -

GearmanWorker::getErrno

(PECL gearman >= 0.5.0) Get errno public int GearmanWorker::getErrno ( void ) Returns the value of errno in the case of a GEARMAN_ERRNO return value. Returns: A valid errno. See also: GearmanWorker::error() -

GearmanWorker::error

(PECL gearman >= 0.5.0) Get the last error encountered public string GearmanWorker::error ( void ) Returns an error string for the last error encountered. Returns: An error string. See also: GearmanWorker::getErrno() -

GearmanWorker::echo

(PECL gearman >= 0.6.0) Test job server response public bool GearmanWorker::echo ( string $workload ) Sends data to all job servers to see if they echo it back. This is a test function to see if job servers are responding properly. Parameters: workload Arbitrary serialized data Returns: Standard Gearman return value.

GearmanWorker::__construct

(PECL gearman >= 0.5.0) Create a GearmanWorker instance public GearmanWorker::__construct ( void ) Creates a GearmanWorker instance representing a worker that connects to the job server and accepts tasks to run. Returns: A GearmanWorker object See also: GearmanWorker::clone() -