method getMedia documentation in bbn\Appui\Medias

Returns the object of the media

function(string $id, bool $details = false, int $width = NULL) { $cf =& $this->class_cfg; if (Str::isUid($id) && ($link_type = $this->opt->fromCode('link', $this->opt_id)) && ($media = $this->db->rselect($cf['table'], $cf['arch']['medias'], [$cf['arch']['medias']['id'] => $id])) && ($link_type !== $media[$cf['arch']['medias']['type']]) ) { $this->transformMedia($media, $width); return empty($details) ? $media['file'] : $media; } return false; }

Returns the object of 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.