From e78419a275e87e927cca381d3e5849bdc09b02c5 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 13 May 2021 17:51:54 +0800 Subject: [PATCH] add file exists for images --- DataObjects/Images.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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... * -- 2.39.2