| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 2 | 4 | 3 | 0.957 | class_member |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 2 | 255 | libraries/joomla/client/ldap.php |
| 2 | 2 | 267 | libraries/joomla/client/ldap.php |
| 3 | 2 | 336 | libraries/joomla/client/ldap.php |
| 4 | 2 | 348 | libraries/joomla/client/ldap.php |
| ||||
/**
* Replace an entry and return a true or false result
*
* @param string dn The DN which contains the attribute you want to replace
* @param string attribute The attribute values you want to replace
* @return mixed result of comparison (true, false, -1 on error)
*/
function replace($dn, $attribute) {
return @ldap_mod_replace($this->_resource ,$dn, $attribute);
}
|
| ||||
/**
* Modifies an entry and return a true or false result
*
* @param string dn The DN which contains the attribute you want to modify
* @param string attribute The attribute values you want to modify
* @return mixed result of comparison (true, false, -1 on error)
*/
function modify($dn, $attribute) {
return @ldap_modify($this->_resource ,$dn, $attribute);
}
|
| ||||
/**
* Create a new DN
*
* @param string dn The DN where you want to put the object
* @param array entries An array of arrays describing the object to add
* @return bool result of operation
*/
function create($dn, $entries) {
return @ldap_add($this->_resource ,$dn, $entries);
}
|
| ||||
/**
* Add an attribute to the given DN
* Note: DN has to exist already
*
* @param string dn The DN of the entry to add the attribute
* @param array entry An array of arrays with attributes to add
* @return bool Result of operation
*/
function add($dn, $entry) {
return @ldap_mod_add($this->_resource ,$dn, $entry);
}
|
| |||
/**
* Add an attribute to the given DN
* Note: DN has to exist already
*
* @param string dn The DN of the entry to add the attribute
* @param array entry An array of arrays with attributes to add
* @return bool Result of operation
*/
/**
* Create a new DN
*
* @param string dn The DN where you want to put the object
* @param array entries An array of arrays describing the object to add
* @return bool result of operation
*/
/**
* Modifies an entry and return a true or false result
*
* @param string dn The DN which contains the attribute you want to modify
* @param string attribute The attribute values you want to modify
* @return mixed result of comparison (true, false, -1 on error)
*/
/**
* Replace an entry and return a true or false result
*
* @param string dn The DN which contains the attribute you want to replace
* @param string attribute The attribute values you want to replace
* @return mixed result of comparison (true, false, -1 on error)
*/
function [[#variable3fbf28e0]]($dn, [[#variable3fbf2840]]) {
return @ [[#variable3fbf2880]]($this->_resource ,$dn, [[#variable3fbf2840]]);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#3fbf28e0]] | add |
| 1 | 2 | [[#3fbf28e0]] | create |
| 1 | 3 | [[#3fbf28e0]] | modify |
| 1 | 4 | [[#3fbf28e0]] | replace |
| 2 | 1 | [[#3fbf2840]] | $entry |
| 2 | 2 | [[#3fbf2840]] | $entries |
| 2 | 3 | [[#3fbf2840]] | $attribute |
| 2 | 4 | [[#3fbf2840]] | $attribute |
| 3 | 1 | [[#3fbf2880]] | ldap_mod_add |
| 3 | 2 | [[#3fbf2880]] | ldap_add |
| 3 | 3 | [[#3fbf2880]] | ldap_modify |
| 3 | 4 | [[#3fbf2880]] | ldap_mod_replace |