Changeset 484 for trunk/Common/Types/Type.php
- Timestamp:
- Feb 10, 2013, 11:31:12 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Types/Type.php
r430 r484 20 20 include(dirname(__FILE__).'/IPv4Address.php'); 21 21 include(dirname(__FILE__).'/Color.php'); 22 include(dirname(__FILE__).'/RandomHash.php'); 22 23 23 24 class Type … … 25 26 var $System; 26 27 var $TypeDefinitionList; 28 var $Values; 27 29 28 30 function __construct($System) … … 49 51 'OneToMany' => array('Name' => 'OneToMany', 'Class' => 'OneToMany', 'ParentType' => '', 'Parameters' => array()), 50 52 'Color' => array('Name' => 'Color', 'Class' => 'Color', 'ParentType' => '', 'Parameters' => array()), 53 'RandomHash' => array('Name' => 'RandomHash', 'Class' => 'RandomHash', 'ParentType' => '', 'Parameters' => array()), 51 54 ); 52 55 } … … 62 65 else return($TypeName.'->'.$Event.'('.serialize($Parameters).')'); 63 66 } else return($TypeName); 67 } 68 69 function IsHidden($TypeName) 70 { 71 if(array_key_exists($TypeName, $this->TypeDefinitionList)) 72 { 73 $Type = $this->TypeDefinitionList[$TypeName]; 74 $TypeClass = 'Type'.$Type['Class']; 75 $TypeObject = new $TypeClass($this->System); 76 return($TypeObject->Hidden); 77 } else return(false); 64 78 } 65 79
Note:
See TracChangeset
for help on using the changeset viewer.