This class implements a service for generating AMF service descriptions as XML.

package Zend_Amf
subpackage Adobe
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Constructor

__construct() : void

Authentication handler

initAcl(\Zend_Acl $acl) : \unknown_type

Parameters

$acl

\Zend_Acl

Returns

\unknown_type

Create XML definition on an AMF service class

introspect(string $serviceClass, array $options = array()) : string

Parameters

$serviceClass

string

Service class name

$options

array

invocation options

Returns

stringXML with service class introspection

Generate map of public class attributes

_addClassAttributes(string $typename, \DOMElement $typexml) : void

Parameters

$typename

string

type name

$typexml

\DOMElement

target XML element

Build XML service description from reflection class

_addService(\Zend_Server_Reflection_Class $refclass, \DOMElement $target) : void

Parameters

$refclass

\Zend_Server_Reflection_Class

$target

\DOMElement

target XML element

Extract type of the property from DocBlock

_getPropertyType(\Zend_Reflection_Property $prop) : string

Parameters

$prop

\Zend_Reflection_Property

reflection property object

Returns

stringProperty type

Get the array of service directories

_getServicePath() : array

Returns

arrayService class directories

Map from PHP type name to AS type name

_phpTypeToAS(string $typename) : string

Parameters

$typename

string

PHP type name

Returns

stringAS type name

Register new type on the system

_registerType(string $typename) : string

Parameters

$typename

string

type name

Returns

stringNew type name

Return error with error message

_returnError(string $msg) : string

Parameters

$msg

string

Error message

Returns

string

 Properties

 

Options used: - server: instance of Zend_Amf_Server to use - directories: directories where class files may be looked up

$_options : array

Default

 

DOM element to store types

$_types : \DOMElement

Default

 

Map of the known types

$_typesMap : array

Default

array()
 

XML document to store data

$_xml : \DOMDocument

Default