Changeset 22
- Timestamp:
- Oct 22, 2008, 11:44:32 AM (16 years ago)
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
base.php
r21 r22 477 477 function GetTypeDefinition($Id) 478 478 { 479 global $Database, $Types ;479 global $Database, $Types, $TypeDefinitionList; 480 480 481 481 if(!array_key_exists($Id, $Types)) … … 499 499 $DbRow['BaseType'] = $ParentType['Name']; 500 500 } 501 if(!array_key_exists($DbRow['BaseType'], $TypeDefinitionList)) 502 { 503 $ClassName = 'Type'.$DbRow['BaseType']; 504 $TypeDefinitionList[$DbRow['BaseType']] = new $ClassName; 505 } 506 $DbRow['Class'] = &$TypeDefinitionList[$DbRow['BaseType']]; 501 507 $Types[$DbRow['ItemId']] = $DbRow; 502 508 } else $Types[$DbRow['ItemId']] = NULL; … … 514 520 function ExecuteTypeEvent($Type, $Event, $Parameters) 515 521 { 516 global $TypeDefinitionList;517 518 522 $TypeDefinition = GetTypeDefinition($Type); 519 $TypeObject = $TypeDefinition List[$TypeDefinition['BaseType']];523 $TypeObject = $TypeDefinition['Class']; 520 524 if(is_callable(array($TypeObject, $Event))) return($TypeObject->$Event($Parameters)); 521 525 else return($TypeDefinition['BaseType'].'->'.$Event.'('.$Type.')'); -
code.php
r8 r22 30 30 character in ISO8859-2/Windows1250 and value is its two byte representation in UTF-8 31 31 */ 32 33 function DefineCharTable() 34 { 35 global $CharTable; 32 36 33 37 $CharTable = array( … … 520 524 ), 521 525 ); 522 526 } 523 527 524 528 function ToUTF8($String, $Charset = 'iso2') … … 526 530 global $CharTable; 527 531 532 if(!isset($CharTable)) DefineCharTable(); 528 533 $Result = ''; 529 534 for($I = 0; $I < strlen($String); $I++) … … 542 547 global $CharTable; 543 548 549 if(!isset($CharTable)) DefineCharTable(); 544 550 $Result = ''; 545 551 $UTFPrefix = ''; -
index.php
r21 r22 100 100 $System->AddModule(new IndexPage()); 101 101 $System->Modules['IndexPage']->GetOutput(); 102 //var_dump(get_defined_vars()); 103 //print_r($_GLOBAL); 102 104 103 105 ?> -
types/Boolean.php
r19 r22 21 21 } 22 22 23 $TypeDefinitionList['Boolean'] = new TypeBoolean;24 25 23 ?> -
types/Date.php
r19 r22 52 52 } 53 53 54 $TypeDefinitionList['Date'] = new TypeDate;55 56 54 ?> -
types/DateTime.php
r19 r22 81 81 } 82 82 83 $TypeDefinitionList['DateTime'] = new TypeDateTime;84 85 83 ?> -
types/Enumeration.php
r21 r22 29 29 } 30 30 31 $TypeDefinitionList['Enumeration'] = new TypeEnumeration;32 33 31 ?> -
types/File/File.php
r19 r22 45 45 } 46 46 47 $TypeDefinitionList['File'] = new TypeFile;48 49 47 ?> -
types/Float.php
r19 r22 21 21 } 22 22 23 $TypeDefinitionList['Float'] = new TypeFloat;24 25 23 ?> -
types/GPS.php
r19 r22 69 69 } 70 70 71 $TypeDefinitionList['GPS'] = new TypeGPS;72 73 71 ?> -
types/Hidden.php
r19 r22 21 21 } 22 22 23 $TypeDefinitionList['Hidden'] = new TypeHidden;24 25 23 ?> -
types/Hyperlink.php
r19 r22 21 21 } 22 22 23 $TypeDefinitionList['Hyperlink'] = new TypeHyperlink;24 25 23 ?> -
types/IPv4Address.php
r19 r22 21 21 } 22 22 23 $TypeDefinitionList['TypeIPv4Address'] = new TypeIPv4Address;24 25 23 ?> -
types/Integer.php
r19 r22 21 21 } 22 22 23 $TypeDefinitionList['Integer'] = new TypeInteger;24 25 23 ?> -
types/Password.php
r19 r22 38 38 } 39 39 40 $TypeDefinitionList['Password'] = new TypePassword;41 42 40 ?> -
types/PointerOneToMany.php
r19 r22 21 21 } 22 22 23 $TypeDefinitionList['PointerOneToMany'] = new TypePointerOneToMany;24 25 23 ?> -
types/PointerOneToOne.php
r21 r22 79 79 } 80 80 81 $TypeDefinitionList['PointerOneToOne'] = new TypePointerOneToOne;82 83 81 ?> -
types/String.php
r19 r22 21 21 } 22 22 23 $TypeDefinitionList['String'] = new TypeString;24 25 23 ?>
Note:
See TracChangeset
for help on using the changeset viewer.