$_methods
$_methods : array
Array of dispatchables
An AMF gateway server implementation to allow the connection of the Adobe Flash Player to Zend Framework
$_loader : \Zend_Loader_PluginLoader
Loader for classes in added directories
$_request : null|\Zend_Amf_Request
Request processed
$_response : null|\Zend_Amf_Response
Class to use for responses
$_auth : \Zend_Amf_Auth_Abstract
Authentication handler object
setAuth(\Zend_Amf_Auth_Abstract $auth) : \Zend_Amf_Server
Set authentication adapter
\Zend_Amf_Auth_Abstract | $auth |
getAuth() : \Zend_Amf_Auth_Abstract
Get authentication adapter
setAcl(\Zend_Acl $acl) : \Zend_Amf_Server
Set ACL adapter
\Zend_Acl | $acl |
setProduction(boolean $flag) : \Zend_Amf_Server
Set production flag
boolean | $flag |
setSession( $namespace = 'Zend_Amf') : \Zend_Amf_Server
$namespace |
handle(null|\Zend_Amf_Request $request = null) : \Zend_Amf_Response
Handle an AMF call from the gateway.
Requests may be passed in, or the server may automagically determine the request based on defaults. Dispatches server request to appropriate method and returns a response
null|\Zend_Amf_Request | $request | Optional |
setRequest(string|\Zend_Amf_Request $request) : \Zend_Amf_Server
Set request object
string|\Zend_Amf_Request | $request |
getRequest() : null|\Zend_Amf_Request
Return currently registered request object
setResponse(string|\Zend_Amf_Server_Response $response) : \Zend_Amf_Server
Public access method to private Zend_Amf_Server_Response refrence
string|\Zend_Amf_Server_Response | $response |
setClass(string|object $class, string $namespace = '', $argv = null) : \Zend_Amf_Server
Attach a class or object to the server
Class may be either a class name or an instantiated object. Reflection is done on the class or object to determine the available public methods, and each is attached to the server as and available method. If a $namespace has been provided, that namespace is used to prefix AMF service call.
string|object | $class | Class name or object instance to examine and attach to the server. |
string | $namespace | Optional |
$argv |
on invalid input
addFunction(string|array $function, string $namespace = '') : \Zend_Amf_Server
Attach a function to the server
Additional arguments to pass to the function at dispatch may be passed; any arguments following the namespace will be aggregated and passed at dispatch time.
string|array | $function | Valid callback |
string | $namespace | Optional namespace prefix |
setClassMap(string $asClass, string $phpClass) : \Zend_Amf_Server
Map ActionScript classes to PHP classes
string | $asClass | |
string | $phpClass |
getLoader() : \Zend_Loader_PluginLoader
Get PluginLoader for the Server
_dispatch(string $method, $params = null, $source = null) : mixed
Loads a remote class or method and executes the function and returns the result
string | $method | Is the method to execute |
$params | ||
$source |
$response the result of executing the method
_loadCommandMessage(\Zend_Amf_Value_Messaging_CommandMessage $message) : \Zend_Amf_Value_Messaging_AcknowledgeMessage
Handles each of the 11 different command message types.
A command message is a flex.messaging.messages.CommandMessage
\Zend_Amf_Value_Messaging_CommandMessage | $message |
_errorMessage(integer $objectEncoding, string $message, string $description, mixed $detail, integer $code, integer $line) : \Zend_Amf_Value_Messaging_ErrorMessage|array
Create appropriate error message
integer | $objectEncoding | Current AMF encoding |
string | $message | Message that was being processed when error happened |
string | $description | Error description |
mixed | $detail | Detailed data about the error |
integer | $code | Error code |
integer | $line | Error line |
_handle(\Zend_Amf_Request $request) : \Zend_Amf_Response
Takes the deserialized AMF request and performs any operations.
\Zend_Amf_Request | $request |