Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
An AMF gateway server implementation to allow the connection of the Adobe Flash Player to Zend Framework
Zend_Acl $_acl = ''ACL handler object
DetailsZend_Amf_Auth_Abstract $_auth = ''Authentication handler object
Detailsarray $_classAllowed = 'array'Array of classes that can be called without being explicitly loaded
Keys are class names.
DetailsZend_Loader_PluginLoader $_loader = ''Loader for classes in added directories
Detailsarray $_methods = 'array'Array of dispatchables
Detailsbool $_production = 'true'
Detailsnull|Zend_Amf_Request $_request = 'null'Request processed
Detailsnull|Zend_Amf_Response $_response = ''Class to use for responses
DetailsZend_Session_NameSpace $_sesionNamespace = 'zend_amf'Namespace allows all AMF calls to not clobber other php session variables
Detailsbool $_session = 'false'
Detailsstring $_sessionName = 'PHPSESSID'Set the default session.name if php_
Detailsarray $_table = 'array'Dispatch table of name => method pairs
Details__construct(
)
:
The server constructor
Details_buildDispatchTable(
)
:
void(Re)Build the dispatch table
The dispatch table consists of a an array of method name => Zend_Server_Reflection_Function_Abstract pairs
Details_checkAcl(
string|object $object, string $function
)
:
unknown_typeCheck if the ACL allows accessing the function or method
Details_dispatch(
string $method, $params
=
null, $source
=
null
)
:
mixedLoads a remote class or method and executes the function and returns the result
Details_errorMessage(
int $objectEncoding, string $message, string $description, mixed $detail, int $code, int $line
)
:
Zend_Amf_Value_Messaging_ErrorMessage|arrayCreate appropriate error message
Details_handle(
Zend_Amf_Request $request
)
:
Zend_Amf_ResponseTakes the deserialized AMF request and performs any operations.
Details_handleAuth(
string $userid, string $password
)
:
booleanHandle AMF authentication
Details_loadCommandMessage(
Zend_Amf_Value_Messaging_CommandMessage $message
)
:
Zend_Amf_Value_Messaging_AcknowledgeMessageHandles each of the 11 different command message types.
A command message is a flex.messaging.messages.CommandMessage
DetailsaddDirectory(
string $dir
)
:
Creates an array of directories in which services can reside.
TODO: add support for prefixes?
DetailsaddFunction(
string|array $function, string $namespace
)
:
Zend_Amf_ServerAttach 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.
Detailsfault(
string|Exception $fault
=
null, $code
=
404
)
:
voidRaise a server fault
Unimplemented
DetailsgetAuth(
)
:
Zend_Amf_Auth_AbstractGet authentication adapter
DetailsgetDirectory(
)
:
arrayReturns an array of directories that can hold services.
DetailsgetFunctions(
)
:
arrayReturns a list of registered methods
Returns an array of dispatchables (Zend_Server_Reflection_Function, _Method, and _Class items).
DetailsgetLoader(
)
:
Zend_Loader_PluginLoaderGet PluginLoader for the Server
DetailsgetRequest(
)
:
null|Zend_Amf_RequestReturn currently registered request object
DetailsgetResponse(
)
:
Zend_Amf_Server_Responseget a reference to the Zend_Amf_response instance
Detailshandle(
null|Zend_Amf_Request $request
=
null
)
:
Zend_Amf_ResponseHandle an AMF call from the gateway.
DetailsisProduction(
)
:
boolWhether or not the server is in production
DetailsisSession(
)
:
boolWhether of not the server is using sessions
DetailslistMethods(
)
:
arrayList all available methods
Returns an array of method names.
DetailsloadFunctions(
array $definition
)
:
voidLoad server definition
Unimplemented
DetailssetAcl(
Zend_Acl $acl
)
:
Zend_Amf_ServerSet ACL adapter
DetailssetAuth(
Zend_Amf_Auth_Abstract $auth
)
:
Zend_Amf_ServerSet authentication adapter
DetailssetClass(
string|object $class, string $namespace, $argv
=
null
)
:
Zend_Amf_ServerAttach 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.
DetailssetClassMap(
string $asClass, string $phpClass
)
:
Zend_Amf_ServerMap ActionScript classes to PHP classes
DetailssetPersistence(
mixed $mode
)
:
voidSet server persistence
Unimplemented
DetailssetProduction(
bool $flag
)
:
Zend_Amf_ServerSet production flag
DetailssetRequest(
string|Zend_Amf_Request $request
)
:
Zend_Amf_ServerSet request object
DetailssetResponse(
string|Zend_Amf_Server_Response $response
)
:
Zend_Amf_ServerPublic access method to private Zend_Amf_Server_Response reference
DetailssetSession(
default $namespace
=
Zend_Amf
)
:
Zend_Amf_Server
Details