Expose the data file field.

This commit is contained in:
Chad Parry
2011-04-24 08:10:04 -06:00
parent fcb06bf175
commit 809567f128

View File

@@ -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