\jomres_gdpr_cleanup

Summary

Methods
Properties
Constants
__construct()
cleanup_booking()
cleanup_invoice()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
clean_table()
No private properties found
N/A

Methods

__construct()

__construct() 

cleanup_booking()

cleanup_booking(  $contract_uid,   $invoice_id) 

Parameters

$contract_uid
$invoice_id

cleanup_invoice()

cleanup_invoice(  $invoice_id) 

Cleans up an invoice, typically passed by cron job functionality as the invoice is found to be greater than 1 year old. Cleans up invoice table, invoice items, the two PII tables. Could also be called by Right to Forget functionality.

Parameters

$invoice_id

clean_table()

clean_table(  $table = '',   $id) 

Removes a row from a table

Parameters

$table
$id