add file exists for images
authorAlan Knowles <alan@roojs.com>
Thu, 13 May 2021 09:51:54 +0000 (17:51 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 13 May 2021 09:51:54 +0000 (17:51 +0800)
DataObjects/Images.php

index 32a08d3..e2ace9d 100644 (file)
@@ -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...
      *