Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Amf/Value/TraitsInfo.php
Go to the documentation of this file.
00001 <?php
00031 class Zend_Amf_Value_TraitsInfo
00032 {
00036     protected $_className;
00037 
00041     protected $_dynamic;
00042 
00046     protected $_externalizable;
00047 
00051     protected $_properties;
00052 
00062     public function __construct($className, $dynamic=false, $externalizable=false, $properties=null)
00063     {
00064         $this->_className      = $className;
00065         $this->_dynamic        = $dynamic;
00066         $this->_externalizable = $externalizable;
00067         $this->_properties     = $properties;
00068     }
00069 
00075     public function isDynamic()
00076     {
00077         return $this->_dynamic;
00078     }
00079 
00085     public function isExternalizable()
00086     {
00087         return $this->_externalizable;
00088     }
00089 
00095     public function length()
00096     {
00097         return count($this->_properties);
00098     }
00099 
00105     public function getClassName()
00106     {
00107         return $this->_className;
00108     }
00109 
00116     public function addProperty($name)
00117     {
00118         $this->_properties[] = $name;
00119         return $this;
00120     }
00121 
00128     public function addAllProperties(array $props)
00129     {
00130         $this->_properties = $props;
00131         return $this;
00132     }
00133 
00140     public function getProperty($index)
00141     {
00142         return $this->_properties[(int) $index];
00143     }
00144 
00150     public function getAllProperties()
00151     {
00152         return $this->_properties;
00153     }
00154 }
 All Data Structures Namespaces Files Functions Variables Enumerations