method setDefault documentation in bbn\Appui\Masks

function($id_note) { $current = $this->get($id_note); if ($current) { if ($old = $this->getDefault($current['id_type'])) { if ($old['id_note'] === $id_note) { return 1; } $this->db->update( 'bbn_notes_masks', [ 'def' => 0 ], [ 'id_note' => $old['id_note'] ] ); } return $this->db->update( 'bbn_notes_masks', [ 'def' => 1 ], [ 'id_note' => $id_note ] ); } }

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.