From: Alan Knowles Date: Thu, 13 May 2021 09:51:54 +0000 (+0800) Subject: add file exists for images X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=e78419a275e87e927cca381d3e5849bdc09b02c5 add file exists for images --- diff --git a/DataObjects/Images.php b/DataObjects/Images.php index 32a08d34..e2ace9d4 100644 --- a/DataObjects/Images.php +++ b/DataObjects/Images.php @@ -203,7 +203,16 @@ class Pman_Core_DataObjects_Images extends DB_DataObject )); } - + + /** + * does the files exist? + */ + function exists() + { + return file_exists($this->getStoreName()); + } + + /** * deletes all the image instances of it... *