MTrackWeb/Roo.php
[web.mtrack] / MTrackWeb / Roo.php
1 <?php
2
3
4 require_once 'Pman/Roo.php';
5
6
7 /**
8  * This extends the standard Roo API
9  *
10  * however it has to verify that we send data protected, as it's pretty open!!!
11  *
12  * 
13  *
14  */
15
16 class MTrackWeb_Roo extends Pman_Roo
17 {
18     var $validTables = array('mtrack_tickets');
19     
20     function getAuth()
21     {
22         return true;
23         
24         
25     }
26     
27     function get($tbl)
28     {
29         if (!in_array($tbl,$this->validTables)) {
30             $this->jerr("Invalid url");
31         }
32         return parent::get($tbl);
33     }
34     function post($table)
35     {
36         if (!in_array($tbl,$this->validTables)) {
37             $this->jerr("Invalid url");
38         }
39         return parent::post($tbl);
40     
41     }
42     
43 }