protected function clean_image_id($value)
 {
     if (!ImageBrowser::check_file($value)) {
         throw new SValidationError(__('Select an image'));
     }
     return $value;
 }
Beispiel #2
0
 /**
  * Return the image object identified by this filename
  * @param string $filename     the image filename
  * @access public
  * @return string
  */
 public static function get($filename)
 {
     if (ImageBrowser::check_file($filename)) {
         return new Image($filename);
     }
     return false;
 }