API Documentation

Zend/Amf/Parse/TypeLoader.php

Show: inherited
Table of Contents

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.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Amf  
Subpackage
Parse  
Version
$Id: TypeLoader.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Amf_Parse_TypeLoader

Package: Zend\Amf\Parse

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

Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Todo
PHP 5.3 can drastically change this class w/ namespace and the new call_user_func w/ namespace  

Properties

Propertyprotectedarray  $_defaultClassMap= 'array( 'flex.messaging.messages.AcknowledgeMessage' => 'Zend_Amf_Value_Messaging_AcknowledgeMessage''
static

Default class map
Default valuearray( 'flex.messaging.messages.AcknowledgeMessage' => 'Zend_Amf_Value_Messaging_AcknowledgeMessage'Details
Type
array
Propertyprotected\Zend_Loader_PluginLoader_Interface  $_resourceLoader= 'null'
static

Default valuenullDetails
Type
\Zend_Loader_PluginLoader_Interface
Propertypublicstring  $callbackClass= ''
static

callback class
Details
Type
string
Propertypublicarray  $classMap= 'array ( 'flex.messaging.messages.AcknowledgeMessage' => 'Zend_Amf_Value_Messaging_AcknowledgeMessage''
static

AMF class map
Default valuearray ( 'flex.messaging.messages.AcknowledgeMessage' => 'Zend_Amf_Value_Messaging_AcknowledgeMessage'Details
Type
array

Methods

methodpublicaddResourceDirectory( string $prefix, string $dir ) : void
static

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

Parameters
Name Type Description
$prefix string
$dir string
methodpublicgetMappedClassName( string $className ) : string
static

Looks up the supplied call name to its mapped class name

Parameters
Name Type Description
$className string
Returns
Type Description
string
methodpublicgetResourceParser( resource $resource ) : string
static

Get plugin class that handles this resource

Parameters
Name Type Description
$resource resource

Resource type

Returns
Type Description
string Class name
methodpublichandleResource( resource $resource ) : mixed
static

Convert resource to a serializable object

Parameters
Name Type Description
$resource resource
Returns
Type Description
mixed
methodpublicloadType( string $className ) : object|false
static

Load the mapped class type into a callback.

Parameters
Name Type Description
$className string
Returns
Type Description
object|false
methodpublicresetMap( ) : void
static

Reset type map

methodpublicsetMapping( string $asClassName, string $phpClassName ) : void
static

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
Name Type Description
$asClassName string
$phpClassName string
methodpublicsetResourceLoader( \Zend_Loader_PluginLoader_Interface $loader ) : void
static

Set loader for resource type handlers

Parameters
Name Type Description
$loader \Zend_Loader_PluginLoader_Interface
Documentation was generated by DocBlox 0.15.1.