\Zend_Amf_Parse_TypeLoader

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

Summary

Methods
Properties
Constants
loadType()
getMappedClassName()
setMapping()
resetMap()
setResourceLoader()
addResourceDirectory()
getResourceParser()
handleResource()
$callbackClass
$classMap
No constants found
No protected methods found
$_defaultClassMap
$_resourceLoader
N/A
No private methods found
No private properties found
N/A

Properties

$callbackClass

$callbackClass : string

Type

string — callback class

$classMap

$classMap : array

Type

array — AMF class map

$_defaultClassMap

$_defaultClassMap : array

Type

array — Default class map

Methods

loadType()

loadType(string  $className) : object|false

Load the mapped class type into a callback.

Parameters

string $className

Returns

object|false

getMappedClassName()

getMappedClassName(string  $className) : string

Looks up the supplied call name to its mapped class name

Parameters

string $className

Returns

string

setMapping()

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

Map PHP class names to ActionScript class names

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

string $asClassName
string $phpClassName

resetMap()

resetMap() : void

Reset type map

setResourceLoader()

setResourceLoader(\Zend_Loader_PluginLoader_Interface  $loader) 

Set loader for resource type handlers

Parameters

\Zend_Loader_PluginLoader_Interface $loader

addResourceDirectory()

addResourceDirectory(string  $prefix, string  $dir) 

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

Parameters

string $prefix
string $dir

getResourceParser()

getResourceParser(resource  $resource) : string

Get plugin class that handles this resource

Parameters

resource $resource

Resource type

Returns

string —

Class name

handleResource()

handleResource(resource  $resource) : mixed

Convert resource to a serializable object

Parameters

resource $resource

Returns

mixed