Function __global->prepare_backend_response

Definitions

sources/global2.php

  • Prepare what we need for a web browser's behind-the-scenes (e.g. AJAX) response.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$content_type ?string No No text/xml N/A N/A The MIME content type (null: don't output one)
$settings integer No No 101 N/A N/A Bitmask of BACKEND_RESPONSE_* settings

Preview

Code (PHP)

/**
 * Prepare what we need for a web browser's behind-the-scenes (e.g. AJAX) response.
 *
 * @param  ?string $content_type The MIME content type (null: don't output one)
 * @param  integer $settings Bitmask of BACKEND_RESPONSE_* settings
 */

function prepare_backend_response(?string $content_type = 'text/xml', int $settings = 101)