method addMedia documentation in bbn\Appui\Note

function($id_note, string $name, array $content = NULL, string $title = '', string $type = 'file', bool $private = false) { $media = $this->getMediaInstance(); // Case where we give also the version (i.e. not the latest) if (\is_array($id_note) && (count($id_note) === 2)) { $version = $id_note[1]; $id_note = $id_note[0]; } else { $version = $this->latest($id_note) ?: 1; } if ( $this->exists($id_note) && ($id_media = $media->insert($name, $content, $title, $type, $private)) && $this->addMediaToNote($id_media, $id_note, $version) ) { return $id_media; } return null; }

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.