Amf/Adobe/Introspector.php

Show: PublicProtectedPrivateinherited
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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Amf  
Version
$Id$  

\Zend_Amf_Adobe_Introspector

Package: Zend_Amf\Adobe
This class implements a service for generating AMF service descriptions as XML.
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedarray $_options
Options used: - server: instance of Zend_Amf_Server to use - directories: directories where class files may be looked up
Details
Type
array
>VPropertyprotected\DOMElement $_types

DOM element to store types

Details
Type
\DOMElement
>VPropertyprotectedarray $_typesMap = array()

Map of the known types

Default valuearray()Details
Type
array
>VPropertyprotected\DOMDocument $_xml

XML document to store data

Details
Type
\DOMDocument

Methods

methodpublic__construct() : void

Constructor

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

Generate map of public class attributes

Parameters
NameTypeDescription
$typenamestring

type name

$typexml\DOMElement

target XML element

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

Build XML service description from reflection class

Parameters
NameTypeDescription
$refclass\Zend_Server_Reflection_Class
$target\DOMElement

target XML element

methodprotected_getPropertyType(\Zend_Reflection_Property $prop) : string

Extract type of the property from DocBlock

Parameters
NameTypeDescription
$prop\Zend_Reflection_Property

reflection property object

Returns
TypeDescription
stringProperty type
methodprotected_getServicePath() : array

Get the array of service directories

Returns
TypeDescription
arrayService class directories
methodprotected_phpTypeToAS(string $typename) : string

Map from PHP type name to AS type name

Parameters
NameTypeDescription
$typenamestring

PHP type name

Returns
TypeDescription
stringAS type name
methodprotected_registerType(string $typename) : string

Register new type on the system

Parameters
NameTypeDescription
$typenamestring

type name

Returns
TypeDescription
stringNew type name
methodprotected_returnError(string $msg) : string

Return error with error message

Parameters
NameTypeDescription
$msgstring

Error message

Returns
TypeDescription
string
methodpublicinitAcl(\Zend_Acl $acl) : \unknown_type

Authentication handler

Parameters
NameTypeDescription
$acl\Zend_Acl
Returns
TypeDescription
\unknown_type
methodpublicintrospect(string $serviceClass, array $options = array()) : string

Create XML definition on an AMF service class

Parameters
NameTypeDescription
$serviceClassstring

Service class name

$optionsarray

invocation options

Returns
TypeDescription
stringXML with service class introspection
Documentation was generated by phpDocumentor 2.2.0 .