mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-04-09 07:25:21 -04:00
Expose the data file field.
This commit is contained in:
@@ -127,6 +127,15 @@ class Item_Model_Core extends ORM_MPTT {
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
||||
Reference in New Issue
Block a user