method getLasts documentation in bbn\Appui\Mailing

Get the last mailings rows which aree not sending

function(int $limit = 10) { return $this->db->rselectAll( [ 'table' => 'bbn_emailings', 'fields' => ['id', 'title', 'sent', 'state'], 'join' => [ [ 'table' => 'bbn_notes_versions', 'on' => [ 'conditions' => [ [ 'field' => 'bbn_notes_versions.id_note', 'exp' => 'bbn_emailings.id_note' ], [ 'field' => 'bbn_notes_versions.version', 'exp' => 'bbn_emailings.version' ] ] ] ] ], 'where' => [ ['state', '!=', 'sending'], ['sent', 'isnotnull'], ['sent', '<', Date('Y-m-d H:i:s')] ], 'order' => [ 'sent' => 'DESC' ], 'limit' => $limit ] ); }

Get the last mailings rows which aree not sending 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.