Ignore:
Timestamp:
Feb 28, 2016, 10:54:30 AM (9 years ago)
Author:
chronos
Message:
  • Modified: Use object oriented approach for page drawing using Application class.
  • Added: SQL updated will be automatic using UpdateTrace.php file.
  • Added: Use generic setup page at URL /setup for SQL structure update.
  • Modified: Update Common package to newer version.
Location:
trunk/Modules
Files:
2 added
1 moved

Legend:

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

    r68 r69  
    11<?php
     2
     3include_once(dirname(__FILE__).'/Page.php');
     4
     5class ModuleMeasure extends AppModule
     6{
     7  function __construct($System)
     8  {
     9    parent::__construct($System);
     10    $this->Name = 'Measure';
     11    $this->Version = '1.0';
     12    $this->Creator = 'Chronos';
     13    $this->License = 'GNU/GPL';
     14    $this->Description = 'Measurement processing';
     15    $this->Dependencies = array();
     16  }
     17
     18  function DoStart()
     19  {
     20    $this->System->RegisterPage('', 'PageMain');
     21  }
     22}
    223
    324include_once('Point.php');
     
    4768  function Load($Id)
    4869  {
    49     $Result = $this->Database->select('measure', '*', 'Id='.$Id);
     70    $Result = $this->Database->select('Measure', '*', '`Id`='.$Id);
    5071    if($Result->num_rows > 0)
    5172    {
     
    6081    $Time = time();
    6182
    62     $Result = $this->Database->select($this->Data['DataTable'], '*', '(`measure`='.$this->Data['Id'].') AND '.
     83    $Result = $this->Database->select($this->Data['DataTable'], '*', '(`Measure`='.$this->Data['Id'].') AND '.
    6384      '(`level`=0) ORDER BY `time` DESC LIMIT 2');
    6485    if($Result->num_rows == 0) {
Note: See TracChangeset for help on using the changeset viewer.