diff options
author | Chad Parry <github@chad.parry.org> | 2011-04-24 08:10:04 -0600 |
---|---|---|
committer | Chad Parry <github@chad.parry.org> | 2011-04-24 08:10:04 -0600 |
commit | 809567f12850f59bdeb47a2963f6968b99b5a201 (patch) | |
tree | 320284ebcdbcb03d19dc6942f44c1b5dd584bf24 | |
parent | fcb06bf175bb9eeff36d9c294e97ace9374ef0f3 (diff) |
Expose the data file field.
-rw-r--r-- | modules/gallery/models/item.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index 7a08d9c2..f4d4c521 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -128,6 +128,15 @@ class Item_Model_Core extends ORM_MPTT { } /** + * Get the path to the data file associated with this item. + * This data file field is only set until you call save(). + * After that, you can get the path using get_file_path(). + */ + public function get_data_file() { + return $this->data_file; + } + + /** * Return the server-relative url to this item, eg: * /gallery3/index.php/BobsWedding?page=2 * /gallery3/index.php/BobsWedding/Eating-Cake.jpg |