method deleteSent documentation in bbn\Appui\Mailing
Deletes a sent mailing. If $history is true completely delete the row from history.
function(string $id, $history = false)
{
$success = false;
if ($mailing = $this->getMailing($id)) {
if (!empty($mailing['id_note']) && ($mailing['state'] === 'sent')) {
if (!empty($history)) {
$notes = $this->_note();
if (($medias = $notes->getMedias($mailing['id_note']) )) {
foreach ($medias as $media){
$notes->removeMedia($media['id'],$mailing['id_note']);
}
}
$notes->remove($mailing['id_note']);
$success = $this->db->delete('bbn_$_uids', ['bbn_uid' => $id]);
}
else {
$success = $this->db->delete('bbn_emailings', ['id' => $id]);
}
}
}
return $success;
}
Deletes a sent mailing. If $history is true completely delete the row from history. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions