Amf/Value/TraitsInfo.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  
Subpackage
Value  
Version
$Id$  

\Zend_Amf_Value_TraitsInfo

Package: Zend_Amf\Value
Zend_Amf_Value_TraitsInfo
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedstring $_className

Class name

Details
Type
string
>VPropertyprotectedbool $_dynamic

Whether or not this is a dynamic class

Details
Type
bool
>VPropertyprotectedbool $_externalizable

Whether or not the class is externalizable

Details
Type
bool
>VPropertyprotectedarray $_properties

Class properties

Details
Type
array

Methods

methodpublic__construct(string $className, boolean $dynamic = false, boolean $externalizable = false, boolean $properties = null) : void

Used to keep track of all class traits of an AMF3 object

Parameters
NameTypeDescription
$classNamestring
$dynamicboolean
$externalizableboolean
$propertiesboolean
methodpublicaddAllProperties(array $props) : \Zend_Amf_Value_TraitsInfo

Add all properties of the class.

Parameters
NameTypeDescription
$propsarray
Returns
TypeDescription
\Zend_Amf_Value_TraitsInfo
methodpublicaddProperty(string $name) : \Zend_Amf_Value_TraitsInfo

Add an additional property

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
\Zend_Amf_Value_TraitsInfo
methodpublicgetAllProperties() : array

Return all properties of the class.

Returns
TypeDescription
array
methodpublicgetClassName() : string

Return the class name

Returns
TypeDescription
string
methodpublicgetProperty(int $index) : string

Get the property at a given index

Parameters
NameTypeDescription
$indexint
Returns
TypeDescription
string
methodpublicisDynamic() : boolean

Test if the class is a dynamic class

Returns
TypeDescription
boolean
methodpublicisExternalizable() : boolean

Test if class is externalizable

Returns
TypeDescription
boolean
methodpubliclength() : int

Return the number of properties in the class

Returns
TypeDescription
int
Documentation was generated by phpDocumentor 2.2.0 .