Changeset 2919 for trunk

Show
Ignore:
Timestamp:
02/04/12 10:47:31 (4 months ago)
Author:
paparazzia
Message:

fix #244

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/phpcommon/wslib.php

    r2823 r2919  
    136136    } 
    137137     
     138} 
     139 
     140class WSBaseRaceGroup extends WSBase { 
     141    var $idg = null; 
     142    var $rgo = null; 
     143 
     144    function __construct() { 
     145        parent::__construct(); 
     146    } 
     147     
     148    function require_idg() { 
     149        $idg = $this->check_cgi('idg', 'IDG01'); 
     150        $rgo = new racesgroups($idg); 
     151        if (is_null($rgo->grouptag)) $this->reply_with_error('IDG03'); 
     152        $this->rgo = $rgo; 
     153        $this->idg = $idg; 
     154    } 
    138155} 
    139156 
     
    423440        "IDR02"  => 'idr should be int and > 0', 
    424441        "IDR03"  => 'idr is not valid', 
     442 
     443        //idg 
     444        "IDG01"  => 'idg is required', 
     445        "IDG02"  => 'idg : report this error ?', 
     446        "IDG03"  => 'idg is not valid', 
     447 
    425448        "RTFM01"  => 'RTFM : please input idr when the boat is not racing', 
    426449        "RTFM02"  => 'RTFM : starttime should be lesser than endtime',