From 38375bbec1f031be9d3b3e500a758d974e36cce4 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Thu, 22 Nov 2012 15:43:29 +0000 Subject: Remove smart_replace() as alias for store() because it is even worse a name than store() --- it_dbi.class | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'it_dbi.class') diff --git a/it_dbi.class b/it_dbi.class index 6e0d5df..8210b04 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -688,20 +688,12 @@ function replace($tags = array()) * MUST GIVE ALL FIELDS INCLUDING ID * @param $tags key => value pairs to set */ -function smart_replace($tags = array()) +function store($tags = array()) { return $tags[$this->_p['keyfield']] && $this->read($tags[$this->_p['keyfield']]) ? $this->update($tags) : $this->replace($tags); } -/** - * 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) -- cgit v1.2.3