Пример #1
0
 /**
  * outputs the thumbnail to the browser
  *
  * overrides method of base class
  *
  * @param string $format gif, jpg, png, wbmp
  * @param int $quality jpg-quality: 0-100
  * @return mixed
  * @uses createThumbnail()
  * @uses CachedThumbnail::outputThumbnail()
  */
 public function outputThumbnail($format = 'png', $quality = 75)
 {
     parent::setOutputFormat($format);
     //parent::setCache();
     /*
     if ($this->cache_time === 0 || $this->cache->isPictureCached() === FALSE) {
     	$this->createThumbnail();
     	if ($this->cache_time > 0) {
     		$this->cache->writePictureCache($this->thumbnail, 100);
     	} // end if
     } // end if
     */
     parent::outputThumbnail($format, $quality);
 }