method changeState documentation in bbn\Appui\Mailing
Changes the state of the given mailing.
function(string $id, string $new_state)
{
if ($this->check()) {
$cur = $this->db->selectOne("bbn_emailings", 'state', ['id' => $id]);
if (($cur === 'sent') || ($cur === 'cancelled')) {
return false;
}
return (bool)$this->db->update("bbn_emailings", ['state' => $new_state], ['id' => $id]);
}
return false;
}
Changes the state of the given mailing. 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