SproutCMS

This is the code documentation for the SproutCMS project

function _deleteSave()

Deletes an item and logs the deleted data

This method DOES NOT remove files from disk, in case the deleted DB record needs to be restored.
They are removed later, when the deletion log is cleared; see ActionLogAdminController::cronCleanup.
If lack of disk space is an issue, the log should be cleared more often, or alternate file backends should be
used; see FilesBackend.

Usage

bool $FileAdminController->_deleteSave ( int $item_id );

Arguments

  1. int $item_id
    The record to delete

Exceptions thrown

  • QueryException

Return value

  • bool
    True on success, false on failure