getAuthUser(); if (!$au) { $this->jerr("Not authenticated", array('authFailure' => true)); } if (!$au->pid() ) { // not set up yet.. $this->jerr("Not authenticated", array('authFailure' => true)); } $this->authUser = $au; return true; } function get($table) { $d = DB_DAtaObject::Factory($table); if (method_exists($d, 'availableColumns')) { $cols = $d->availableColumns(); } else { $re = $d->autoJoin(); echo '
';print_r($re);
            $cols = $re['cols'] ;
            
            
            $types = $d->table();
            print_r($types);exit;
            
            $schemas = array();
            
            foreach($re['join_names'] as $c=>$f) {
                
                
                
                $cols[$c] = $f;
            }
            
        }
        
        
        
        foreach($cols as $c=>$f) {
            $ret[]  = array(
                'name' => $c,
                'val' => $f
            );
            
        }
        
        $this->jdata($ret);
    }
}