示例#1
0
 function __construct($oid = 0, $cid = 0)
 {
     parent::__construct('OID', 'CID', 't_school');
     $this->rs['OID'] = $oid;
     $this->rs['CID'] = $cid;
     $this->rs['name'] = '';
     $this->rs['mascot'] = '';
     $this->rs['logo'] = NULL;
     if ($oid && $cid) {
         $this->retrieve($oid, $cid);
     }
 }
示例#2
0
 function __construct($oid = 0, $cid = 0)
 {
     parent::__construct('OID', 'CID', 't_station');
     $this->rs['OID'] = $oid;
     $this->rs['CID'] = $cid;
     $this->rs['typeId'] = -1;
     $this->rs['tag'] = "";
     $this->rs['teamAtStation'] = 0;
     if ($oid && $cid) {
         $this->retrieve($oid, $cid);
     }
 }
示例#3
0
 function __construct($oid = 0, $cid = 0)
 {
     parent::__construct('OID', 'CID', 't_rpi');
     $this->rs['OID'] = $oid;
     $this->rs['CID'] = $cid;
     $this->rs['stationId'] = -1;
     $this->rs['URL'] = '';
     $this->rs['lastContact'] = "";
     $this->rs['debug'] = '';
     if ($oid && $cid) {
         $this->retrieve($oid, $cid);
     }
 }
示例#4
0
 function __construct($oid = 0, $cid = 0)
 {
     parent::__construct('OID', 'CID', 't_event');
     $this->rs['OID'] = $oid;
     $this->rs['CID'] = $cid;
     $this->rs['created_dt'] = unixToMySQL(time());
     $this->rs['teamId'] = '';
     $this->rs['stationId'] = '';
     $this->rs['eventType'] = Event::TYPE_BAD;
     $this->rs['points'] = 0;
     $this->rs['data'] = '';
     if ($oid && $cid) {
         $this->retrieve($oid, $cid);
     }
 }
 function __construct($oid = 0, $cid = 0)
 {
     parent::__construct('OID', 'CID', 't_stationtype');
     $this->rs['OID'] = $oid;
     $this->rs['CID'] = $cid;
     $this->rs['typeCode'] = StationType::STATION_TYPE_BAD;
     $this->rs['name'] = '';
     $this->rs['hasrPI'] = false;
     $this->rs['delay'] = 60;
     $this->rs['instructions'] = "todo - instructions";
     $this->rs['success_msg'] = "todo - success message";
     $this->rs['failed_msg'] = "todo - failed message";
     $this->rs['retry_msg'] = "todo - retry message";
     if ($oid && $cid) {
         $this->retrieve($oid, $cid);
     }
 }
示例#6
0
 function create()
 {
     $this->rs['created_dt'] = unixToMySQL(time());
     return parent::create();
 }