method removeThumbs documentation in bbn\Appui\Medias

Remove the thumbs files

function($media) { if (is_string($media)) { $media = $this->getMedia($media); } if (!is_array($media)) { throw new Exception(X::_("The media doesn't exist")); } if ($thumbs = $this->getThumbsPath($media)) { foreach($thumbs as $th){ if ($this->fs->exists($th)) { unlink($th); } } } }

Remove the thumbs files 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.