Overview

Packages

  • Jyxo_Beholder
  • Jyxo_Charset
  • Jyxo_Color
  • Jyxo_Css
  • Jyxo_ErrorHandling
  • Jyxo_FirePhp
  • Jyxo_Gettext
    • Parser
  • Jyxo_Html
  • Jyxo_Input
    • Chain
    • Filter
    • Validator
  • Jyxo_Mail
    • Email
    • Parser
    • Sender
  • Jyxo_Rpc
    • Json
    • Xml
  • Jyxo_Shell
  • Jyxo_SpamFilter
  • Jyxo_Spl
  • Jyxo_String
  • Jyxo_Svn
  • Jyxo_Time
  • Jyxo_Timer
  • Jyxo_Webdav
  • Jyxo_XmlReader
  • PHP

Classes

  • Jyxo_Rpc_Client
  • Jyxo_Rpc_Server

Exceptions

  • Jyxo_Rpc_Exception
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class Jyxo_Rpc_Server

Class for creating a RPC server.

Direct known subclasses

Jyxo_Rpc_Json_Server, Jyxo_Rpc_Xml_Server
Abstract
Category: Jyxo
Package: Jyxo_Rpc
Copyright: Copyright (c) 2005-2011 Jyxo, s.r.o.
License: https://github.com/jyxo/php/blob/master/license.txt
Author: Jaroslav HanslĂ­k
Located at Rpc/Server.php
Methods summary
protected
# __construct( )

Creates a class instance.

Creates a class instance.

public
# __destruct( )

Destroys a class instance.

Destroys a class instance.

final public
# __clone( )

Prevents from singleton cloning.

Prevents from singleton cloning.

Throws

LogicException
When trying to clone instance
public static Jyxo_Rpc_Server
# getInstance( )

Returns class instance.

Returns class instance.

Returns

Jyxo_Rpc_Server
public Jyxo_Rpc_Server
# enableLogging( string $filename, callback $callback = null )

Turns on logging.

Turns on logging.

Parameters

$filename
string
Log file path.
$callback
callback
Function to be called prior to logging a message.

Returns

Jyxo_Rpc_Server

Throws

InvalidArgumentException
If no file or an invalid callback was provided.
public Jyxo_Rpc_Server
# registerClass( string $class, boolean $useFullName = true )

Registers class public methods.

Registers class public methods.

Parameters

$class
string
Class name
$useFullName
boolean
Register with class name

Returns

Jyxo_Rpc_Server

Throws

InvalidArgumentException
If no such class exists
public Jyxo_Rpc_Server
# registerMethod( string $class, string $method, boolean $useFullName = true )

Registers given method of given class. Method does not necessarily have to exist if __call or __callStatic method is defined.

Registers given method of given class. Method does not necessarily have to exist if __call or __callStatic method is defined.

Parameters

$class
string
Class name
$method
string
Function name
$useFullName
boolean
Register with class name

Returns

Jyxo_Rpc_Server

Throws

InvalidArgumentException
If no such class exists or method is not public
public Jyxo_Rpc_Server
# registerFunc( string $func )

Registers given function.

Registers given function.

Parameters

$func
string
Function name

Returns

Jyxo_Rpc_Server

Throws

InvalidArgumentException
If no such function exists
abstract protected
# register( string $func )

Actually registers a function to a server method.

Actually registers a function to a server method.

Parameters

$func
string
Function name
abstract public
# process( )

Processes a request and sends a RPC response.

Processes a request and sends a RPC response.

protected mixed
# call( string $method, array $params )

Calls a server method with given parameters.

Calls a server method with given parameters.

Parameters

$method
string
Method name
$params
array
Method parameters

Returns

mixed
Jyxo PHP Library API documentation generated by ApiGen 2.3.0