API Documentation

Amf/Parse/TypeLoader.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Amf
subpackage
Parse
version
$Id: TypeLoader.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Amf_Parse_TypeLoader

Description

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.

Zend_Amf_Parse_TypeLoader

copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Amf
subpackage
Parse
todo
PHP 5.3 can drastically change this class w/ namespace and the new call_user_func w/ namespace
Properties
$callbackClass
$classMap
$_defaultClassMap
$_resourceLoader
Methods
loadType
getMappedClassName
setMapping
resetMap
setResourceLoader
addResourceDirectory
getResourceParser
handleResource

Description

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

Properties

$_defaultClassMap

array $_defaultClassMap = 'array'

Details

$_defaultClassMap
array
Default class map
visibility
protected
default
array
final
false
static
true

$_resourceLoader

Zend_Loader_PluginLoader_Interface $_resourceLoader = 'null'

Details

$_resourceLoader
Zend_Loader_PluginLoader_Interface
visibility
protected
default
null
final
false
static
true

$callbackClass

string $callbackClass = ''

Details

$callbackClass
string
callback class
visibility
public
default
final
false
static
true

$classMap

array $classMap = 'array'

Details

$classMap
array
AMF class map
visibility
public
default
array
final
false
static
true

Methods

addResourceDirectory

addResourceDirectory( string $prefix, string $dir ) :

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

Arguments
$prefix
string
$dir
string
Details
visibility
public
final
false
static
true

getMappedClassName

getMappedClassName( string $className ) : string

Looks up the supplied call name to its mapped class name

Arguments
$className
string
Output
string
Details
visibility
public
final
false
static
true

getResourceParser

getResourceParser( resource $resource ) : string

Get plugin class that handles this resource

Arguments
$resource
resource
Resource type
Output
string
Class name
Details
visibility
public
final
false
static
true

handleResource

handleResource( resource $resource ) : mixed

Convert resource to a serializable object

Arguments
$resource
resource
Output
mixed
Details
visibility
public
final
false
static
true

loadType

loadType( string $className ) : object|false

Load the mapped class type into a callback.

Arguments
$className
string
Output
object|false
Details
visibility
public
final
false
static
true

resetMap

resetMap( ) : void

Reset type map

Details
visibility
public
final
false
static
true

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.

Arguments
$asClassName
string
$phpClassName
string
Details
visibility
public
final
false
static
true

setResourceLoader

setResourceLoader( Zend_Loader_PluginLoader_Interface $loader ) :

Set loader for resource type handlers

Arguments
$loader
Zend_Loader_PluginLoader_Interface
Details
visibility
public
final
false
static
true
Documentation was generated by DocBlox.