Ignore:
Timestamp:
Jan 18, 2012, 9:32:07 PM (13 years ago)
Author:
chronos
Message:
  • Upraveno: Doplněny rozšiřující typy s jinou velikostí.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkShare/NetworkShare.php

    r358 r362  
    44
    55include_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', '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
     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}
    633
    734class ModuleNetworkShare extends Module
     
    1542    $this->License = 'GNU/GPL';
    1643    $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');
    1946  }
    2047 
Note: See TracChangeset for help on using the changeset viewer.