method getMediaNotes documentation in bbn\Appui\Note

returns all the notes linked to the media.

function(string $id_media) { $notes = []; $cms = new \bbn\Appui\Cms($this->db); $ids = $this->db->rselectAll( $this->class_cfg['tables']['notes_medias'] [ $this->class_cfg['arch']['notes_medias']['id_note'] ], [ $this->class_cfg['arch']['notes_medias']['id_media'] => $id_media, ] ); if (!empty($ids)) { foreach ($ids as $i) { $tmp = $this->get($i['id_note']); $tmp['is_published'] = $cms->isPublished($i['id_note']); $notes[] = $tmp; //return $notes; } } return $notes; }

returns all the notes linked to the media. 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.