[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
Zend Framework LICENSE
Copyright: | Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
License: | http://framework.zend.com/license/new-bsd New BSD License |
Version: | $Id$ |
File Size: | 933 lines (32 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Zend_Amf_Server:: (32 methods):
__construct()
setAuth()
getAuth()
setAcl()
getAcl()
setProduction()
isProduction()
setSession()
isSession()
_checkAcl()
getLoader()
_dispatch()
_loadCommandMessage()
_errorMessage()
_handleAuth()
_handle()
handle()
setRequest()
getRequest()
setResponse()
getResponse()
setClass()
addFunction()
addDirectory()
getDirectory()
_buildDispatchTable()
fault()
getFunctions()
setPersistence()
loadFunctions()
setClassMap()
listMethods()
Class: Zend_Amf_Server - X-Ref
An AMF gateway server implementation to allow the connection of the Adobe Flash Player to__construct() X-Ref |
The server constructor |
setAuth(Zend_Amf_Auth_Abstract $auth) X-Ref |
Set authentication adapter param: Zend_Amf_Auth_Abstract $auth return: Zend_Amf_Server |
getAuth() X-Ref |
Get authentication adapter return: Zend_Amf_Auth_Abstract |
setAcl(Zend_Acl $acl) X-Ref |
Set ACL adapter param: Zend_Acl $acl return: Zend_Amf_Server |
getAcl() X-Ref |
Get ACL adapter return: Zend_Acl |
setProduction($flag) X-Ref |
Set production flag param: bool $flag return: Zend_Amf_Server |
isProduction() X-Ref |
Whether or not the server is in production return: bool |
setSession($namespace = 'Zend_Amf') X-Ref |
param: namespace of all incoming sessions defaults to Zend_Amf return: Zend_Amf_Server |
isSession() X-Ref |
Whether of not the server is using sessions return: bool |
_checkAcl($object, $function) X-Ref |
Check if the ACL allows accessing the function or method param: string|object $object Object or class being accessed param: string $function Function or method being accessed return: unknown_type |
getLoader() X-Ref |
Get PluginLoader for the Server return: Zend_Loader_PluginLoader |
_dispatch($method, $params = null, $source = null) X-Ref |
Loads a remote class or method and executes the function and returns the result param: string $method Is the method to execute param: mixed $param values for the method return: mixed $response the result of executing the method |
_loadCommandMessage(Zend_Amf_Value_Messaging_CommandMessage $message) X-Ref |
Handles each of the 11 different command message types. A command message is a flex.messaging.messages.CommandMessage param: Zend_Amf_Value_Messaging_CommandMessage $message return: Zend_Amf_Value_Messaging_AcknowledgeMessage |
_errorMessage($objectEncoding, $message, $description, $detail, $code, $line) X-Ref |
Create appropriate error message param: int $objectEncoding Current AMF encoding param: string $message Message that was being processed when error happened param: string $description Error description param: mixed $detail Detailed data about the error param: int $code Error code param: int $line Error line return: Zend_Amf_Value_Messaging_ErrorMessage|array |
_handleAuth( $userid, $password) X-Ref |
Handle AMF authentication param: string $userid param: string $password return: boolean |
_handle(Zend_Amf_Request $request) X-Ref |
Takes the deserialized AMF request and performs any operations. param: Zend_Amf_Request $request return: Zend_Amf_Response |
handle($request = null) X-Ref |
Handle an AMF call from the gateway. param: null|Zend_Amf_Request $request Optional return: Zend_Amf_Response |
setRequest($request) X-Ref |
Set request object param: string|Zend_Amf_Request $request return: Zend_Amf_Server |
getRequest() X-Ref |
Return currently registered request object return: null|Zend_Amf_Request |
setResponse($response) X-Ref |
Public access method to private Zend_Amf_Server_Response reference param: string|Zend_Amf_Server_Response $response return: Zend_Amf_Server |
getResponse() X-Ref |
get a reference to the Zend_Amf_response instance return: Zend_Amf_Server_Response |
setClass($class, $namespace = '', $argv = null) X-Ref |
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. param: string|object $class param: string $namespace Optional param: mixed $arg Optional arguments to pass to a method return: Zend_Amf_Server |
addFunction($function, $namespace = '') X-Ref |
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. param: string|array $function Valid callback param: string $namespace Optional namespace prefix return: Zend_Amf_Server |
addDirectory($dir) X-Ref |
Creates an array of directories in which services can reside. TODO: add support for prefixes? param: string $dir |
getDirectory() X-Ref |
Returns an array of directories that can hold services. return: array |
_buildDispatchTable() X-Ref |
(Re)Build the dispatch table The dispatch table consists of a an array of method name => Zend_Server_Reflection_Function_Abstract pairs return: void |
fault($fault = null, $code = 404) X-Ref |
Raise a server fault Unimplemented param: string|Exception $fault return: void |
getFunctions() X-Ref |
Returns a list of registered methods Returns an array of dispatchables (Zend_Server_Reflection_Function, _Method, and _Class items). return: array |
setPersistence($mode) X-Ref |
Set server persistence Unimplemented param: mixed $mode return: void |
loadFunctions($definition) X-Ref |
Load server definition Unimplemented param: array $definition return: void |
setClassMap($asClass, $phpClass) X-Ref |
Map ActionScript classes to PHP classes param: string $asClass param: string $phpClass return: Zend_Amf_Server |
listMethods() X-Ref |
List all available methods Returns an array of method names. return: array |
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |