Esempio n. 1
0
 public static function fetch($id = null)
 {
     $user = new Tg_User();
     if (is_null($id)) {
         return $user;
     }
     $userTable = $user->_getUserTable();
     $rowset = $userTable->find($id);
     $row = $rowset->current();
     $user->id = $row->id;
     $user->name = $row->name;
     return $user;
 }