summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
authorChristian Schneider2012-11-01 15:52:58 +0000
committerChristian Schneider2012-11-01 15:52:58 +0000
commit8a3d7462ef9d1b6340a5e58552a1d6e2de13ec23 (patch)
treee2a503418e66c94fefcae116c9709d84d02099c9 /it_dbi.class
parent2bd1adf0e007d8024d3a8f0c038d94d93e9ed819 (diff)
downloaditools-8a3d7462ef9d1b6340a5e58552a1d6e2de13ec23.tar.gz
itools-8a3d7462ef9d1b6340a5e58552a1d6e2de13ec23.tar.bz2
itools-8a3d7462ef9d1b6340a5e58552a1d6e2de13ec23.zip
Added alias store() for smart_replace() to maintain API backward compatibility
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class8
1 files changed, 8 insertions, 0 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 1bb36e0..6e0d5df 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -695,6 +695,14 @@ function smart_replace($tags = array())
/**
+ * Maintain backward compatibility store() == smart_replace() to avoid unnecessary API BC break
+ */
+function store($tags = array())
+{
+ return $this->smart_replace($tags);
+}
+
+/**
* Update current record or a number of records given by where condition
* @param $tags key => value pairs (these have priority over changes in member vars)
* @param $where condition to select records to be modified (if not current record)