1 | <?php
|
---|
2 |
|
---|
3 | // This module is not fully converted and implemented
|
---|
4 |
|
---|
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', '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 |
|
---|
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 | }
|
---|
33 |
|
---|
34 | class 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 | ?>
|
---|