summaryrefslogtreecommitdiff
path: root/modules/gallery/models
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-17 20:02:30 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-17 20:02:30 -0800
commit39bb08db2847d2c6faf945ccf901bc34edbca355 (patch)
treed39bea59e77121a2c86438a861ec7f35a4d95f8f /modules/gallery/models
parentafb7decb00c5e668cd8c47fd30396dcc1f0c5442 (diff)
Make set_data_file() chainable.
Diffstat (limited to 'modules/gallery/models')
-rw-r--r--modules/gallery/models/item.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php
index 453a3525..fcd9b8e6 100644
--- a/modules/gallery/models/item.php
+++ b/modules/gallery/models/item.php
@@ -169,9 +169,11 @@ class Item_Model extends ORM_MPTT {
/**
* Specify the path to the data file associated with this item. To actually associate it,
* you still have to call save().
+ * @chainable
*/
public function set_data_file($data_file) {
$this->data_file = $data_file;
+ return $this;
}
/**