Function __global->delete_image

Definitions

sources/galleries2.php

  • Delete a specified image from the database, and delete the file if possible.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$id AUTO_LINK No No required parameter N/A N/A The ID of the image
$delete_full boolean No No True N/A N/A Whether to delete the actual file also

Preview

Code (PHP)

/**
 * Delete a specified image from the database, and delete the file if possible.
 *
 * @param  AUTO_LINK $id The ID of the image
 * @param  boolean $delete_full Whether to delete the actual file also
 */

function delete_image(int $id, bool $delete_full = true)