Called from ecrire/genie/optimiser.php, this pipeline is used to supplement the cleaning operations for orphaned items, by deleting such items during standard periodic task scheduling.
$n = pipeline('optimiser_base_disparus', array(
'args'=>array(
'attente' => $attente,
'date' => $mydate),
'data'=>$n
));
As parameters, it receives the expected inter-operation delay (attente) as well as the corresponding expiry date. The "data" argument array stores the number of items deleted. The optimiser_sansref()
function is used to manage the deletion of the records by providing 3 argument parameters:
- the table,
- the primary key,
- an SQL query result containing only an "id" column listing the identifiers targeted for deletion.