\Zend_Amf_Server
An AMF gateway server implementation to allow the connection of the Adobe Flash Player to Zend Framework
- Copyright: Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Amf_Server
implements
Zend_Server_Interface
{
- // members
- protected array $_methods = ;
- protected array $_classAllowed = ;
- protected Zend_Loader_PluginLoader $_loader;
- protected bool $_production = true;
- protected null|Zend_Amf_Request $_request = NULL;
- protected null|Zend_Amf_Response $_response;
- protected array $_table = ;
- protected bool $_session = false;
- protected Zend_Session_NameSpace $_sesionNamespace = 'zend_amf';
- protected string $_sessionName = 'PHPSESSID';
- protected Zend_Amf_Auth_Abstract $_auth;
- protected Zend_Acl $_acl;
- // methods
- public void __construct()
- public Zend_Amf_Server setAuth()
- public Zend_Amf_Auth_Abstract getAuth()
- public Zend_Amf_Server setAcl()
- public Zend_Acl getAcl()
- public Zend_Amf_Server setProduction()
- public bool isProduction()
- public Zend_Amf_Server setSession()
- public bool isSession()
- protected unknown_type _checkAcl()
- protected Zend_Loader_PluginLoader getLoader()
- protected mixed _dispatch()
- protected Zend_Amf_Value_Messaging_AcknowledgeMessage _loadCommandMessage()
- protected Zend_Amf_Value_Messaging_ErrorMessage|array _errorMessage()
- protected boolean _handleAuth()
- protected Zend_Amf_Response _handle()
- public Zend_Amf_Response handle()
- public Zend_Amf_Server setRequest()
- public null|Zend_Amf_Request getRequest()
- public Zend_Amf_Server setResponse()
- public Zend_Amf_Server_Response getResponse()
- public Zend_Amf_Server setClass()
- public Zend_Amf_Server addFunction()
- public void addDirectory()
- public array getDirectory()
- protected void _buildDispatchTable()
- public void fault()
- public array getFunctions()
- public void setPersistence()
- public void loadFunctions()
- public Zend_Amf_Server setClassMap()
- public array listMethods()
Hierarchy
Implements
Tasks
Line | Task |
---|---|
58+ | Make the reflection methods cache and autoload. |
492+ | should implement and SPL observer pattern for custom AMF headers |
492+ | DescribeService support |
117+ | Determine how to implement this |
Members
protected
- $_acl
—
Zend_Acl
ACL handler object - $_auth
—
Zend_Amf_Auth_Abstract
Authentication handler object - $_classAllowed
—
array
Array of classes that can be called without being explicitly loaded - $_loader
—
Zend_Loader_PluginLoader
Loader for classes in added directories - $_methods
—
array
Array of dispatchables - $_production — bool
- $_request
—
null|Zend_Amf_Request
Request processed - $_response
—
null|Zend_Amf_Response
Class to use for responses - $_sesionNamespace
—
Zend_Session_NameSpace
Namespace allows all AMF calls to not clobber other PHP session variables - $_session — bool
- $_sessionName
—
string
Set the default session.name if php_ - $_table
—
array
Dispatch table of name => method pairs
Methods
protected
- _buildDispatchTable() — (Re)Build the dispatch table
- _checkAcl() — Check if the ACL allows accessing the function or method
- _dispatch() — Loads a remote class or method and executes the function and returns the result
- _errorMessage() — Create appropriate error message
- _handle() — Takes the deserialized AMF request and performs any operations.
- _handleAuth() — Handle AMF authentication
- _loadCommandMessage() — Handles each of the 11 different command message types.
- getLoader() — Get PluginLoader for the Server
public
- __construct() — The server constructor
- addDirectory() — Creates an array of directories in which services can reside.
- addFunction() — Attach a function to the server
- fault() — Raise a server fault
- getAcl() — Get ACL adapter
- getAuth() — Get authentication adapter
- getDirectory() — Returns an array of directories that can hold services.
- getFunctions() — Returns a list of registered methods
- getRequest() — Return currently registered request object
- getResponse() — get a reference to the Zend_Amf_response instance
- handle() — Handle an AMF call from the gateway.
- isProduction() — Whether or not the server is in production
- isSession() — Whether of not the server is using sessions
- listMethods() — List all available methods
- loadFunctions() — Load server definition
- setAcl() — Set ACL adapter
- setAuth() — Set authentication adapter
- setClass() — Attach a class or object to the server
- setClassMap() — Map ActionScript classes to PHP classes
- setPersistence() — Set server persistence
- setProduction() — Set production flag
- setRequest() — Set request object
- setResponse() — Public access method to private Zend_Amf_Server_Response reference
- setSession()