W32API_REGISTER_FUNCTION(3) 1 W32API_REGISTER_FUNCTION(3)w32api_register_function - Registers function function_name from library with PHPSYNOPSIS
bool w32api_register_function (string $library, string $function_name, string $return_type)
DESCRIPTION
This function tries to find the $function_name function in $library, and tries to import it into PHP.
PARAMETERS
o $library
- The library name, as a string.
o $function_name
- The function name, as a string.
o $return_type
- The function will be registered with the given $return_type. This type can be a generic PHP type, or a type defined with
w32api_deftype(3). All type names are case sensitive. Built in type names should be provided in lowercase.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
NOTES
Warning
This function is EXPERIMENTAL. The behaviour of this function, its name, and surrounding documentation may change without notice in
a future release of PHP. This function should be used at your own risk.
PHP Documentation Group W32API_REGISTER_FUNCTION(3)
Check Out this Related Man Page
GEARMANCLIENT(3) 1 GEARMANCLIENT(3)The GearmanClient classINTRODUCTION
Represents a class for connecting to a Gearman job server and making requests to perform some function on provided data. The function per-
formed must be one registered by a Gearman worker and the data passed is opaque to the job server.
CLASS SYNOPSIS
GearmanClient
GearmanClient
Methods
o public bool GearmanClient::addOptions (int $options)
o public bool GearmanClient::addServer ([string $host = 127.0.0.1], [int $port = 4730])
o public bool GearmanClient::addServers ([string $servers = 127.0.0.1:4730])
o public GearmanTask GearmanClient::addTask (string $function_name, string $workload, [mixed &$context], [string $unique])
o public GearmanTask GearmanClient::addTaskBackground (string $function_name, string $workload, [mixed &$context], [string $unique])
o public GearmanTask GearmanClient::addTaskHigh (string $function_name, string $workload, [mixed &$context], [string $unique])
o public GearmanTask GearmanClient::addTaskHighBackground (string $function_name, string $workload, [mixed &$context], [string
$unique])
o public GearmanTask GearmanClient::addTaskLow (string $function_name, string $workload, [mixed &$context], [string $unique])
o public GearmanTask GearmanClient::addTaskLowBackground (string $function_name, string $workload, [mixed &$context], [string $unique])
o public GearmanTask GearmanClient::addTaskStatus (string $job_handle, [string &$context])
o public bool GearmanClient::clearCallbacks (void )
o public GearmanClient GearmanClient::clone (void )
o public GearmanClient::__construct (void )
o public string GearmanClient::context (void )
o public string GearmanClient::data (void )
o public string GearmanClient::do (string $function_name, string $workload, [string $unique])
o public string GearmanClient::doBackground (string $function_name, string $workload, [string $unique])
o public string GearmanClient::doHigh (string $function_name, string $workload, [string $unique])
o public string GearmanClient::doHighBackground (string $function_name, string $workload, [string $unique])
o public string GearmanClient::doJobHandle (void )
o public string GearmanClient::doLow (string $function_name, string $workload, [string $unique])
o public string GearmanClient::doLowBackground (string $function_name, string $workload, [string $unique])
o public string GearmanClient::doNormal (string $function_name, string $workload, [string $unique])
o public array GearmanClient::doStatus (void )
o public bool GearmanClient::echo (string $workload)
o public string GearmanClient::error (void )
o public int GearmanClient::getErrno (void )
o public array GearmanClient::jobStatus (string $job_handle)
o public bool GearmanClient::ping (string $workload)
o public bool GearmanClient::removeOptions (int $options)
o public int GearmanClient::returnCode (void )
o public bool GearmanClient::runTasks (void )
o public void GearmanClient::setClientCallback (callable $callback)
o public bool GearmanClient::setCompleteCallback (callable $callback)
o public bool GearmanClient::setContext (string $context)
o public bool GearmanClient::setCreatedCallback (string $callback)
o public bool GearmanClient::setData (string $data)
o public bool GearmanClient::setDataCallback (callable $callback)
o public bool GearmanClient::setExceptionCallback (callable $callback)
o public bool GearmanClient::setFailCallback (callable $callback)
o public bool GearmanClient::setOptions (int $options)
o public bool GearmanClient::setStatusCallback (callable $callback)
o public bool GearmanClient::setTimeout (int $timeout)
o public bool GearmanClient::setWarningCallback (callable $callback)
o public bool GearmanClient::setWorkloadCallback (callable $callback)
o public int GearmanClient::timeout (void )
PHP Documentation Group GEARMANCLIENT(3)