method getMedia documentation in bbn\Appui\Medias
Returns the object of the media
function(string $id, bool $details = false, int $width = NULL, int $height = NULL, bool $crop = false, bool $force = false)
{
$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, $height, $crop, $force);
if (empty($details)) {
return $media['file'];
}
else {
$media['url'] = $this->getUrl($id);
return $media;
}
}
return null;
}
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.
© 2011-2023
BBN Solutions