Loads a local class and executes the instantiation of that class.

todo PHP 5.3 can drastically change this class w/ namespace and the new call_user_func w/ namespace
package Zend_Amf
subpackage Parse
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Add directory to the list of places where to look for resource handlers

addResourceDirectory(string $prefix, string $dir) 
Static

Parameters

$prefix

string

$dir

string

Looks up the supplied call name to its mapped class name

getMappedClassName(string $className) : string
Static

Parameters

$className

string

Returns

string

Get plugin class that handles this resource

getResourceParser(resource $resource) : string
Static

Parameters

$resource

resource

Resource type

Returns

stringClass name

Convert resource to a serializable object

handleResource(resource $resource) : mixed
Static

Parameters

$resource

resource

Returns

mixed

Load the mapped class type into a callback.

loadType(string $className) : object | false
Static

Parameters

$className

string

Returns

objectfalse

Reset type map

resetMap() : void
Static

Map PHP class names to ActionScript class names

setMapping(string $asClassName, string $phpClassName) : void
Static

Allows users to map the class names of there action script classes to the equivelent php class name. Used in deserialization to load a class and serialiation to set the class name of the returned object.

Parameters

$asClassName

string

$phpClassName

string

Set loader for resource type handlers

setResourceLoader(\Zend_Loader_PluginLoader_Interface $loader) 
Static

Parameters

$loader

\Zend_Loader_PluginLoader_Interface

 Properties

 

callback class

$callbackClass : string

Default

Static
 

AMF class map

$classMap : array

Default

array('flex.messaging.messages.AcknowledgeMessage' => 'Zend_Amf_Value_Messaging_AcknowledgeMessage', 'flex.messaging.messages.ErrorMessage' => 'Zend_Amf_Value_Messaging_AsyncMessage', 'flex.messaging.messages.CommandMessage' => 'Zend_Amf_Value_Messaging_CommandMessage', 'flex.messaging.messages.ErrorMessage' => 'Zend_Amf_Value_Messaging_ErrorMessage', 'flex.messaging.messages.RemotingMessage' => 'Zend_Amf_Value_Messaging_RemotingMessage', 'flex.messaging.io.ArrayCollection' => 'Zend_Amf_Value_Messaging_ArrayCollection')
Static
 

Default class map

$_defaultClassMap : array

Default

array('flex.messaging.messages.AcknowledgeMessage' => 'Zend_Amf_Value_Messaging_AcknowledgeMessage', 'flex.messaging.messages.ErrorMessage' => 'Zend_Amf_Value_Messaging_AsyncMessage', 'flex.messaging.messages.CommandMessage' => 'Zend_Amf_Value_Messaging_CommandMessage', 'flex.messaging.messages.ErrorMessage' => 'Zend_Amf_Value_Messaging_ErrorMessage', 'flex.messaging.messages.RemotingMessage' => 'Zend_Amf_Value_Messaging_RemotingMessage', 'flex.messaging.io.ArrayCollection' => 'Zend_Amf_Value_Messaging_ArrayCollection')
Static
 

$_resourceLoader

$_resourceLoader : \Zend_Loader_PluginLoader_Interface

Default

null
Static