\Zend_Amf_Adobe_Introspector

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

Summary

Methods
Properties
Constants
__construct()
introspect()
initAcl()
No public properties found
No constants found
_addClassAttributes()
_addService()
_getPropertyType()
_getServicePath()
_phpTypeToAS()
_registerType()
_returnError()
$_options
$_types
$_typesMap
$_xml
N/A
No private methods found
No private properties found
N/A

Properties

$_options

$_options : array

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

Type

array — Introspector options

$_types

$_types : \DOMElement

Type

\DOMElement — DOM element to store types

$_typesMap

$_typesMap : array

Type

array — Map of the known types

$_xml

$_xml : \DOMDocument

Type

\DOMDocument — XML document to store data

Methods

__construct()

__construct() : void

Constructor

introspect()

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

Create XML definition on an AMF service class

Parameters

string $serviceClass

Service class name

array $options

invocation options

Returns

string —

XML with service class introspection

initAcl()

initAcl(\Zend_Acl  $acl) : \unknown_type

Authentication handler

Parameters

\Zend_Acl $acl

Returns

\unknown_type

_addClassAttributes()

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

Generate map of public class attributes

Parameters

string $typename

type name

\DOMElement $typexml

target XML element

_addService()

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

Build XML service description from reflection class

Parameters

\Zend_Server_Reflection_Class $refclass
\DOMElement $target

target XML element

_getPropertyType()

_getPropertyType(\Zend_Reflection_Property  $prop) : string

Extract type of the property from DocBlock

Parameters

\Zend_Reflection_Property $prop

reflection property object

Returns

string —

Property type

_getServicePath()

_getServicePath() : array

Get the array of service directories

Returns

array —

Service class directories

_phpTypeToAS()

_phpTypeToAS(string  $typename) : string

Map from PHP type name to AS type name

Parameters

string $typename

PHP type name

Returns

string —

AS type name

_registerType()

_registerType(string  $typename) : string

Register new type on the system

Parameters

string $typename

type name

Returns

string —

New type name

_returnError()

_returnError(string  $msg) : string

Return error with error message

Parameters

string $msg

Error message

Returns

string