Changeset 362 for trunk/Modules/NetworkShare/NetworkShare.php
- Timestamp:
- Jan 18, 2012, 9:32:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkShare/NetworkShare.php
r358 r362 4 4 5 5 include_once('SharePage.php'); 6 7 class NetworkShareItem extends Model 8 { 9 function __construct($Database, $System) 10 { 11 parent::__construct($Database, $System); 12 $this->Name = 'NetworkShareItem'; 13 $this->AddPropertyString('Name'); 14 $this->AddPropertyOneToMany('Parent', 'NetworkShareItems'); 15 $this->AddPropertyOneToMany('Host', 'NetworkDevice'); 16 $this->AddPropertyInteger64('Size'); 17 $this->AddPropertyString('Ext'); 18 $this->AddPropertyDate('Date'); 19 $this->AddPropertyInteger('Type'); 20 } 21 } 22 23 class NetworkShareError extends Model 24 { 25 function __construct($Database, $System) 26 { 27 parent::__construct($Database, $System); 28 $this->Name = 'NetworkShareError'; 29 $this->AddPropertyOneToMany('Host', 'NetworkDevice'); 30 $this->AddPropertyString('Message'); 31 } 32 } 6 33 7 34 class ModuleNetworkShare extends Module … … 15 42 $this->License = 'GNU/GPL'; 16 43 $this->Description = 'System for loading network computer share file list and allow fast searching.'; 17 $this->Dependencies = array( );18 $this->Models = array( );44 $this->Dependencies = array('Network'); 45 $this->Models = array('NetworkShareItem', 'NetworkShareError'); 19 46 } 20 47
Note:
See TracChangeset
for help on using the changeset viewer.