Yet Another RPC Framework

Table of Contents

The Yar_Server class

Introduction

Class synopsis

Yar_Server
class Yar_Server {
/* Properties */
protected $_executor ;
/* Methods */
final public __construct ( Object $obj )
public boolean handle ( void )
}

Properties

_executor

The Yar_Client class

Introduction

Class synopsis

Yar_Client
class Yar_Client {
/* Properties */
protected $_protocol ;
protected $_uri ;
protected $_options ;
protected $_running ;
/* Methods */
public void __call ( string $method , array $parameters )
final public __construct ( string $url )
public boolean setOpt ( number $name , mixed $value )
}

Properties

_protocol

_uri

_options

_running

The Yar_Concurrent_Client class

Introduction

Class synopsis

Yar_Concurrent_Client
class Yar_Concurrent_Client {
/* Properties */
static $_callstack ;
static $_callback ;
static $_error_callback ;
/* Methods */
public static int call ( string $uri , string $method , array $parameters [, callable $callback ] )
public static boolean loop ([ callable $callback [, callable $error_callback ]] )
public static boolean reset ( void )
}

Properties

_callstack

_callback

_error_callback

The Yar_Server_Exception class

Introduction

If service threw exceptions, A Yar_Server_Exception will be threw in client side.

Class synopsis

Yar_Server_Exception
class Yar_Server_Exception extends Exception {
/* Properties */
protected $_type ;
/* Methods */
public string getType ( void )
/* Inherited methods */
final public string Exception::getMessage ( void )
final public Throwable Exception::getPrevious ( void )
final public mixed Exception::getCode ( void )
final public string Exception::getFile ( void )
final public int Exception::getLine ( void )
final public array Exception::getTrace ( void )
final public string Exception::getTraceAsString ( void )
public string Exception::__toString ( void )
final private void Exception::__clone ( void )
}

Properties

message

code

file

line

_type

The Yar_Client_Exception class

Introduction

Class synopsis

Yar_Client_Exception
class Yar_Client_Exception extends Exception {
/* Properties */
/* Methods */
public void getType ( void )
/* Inherited methods */
final public string Exception::getMessage ( void )
final public Throwable Exception::getPrevious ( void )
final public mixed Exception::getCode ( void )
final public string Exception::getFile ( void )
final public int Exception::getLine ( void )
final public array Exception::getTrace ( void )
final public string Exception::getTraceAsString ( void )
public string Exception::__toString ( void )
final private void Exception::__clone ( void )
}

Properties

message

code

file

line