Changeset 362 for trunk/Model.php
- Timestamp:
- Jan 18, 2012, 9:32:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Model.php
r360 r362 1 1 <?php 2 3 define('PropertyInteger8', 'Integer8'); 4 define('PropertyInteger16', 'Integer16'); 5 define('PropertyInteger24', 'Integer24'); 6 define('PropertyInteger32', 'Integer32'); 7 define('PropertyInteger64', 'Integer64'); 8 9 define('PropertyText8', 'Text8'); 10 define('PropertyText16', 'Text16'); 11 define('PropertyText24', 'Text24'); 12 define('PropertyText32', 'Text32'); 2 13 3 14 define('PropertyDate', 'Date'); 4 15 define('PropertyTime', 'Time'); 5 16 define('PropertyDateTime', 'DateTime'); 6 define('PropertyText', 'Text ');17 define('PropertyText', 'Text16'); 7 18 define('PropertyString', 'String'); 8 19 define('PropertyBoolean', 'Boolean'); 9 define('PropertyInteger', 'Integer ');20 define('PropertyInteger', 'Integer32'); 10 21 define('PropertyFloat', 'Float'); 22 define('PropertyDouble', 'Double'); 11 23 define('PropertyOneToMany', 'OneToMany'); 12 24 define('PropertyManyToOne', 'ManyToOne'); 13 25 define('PropertyManyToMany', 'ManyToMany'); 26 14 27 15 28 class Model … … 56 69 } 57 70 71 function AddPropertyText8($Name) 72 { 73 $this->Properties[] = array('Name' => $Name, 'Type' => PropertyText8); 74 } 75 76 function AddPropertyText16($Name) 77 { 78 $this->Properties[] = array('Name' => $Name, 'Type' => PropertyText16); 79 } 80 81 function AddPropertyText24($Name) 82 { 83 $this->Properties[] = array('Name' => $Name, 'Type' => PropertyText24); 84 } 85 86 function AddPropertyText32($Name) 87 { 88 $this->Properties[] = array('Name' => $Name, 'Type' => PropertyText32); 89 } 90 58 91 function AddPropertyString($Name) 59 92 { … … 66 99 } 67 100 68 function AddPropertyFloat($Name) 101 function AddPropertyInteger8($Name) 102 { 103 $this->Properties[] = array('Name' => $Name, 'Type' => PropertyInteger8); 104 } 105 106 function AddPropertyInteger16($Name) 107 { 108 $this->Properties[] = array('Name' => $Name, 'Type' => PropertyInteger16); 109 } 110 111 function AddPropertyInteger24($Name) 112 { 113 $this->Properties[] = array('Name' => $Name, 'Type' => PropertyInteger24); 114 } 115 116 function AddPropertyInteger32($Name) 117 { 118 $this->Properties[] = array('Name' => $Name, 'Type' => PropertyInteger32); 119 } 120 121 function AddPropertyInteger64($Name) 122 { 123 $this->Properties[] = array('Name' => $Name, 'Type' => PropertyInteger64); 124 } 125 126 function AddPropertyFloat($Name) 69 127 { 70 128 $this->Properties[] = array('Name' => $Name, 'Type' => PropertyFloat); 129 } 130 131 function AddPropertyDouble($Name) 132 { 133 $this->Properties[] = array('Name' => $Name, 'Type' => PropertyDouble); 71 134 } 72 135
Note:
See TracChangeset
for help on using the changeset viewer.