public static function get($a) { // $a can be the id of the user or the username, get() will decide and call based on // Obj for lookup response $return = new user_data_resp(); if ($a != null || $a != '') { if (is_numeric($a)) { $lookup = user_db::fetch_user_byID($a); } else { $lookup = user_db::fetch_user_byName($a); } $return->data = $lookup->data; $return->avatar = user::grav_url($lookup->data['EmailAddrMD5'], 200); $return->count = $lookup->count; return $return; } else { return $return; } }