Changeset 343 for trunk/Model.php
- Timestamp:
- Jan 17, 2012, 1:00:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Model.php
r342 r343 4 4 define('PropertyText', 'Text'); 5 5 define('PropertyString', 'String'); 6 define('PropertyBoolean', 'Boolean'); 6 7 define('PropertyInteger', 'Integer'); 7 8 define('PropertyFloat', 'Float'); … … 15 16 var $Name; 16 17 var $Properties; 18 var $System; 17 19 18 function __construct($Database )20 function __construct($Database, $System) 19 21 { 20 22 $this->Database = &$Database; 23 $this->System = &$System; 21 24 $this->AddPropertyDateTime('TimeCreate'); 22 25 $this->AddPropertyOneToMany('UserCreate', 'User'); … … 54 57 { 55 58 $this->Properties[] = array('Name' => $Name, 'Type' => PropertyFloat); 59 } 60 61 function AddPropertyBoolean($Name) 62 { 63 $this->Properties[] = array('Name' => $Name, 'Type' => PropertyBoolean); 56 64 } 57 65
Note:
See TracChangeset
for help on using the changeset viewer.