source: trunk/Modules/NetworkShare/NetworkShare.php@ 377

Last change on this file since 377 was 377, checked in by chronos, 13 years ago
  • Upraveno: Testována instalace čisté databáze na základě definic modulů a jejich modelů.
  • Opraveno: Doplněny definice modelů pro FinanceMonthlyOverall a FinanceCharge.
  • Přidáno: Podpora pro nastavitelnost NULL hodnoty u vlastností modelů.
  • Opraveno: Řešení správného kaskádového načítání závislostí modulů.
File size: 1.5 KB
Line 
1<?php
2
3// This module is not fully converted and implemented
4
5include_once('SharePage.php');
6
7class 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', 'NetworkShareItem');
15 $this->AddPropertyOneToMany('Host', 'NetworkDevice');
16 $this->AddPropertyInteger64('Size');
17 $this->AddPropertyString('Ext');
18 $this->AddPropertyDate('Date');
19 $this->AddPropertyInteger('Type');
20 }
21}
22
23class 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}
33
34class ModuleNetworkShare extends Module
35{
36 function __construct($Database, $System)
37 {
38 parent::__construct($Database, $System);
39 $this->Name = 'NetworkShare';
40 $this->Version = '1.0';
41 $this->Creator = 'Chronos';
42 $this->License = 'GNU/GPL';
43 $this->Description = 'System for loading network computer share file list and allow fast searching.';
44 $this->Dependencies = array('Network');
45 $this->Models = array('NetworkShareItem', 'NetworkShareError');
46 }
47
48 function Install()
49 {
50 parent::Install();
51 }
52
53 function UnInstall()
54 {
55 parent::UnInstall();
56 }
57
58 function Init()
59 {
60 $this->System->Pages['sdileni'] = 'SharePage';
61 }
62}
63
64?>
Note: See TracBrowser for help on using the repository browser.