Function __global->final_attachments_from_preview

Definitions

sources/attachments2.php

  • Finalise attachments which were created during a preview, so that they have the proper reference IDs.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$id ID_TEXT No No required parameter N/A N/A The ID in the set of the arbitrary types that the attached is for
$db ?object No No Null N/A N/A The database connector to use (null: standard site connector)

Preview

Code (PHP)

/**
 * Finalise attachments which were created during a preview, so that they have the proper reference IDs.
 *
 * @param  ID_TEXT $id The ID in the set of the arbitrary types that the attached is for
 * @param  ?object $db The database connector to use (null: standard site connector)
 */

function final_attachments_from_preview(string $id, ?object $db = null)