projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5281c6e
)
add file exists for images
author
Alan Knowles
<alan@roojs.com>
Thu, 13 May 2021 09:51:54 +0000
(17:51 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 13 May 2021 09:51:54 +0000
(17:51 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
32a08d3
..
e2ace9d
100644
(file)
--- 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...
*
/**
* deletes all the image instances of it...
*