Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 2 | 0.964 | if_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 434 | libraries/joomla/database/table.php |
2 | 7 | 326 | libraries/joomla/database/table/user.php |
| ||||
// If a primary key exists update the object, otherwise insert it. if ($this->$k) { $stored= $this->_db->updateObject($this->_tbl ,$this, $this->_tbl_key ,$updateNulls); } else { $stored= $this->_db->insertObject($this->_tbl ,$this, $this->_tbl_key); } |
| ||||
// Insert or update the object based on presence of a key value. if ($key) { // Already have a table key, update the row. $return= $this->_db->updateObject($this->_tbl ,$this, $this->_tbl_key ,$updateNulls); } else { // Don't have a table key, insert the row. $return= $this->_db->insertObject($this->_tbl ,$this, $this->_tbl_key); } |
| |||
// Insert or update the object based on presence of a key value. // If a primary key exists update the object, otherwise insert it. if ( [[#variable3f78a5e0]]) { [[#variable3f78a600]]=$this->_db->updateObject($this->_tbl ,$this,$this->_tbl_key ,$updateNulls); } else { [[#variable3f78a600]]=$this->_db->insertObject($this->_tbl ,$this,$this->_tbl_key); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3f78a5e0]] | $key |
1 | 2 | [[#3f78a5e0]] | $this->$k |
2 | 1 | [[#3f78a600]] | // Already have a table key, update the row. $return |
2 | 2 | [[#3f78a600]] | $stored |