Changeset 71 for trunk/www/Base/Types/Include.php
- Timestamp:
- Aug 23, 2009, 6:14:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Base/Types/Include.php
r69 r71 42 42 function ExecuteTypeEvent($TypeName, $Event, $Parameters = array()) 43 43 { 44 global $TypeDefinitionList ;44 global $TypeDefinitionList, $System; 45 45 46 46 if(array_key_exists($TypeName, $TypeDefinitionList)) … … 48 48 $Type = $TypeDefinitionList[$TypeName]; 49 49 $TypeClass = 'Type'.$Type['Class']; 50 $TypeObject = new $TypeClass ;50 $TypeObject = new $TypeClass($System); 51 51 if(is_callable(array($TypeObject, $Event))) return($TypeObject->$Event($Parameters)); 52 52 else return($TypeName.'->'.$Event.'('.serialize($Parameters).')');
Note:
See TracChangeset
for help on using the changeset viewer.