[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/webservice/amf/ -> locallib.php (summary)

AMF web service implementation classes and methods.

Copyright: 2009 Petr Skodak
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 227 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 classes

invalid_return_value_exception:: (1 method):
  __construct()

webservice_amf_server:: (5 methods):
  __construct()
  init_service_class()
  service_class_method_body()
  validate_and_cast_values()
  init_zend_server()

Moodle_Amf_Server:: (1 method):
  fault()


Class: invalid_return_value_exception  - X-Ref

Exception indicating an invalid return value from a function.

Used when an externallib function does not return values of the expected structure.

__construct($debuginfo=null)   X-Ref
Constructor

param: string $debuginfo some detailed information

Class: webservice_amf_server  - X-Ref

AMF service server implementation.

__construct($authmethod)   X-Ref
Contructor

param: integer $authmethod authentication method - one of WEBSERVICE_AUTHMETHOD_*

init_service_class()   X-Ref
Load virtual class needed for Zend api


service_class_method_body($function, $params)   X-Ref
Get the generated web service function code.

param: stdClass $function contains function name and class name
param: array $params all the function parameters
return: string the generate web service function code

validate_and_cast_values($description, $value)   X-Ref
Validates submitted value, comparing it to a description. If anything is incorrect
invalid_return_value_exception is thrown. Also casts the values to the type specified in
the description.

param: external_description $description description of parameters or null if no return value
param: mixed $value the actual values
return: mixed params with added defaults for optional items

init_zend_server()   X-Ref
Set up zend service class


Class: Moodle_Amf_Server  - X-Ref

Zend Amf server with a different fault management

fault($fault = null, $code = 404)   X-Ref
Raise a server fault

param: string|Exception $fault
param: int $code fault code



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1