method addSentToLink documentation in bbn\User\Email

function(string $id_link, string $date = NULL) { if ($link = $this->getLink($id_link)) { $cfg = $this->class_cfg['arch']['users_contacts_links']; $table = $this->class_cfg['tables']['users_contacts_links']; if (!$date) { $date = date('Y-m-d H:i:s'); } if ($link['last_sent'] && ($link['last_sent'] > $date)) { $date = $link['last_sent']; } return (bool)$this->db->update( $table, [ $cfg['num_sent'] => $link[$cfg['num_sent']] + 1, $cfg['last_sent'] => $date ], [ 'id' => $id_link ] ); } return false; }

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.