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); $re = $d->autoJoin(); $ret = array (); foreach($re['cols'] as $c=>$f) { $ret[] = array( 'name' => $c, 'val' => $f ); } $this->jdata($ret); } }