Ajax_Remote_Service_Broker Class Reference

Public Member Functions

 register ($className, Ajax_Remote_Service $object, $methods=null, $overwrite=false)
 handle (Ajax_Request $request)

Protected Attributes

 $register = array()

Detailed Description

Ajax remote service broker serves the ajax request to the right ajax remote service and returns the response from the method invokation

Since:
Claroline 1.9.5

Definition at line 316 of file ajax.lib.php.


Member Function Documentation

handle ( Ajax_Request request  ) 

Handle an Ajax Request

Parameters:
Ajax_Request $request
Returns:
Json_Response or Json_Exception if the invoked class or method is not found or not callable or if the invokation is not allowed or throws an exception

Definition at line 353 of file ajax.lib.php.

register ( className,
Ajax_Remote_Service object,
methods = null,
overwrite = false 
)

Register an Ajax Remote Service

Parameters:
string $className
Ajax_Remote_Service $object
array $methods or null to allow remote invokation of the public methods of the service (not recommanded)
boolean $overwrite set to true to averwrite a previous registration of the same service
Exceptions:
Exception if trying to overwrite accidentally (i.e. without setting $overwrite to true) an already registered service

Definition at line 331 of file ajax.lib.php.


Field Documentation

$register = array() [protected]

Definition at line 318 of file ajax.lib.php.


The documentation for this class was generated from the following file:
Generated on Tue Jun 8 12:28:37 2010 for Claroline API by  doxygen 1.6.3