method getMediaPath documentation in bbn\Appui\Medias

Returns the path of the given id_media

function($media, string $name = NULL) { if (is_string($media)) { $media = $this->getMedia($media); } if (!is_array($media)) { throw new Exception("Impossible to find the media in the database"); } if (!empty($media['content'])) { $path = bbn\Mvc::getDataPath('appui-note').'media/'.$media['content']['path'].$id_media.'/'.($name ? $name : $media['name']); return $path; } return null; }

Returns the path of the given id_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.