Ignore:
Timestamp:
Jan 19, 2012, 12:51:38 PM (13 years ago)
Author:
chronos
Message:
  • Přidáno: Definice modulu a modelu Subject.
File:
1 edited

Legend:

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

    r370 r371  
    11<?php
    22
     3class Subject extends Model
     4{
     5  function __construct($Database, $System)
     6  {
     7    parent::__construct($Database, $System);
     8    $this->Name = 'Subject';
     9    $this->AddPropertyString('Name');
     10    $this->AddPropertyString('AddressStreet');
     11    $this->AddPropertyString('AddressTown');
     12    $this->AddPropertyInteger('PSC');
     13    $this->AddPropertyString('Country');
     14    $this->AddPropertyString('IC');
     15    $this->AddPropertyString('DIC');
     16    $this->AddPropertyFloat('MapPositionX');
     17    $this->AddPropertyFloat('MapPositionY');
     18    $this->AddPropertyString('WWW');
     19    $this->AddPropertyString('Note');
     20  }
     21}
     22
     23class ModuleSubject extends Module
     24{
     25  function __construct($Database, $System)
     26  {
     27    parent::__construct($Database, $System);
     28    $this->Name = 'Subject';
     29    $this->Version = '1.0';
     30    $this->Creator = 'Chronos';
     31    $this->License = 'GNU/GPL';
     32    $this->Description = 'Subject management';
     33    $this->Dependencies = array();
     34    $this->Models = array('Subject');
     35  }
     36 
     37  function Install()
     38  {
     39    parent::Install();
     40  }
     41 
     42  function UnInstall()
     43  {
     44    parent::UnInstall();
     45  }
     46
     47  function Init()
     48  {
     49  }
     50}
     51
    352?>
Note: See TracChangeset for help on using the changeset viewer.