Moodle  2.2.1
http://www.collinsharper.com
Zend_Amf_Value_TraitsInfo Class Reference

Public Member Functions

 __construct ($className, $dynamic=false, $externalizable=false, $properties=null)
 isDynamic ()
 isExternalizable ()
 length ()
 getClassName ()
 addProperty ($name)
 addAllProperties (array $props)
 getProperty ($index)
 getAllProperties ()

Protected Attributes

 $_className
 $_dynamic
 $_externalizable
 $_properties

Detailed Description

Definition at line 31 of file TraitsInfo.php.


Constructor & Destructor Documentation

__construct ( className,
dynamic = false,
externalizable = false,
properties = null 
)

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

Parameters:
string$className
boolean$dynamic
boolean$externalizable
boolean$properties
Returns:
void

Definition at line 62 of file TraitsInfo.php.


Member Function Documentation

addAllProperties ( array props)

Add all properties of the class.

Parameters:
array$props
Returns:
Zend_Amf_Value_TraitsInfo

Definition at line 128 of file TraitsInfo.php.

addProperty ( name)

Add an additional property

Parameters:
string$name
Returns:
Zend_Amf_Value_TraitsInfo

Definition at line 116 of file TraitsInfo.php.

Return all properties of the class.

Returns:
array

Definition at line 150 of file TraitsInfo.php.

Return the class name

Returns:
string

Definition at line 105 of file TraitsInfo.php.

getProperty ( index)

Get the property at a given index

Parameters:
int$index
Returns:
string

Definition at line 140 of file TraitsInfo.php.

isDynamic ( )

Test if the class is a dynamic class

Returns:
boolean

Definition at line 75 of file TraitsInfo.php.

Test if class is externalizable

Returns:
boolean

Definition at line 85 of file TraitsInfo.php.

length ( )

Return the number of properties in the class

Returns:
int

Definition at line 95 of file TraitsInfo.php.


Field Documentation

$_className [protected]

Definition at line 36 of file TraitsInfo.php.

$_dynamic [protected]

Definition at line 41 of file TraitsInfo.php.

$_externalizable [protected]

Definition at line 46 of file TraitsInfo.php.

$_properties [protected]

Definition at line 51 of file TraitsInfo.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations