class Yar_Client (View source)

Properties

protected $_protocol
protected $_uri
protected $_options
protected $_running

Methods

__call(string $method, array $parameters)

Call service Issue a call to remote RPC method.

__construct(string $url, $async = null)

Create a client Yar_Client constructor.

call($method, $parameters)

No description

Yar_Client|false
setOpt(int $type, $value)

Set calling contexts

getOpt($type)

No description

Details

__call(string $method, array $parameters)

Call service Issue a call to remote RPC method.

Parameters

string $method

Remote RPC method name.

array $parameters Parameters.

final __construct(string $url, $async = null)

Create a client Yar_Client constructor.

Parameters

string $url

Yar Server URL.

$async

call($method, $parameters)

No description

Parameters

$method
$parameters

Yar_Client|false setOpt(int $type, $value)

Set calling contexts

Parameters

int $type

it can be:

  • YAR_OPT_PACKAGER,
  • YAR_OPT_PERSISTENT (Need server support),
  • YAR_OPT_TIMEOUT,
  • YAR_OPT_CONNECT_TIMEOUT
  • YAR_OPT_HEADER (Since 2.0.4)
$value

Return Value

Yar_Client|false

Returns $this on success or FALSE on failure.

getOpt($type)

No description

Parameters

$type