method unpublish documentation in bbn\Appui\Cms

Unpublish a note.

function(string $id_note) { if ($event = $this->getEvent($id_note)) { if ($this->db->delete($this->class_cfg['tables']['notes_events'], [ $this->class_cfg['arch']['notes_events']['id_note'] => $id_note ]) && $this->db->delete($this->class_cfg['tables']['events'], [ $this->class_cfg['arch']['events']['id'] => $event['id'] ]) ) { $this->cacheDelete($id_note); return true; } } return false; }

Unpublish a 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.