/** * This function sets and returns a new path for a requested content entity. * @param string $filename = the original fileName from which the extension is cut. * @return string the content file name */ public function setThumbnail($filename) { Basekshow::SetThumbnail(myContentStorage::generateRandomFileName($filename, $this->getThumbnail())); return $this->getThumbnail(); }