protected function clean_image_id($value) { if (!ImageBrowser::check_file($value)) { throw new SValidationError(__('Select an image')); } return $value; }
/** * 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; }