/** * user * This get an user public information * @param array $input */ public static function user($input) { $username = $input['username']; if (!empty($username)) { $user = User::get_from_username($username); if ($user !== null) { ob_end_clean(); echo XML_Data::user($user); } else { debug_event('api', 'User `' . $username . '` cannot be found.', 1); } } else { debug_event('api', 'Username required on user function call.', 1); } }