Inheritances
Files
Overview
FRAMES
NO FRAMES

Class Zend_Amf_Adobe_Introspector

Zend_Amf
|-Zend_Amf_Adobe
|- class Zend_Amf_Adobe_Introspector
This class implements a service for generating AMF service descriptions as XML.
PackageZend_Amf
SubpackageAdobe
CopyrightCopyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
Licensehttp://framework.zend.com/license/new-bsd New BSD License

Summary

Instance fields
# $_options Options used:
# $_types
# $_typesMap
# $_xml
Instance methods
+ __construct() Constructor
# _addClassAttributes() Generate map of public class attributes
# _addService() Build XML service description from reflection class
# _getPropertyType() Extract type of the property from DocBlock
# _getServicePath() Get the array of service directories
# _phpTypeToAS() Map from PHP type name to AS type name
# _registerType() Register new type on the system
# _returnError() Return error with error message
+ initAcl() Authentication handler
+ introspect() Create XML definition on an AMF service class

Details

Instance fields

$_options
protected $_options
Options used:
- server: instance of Zend_Amf_Server to use
- directories: directories where class files may be looked up
Var array Introspector options
$_types
protected $_types
Var DOMElement DOM element to store types
$_typesMap
protected $_typesMap = array()
Var array Map of the known types
$_xml
protected $_xml
Var DOMDocument XML document to store data

Instance methods

__construct()
public function __construct( )
Constructor
Returns void
_addClassAttributes()
protected function _addClassAttributes( $typename
DOMElement $typexml
)
Generate map of public class attributes
Parameters
string $typename type name
DOMElement $typexml
Returns void
_addService()
protected function _addService( Zend_Server_Reflection_Class $refclass
DOMElement $target
)
Build XML service description from reflection class
Parameters
Zend_Server_Reflection_Class $refclass
DOMElement $target
Returns void
_getPropertyType()
protected function _getPropertyType( Zend_Reflection_Property $prop)
Extract type of the property from DocBlock
Parameters
Zend_Reflection_Property $prop
Returns string Property type
_getServicePath()
protected function _getServicePath( )
Get the array of service directories
Returns array Service class directories
_phpTypeToAS()
protected function _phpTypeToAS( $typename)
Map from PHP type name to AS type name
Parameters
string $typename PHP type name
Returns string AS type name
_registerType()
protected function _registerType( $typename)
Register new type on the system
Parameters
string $typename type name
Returns string New type name
_returnError()
protected function _returnError( $msg)
Return error with error message
Parameters
string $msg Error message
Returns string
initAcl()
public function initAcl( Zend_Acl $acl)
Authentication handler
Parameters
Zend_Acl $acl
Returns unknown_type
introspect()
public function introspect( $serviceClass
$options = array()
)
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