Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
37 | 2 | 0 | 1.000 | statement_sequence[10] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 37 | 572 | libraries/joomla/access/permission/accesslevel.php |
2 | 37 | 535 | libraries/joomla/access/permission/simplerule.php |
| ||||
// Set the rule id. $this->_rule_id = $ruleId; // Load the usergroups for the rule. $db->setQuery( 'SELECT `group_id`' . ' FROM `#__usergroup_rule_map`' . ' WHERE `rule_id` = ' . (int) $this->_rule_id); $groups= (array) $db->loadResultArray(); // Check for a database error. if ($db->getErrorNum()) { $this->setError($db->getErrorMsg()); return FALSE; } // Set the user groups. $this->_user_groups = $groups; // Load the users for the rule. $db->setQuery( 'SELECT `user_id`' . ' FROM `#__user_rule_map`' . ' WHERE `rule_id` = ' . (int) $this->_rule_id); $users= (array) $db->loadResultArray(); // Check for a database error. if ($db->getErrorNum()) { $this->setError($db->getErrorMsg()); return FALSE; } // Set the user groups. $this->_users = $users; return TRUE; |
| ||||
// Set the rule id. $this->_rule_id = $ruleId; // Load the usergroups for the rule. $db->setQuery( 'SELECT `group_id`' . ' FROM `#__usergroup_rule_map`' . ' WHERE `rule_id` = ' . (int) $this->_rule_id); $groups= (array) $db->loadResultArray(); // Check for a database error. if ($db->getErrorNum()) { $this->setError($db->getErrorMsg()); return FALSE; } // Set the user groups. $this->_user_groups = $groups; // Load the users for the rule. $db->setQuery( 'SELECT `user_id`' . ' FROM `#__user_rule_map`' . ' WHERE `rule_id` = ' . (int) $this->_rule_id); $users= (array) $db->loadResultArray(); // Check for a database error. if ($db->getErrorNum()) { $this->setError($db->getErrorMsg()); return FALSE; } // Set the user groups. $this->_users = $users; return TRUE; |
| |||
// Set the rule id. $this->_rule_id =$ruleId; // Load the usergroups for the rule. $db->setQuery('SELECT `group_id`' . ' FROM `#__usergroup_rule_map`' . ' WHERE `rule_id` = ' . (int) $this->_rule_id); $groups= (array) $db->loadResultArray(); // Check for a database error. if ($db->getErrorNum()) { $this->setError($db->getErrorMsg()); return FALSE; } // Set the user groups. $this->_user_groups =$groups; // Load the users for the rule. $db->setQuery('SELECT `user_id`' . ' FROM `#__user_rule_map`' . ' WHERE `rule_id` = ' . (int) $this->_rule_id); $users= (array) $db->loadResultArray(); // Check for a database error. if ($db->getErrorNum()) { $this->setError($db->getErrorMsg()); return FALSE; } // Set the user groups. $this->_users =$users; return TRUE; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |