Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 4 | 4 | 0.976 | statement_sequence[7] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 349 | libraries/joomla/access/permission/accesslevel.php |
2 | 18 | 400 | libraries/joomla/access/permission/accesslevel.php |
3 | 18 | 297 | libraries/joomla/access/permission/simplerule.php |
4 | 18 | 348 | libraries/joomla/access/permission/simplerule.php |
| ||||
// Implode the group ids. $ids= implode(',', $groups); // Get the group ids that exist in the database. $db= &$this-> getDbo(); $db->setQuery( 'SELECT `id`' . ' FROM `#__usergroups`' . ' WHERE `id` IN (' . $ids . ')'); $actualGroups= (array) $db->loadResultArray(); // Get the groups that are actually available in the database. $groups= array_intersect($groups, $actualGroups); // Set the new user groups. $this->_user_groups = $groups; return $old; |
| ||||
// Implode the user ids. $ids= implode(',', $users); // Get the user ids that exist in the database. $db= &$this-> getDbo(); $db->setQuery( 'SELECT `id`' . ' FROM `#__users`' . ' WHERE `id` IN (' . $ids . ')'); $actualUsers= (array) $db->loadResultArray(); // Get the users that are actually available in the database. $users= array_intersect($users, $actualUsers); // Set the new users. $this->_users = $users; return $old; |
| ||||
// Implode the group ids. $ids= implode(',', $groups); // Get the group ids that exist in the database. $db= &$this->getDbo(); $db->setQuery( 'SELECT `id`' . ' FROM `#__usergroups`' . ' WHERE `id` IN (' . $ids . ')'); $actualGroups= (array) $db->loadResultArray(); // Get the groups that are actually available in the database. $groups= array_intersect($groups, $actualGroups); // Set the new user groups. $this->_user_groups = $groups; return $old; |
| ||||
// Implode the user ids. $ids= implode(',', $users); // Get the user ids that exist in the database. $db= &$this-> getDbo(); $db->setQuery( 'SELECT `id`' . ' FROM `#__users`' . ' WHERE `id` IN (' . $ids . ')'); $actualUsers= (array) $db->loadResultArray(); // Get the users that are actually available in the database. $users= array_intersect($users, $actualUsers); // Set the new users. $this->_users = $users; return $old; |
| |||
// Implode the user ids. // Implode the group ids. $ids=implode(',', [[#variable587bb3e0]]); // Get the user ids that exist in the database. // Get the group ids that exist in the database. $db= &$this->getDbo(); $db->setQuery('SELECT `id`' . [[#variable587bb3a0]] . ' WHERE `id` IN (' . $ids . ')'); [[#variable587bb2a0]]= (array) $db->loadResultArray(); [[#variable587bb3e0]]=array_intersect( [[#variable587bb3e0]], [[#variable587bb2a0]]); // Set the new users. // Set the new user groups. $this-> [[#variable587bb380]]= [[#variable587bb3e0]]; return $old; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#587bb3e0]] | $users |
1 | 2 | [[#587bb3e0]] | $groups |
1 | 3 | [[#587bb3e0]] | $groups |
1 | 4 | [[#587bb3e0]] | $users |
2 | 1 | [[#587bb3a0]] | ' FROM `#__users`' |
2 | 2 | [[#587bb3a0]] | ' FROM `#__usergroups`' |
2 | 3 | [[#587bb3a0]] | ' FROM `#__usergroups`' |
2 | 4 | [[#587bb3a0]] | ' FROM `#__users`' |
3 | 1 | [[#587bb2a0]] | $actualUsers |
3 | 2 | [[#587bb2a0]] | $actualGroups |
3 | 3 | [[#587bb2a0]] | $actualGroups |
3 | 4 | [[#587bb2a0]] | $actualUsers |
4 | 1 | [[#587bb380]] | _users |
4 | 2 | [[#587bb380]] | _user_groups |
4 | 3 | [[#587bb380]] | _user_groups |
4 | 4 | [[#587bb380]] | _users |