Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 3 | 0.955 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 180 | libraries/joomla/database/database/mysql.php |
2 | 7 | 197 | libraries/joomla/database/database/mysqli.php |
| ||||
/** * Get a database escaped string * * @param string The string to be escaped * @param boolean Optional parameter to provide extra escaping * @return string * @access public * @abstract */ public function getEscaped($text, $extra= FALSE) { $result= mysql_real_escape_string($text, $this->_resource); if ($extra) { $result= addcslashes($result, '%_'); } return $result; } |
| ||||
/** * Get a database escaped string * * @param string The string to be escaped * @param boolean Optional parameter to provide extra escaping * @return string * @access public * @abstract */ public function getEscaped($text, $extra= FALSE) { $result= mysqli_real_escape_string($this->_resource ,$text); if ($extra) { $result= addcslashes($result, '%_'); } return $result; } |
| |||
/** * Get a database escaped string * * @param string The string to be escaped * @param boolean Optional parameter to provide extra escaping * @return string * @access public * @abstract */ public function getEscaped($text,$extra=FALSE) { $result= [[#variable3e61a8a0]]( [[#variable3e61a7c0]], [[#variable3e61a820]]); if ($extra) { $result=addcslashes($result,'%_'); } return $result; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3e61a8a0]] | mysqli_real_escape_string |
1 | 2 | [[#3e61a8a0]] | mysql_real_escape_string |
2 | 1 | [[#3e61a7c0]] | $this->_resource |
2 | 2 | [[#3e61a7c0]] | $text |
3 | 1 | [[#3e61a820]] | $text |
3 | 2 | [[#3e61a820]] | $this->_resource |