method delete documentation in bbn\Appui\Cms

Deletes the given note and unpublish it if published.

function(string $id_note) { if ($this->note->exists($id_note)) { if ($this->note->getUrl($id_note)) { $this->removeUrl($id_note); } foreach ($this->note->getAliases($id_note) as $id_alias) { if ($this->note->getUrl($id_alias)) { $this->removeUrl($id_alias); } } foreach ($this->note->getChildren($id_note) as $id_child) { if ($this->note->getUrl($id_child)) { $this->removeUrl($id_child); } } if (!empty($this->note->remove($id_note))) { $this->cacheDelete($id_note); return true; } } return false; }

Deletes the given note and unpublish it if published. 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.