DatabaseColumns.php
[Pman.Core] / DatabaseColumns.php
1 <?php
2
3 class Pman_Core_DatabaseColumns extends Pman {
4     
5     
6     function getAuth()
7     {
8         parent::getAuth(); // load company!
9         $au = $this->getAuthUser();
10        
11         if (!$au) {  
12             $this->jerr("Not authenticated", array('authFailure' => true));
13         }
14         if (!$au->pid()   ) { // not set up yet..
15             $this->jerr("Not authenticated", array('authFailure' => true));
16         }
17         
18         
19         $this->authUser = $au;
20         return true;
21     }
22     
23     function get($table) {
24         $d = DB_DAtaObject::Factory($table);
25         $re = $d->autoJoin();
26         print_r($re);
27         exit;
28         
29         
30     }
31 }