Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 1 | 0.998 | statement_sequence[11] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 49 | administrator/components/com_content/elements/author.php |
2 | 17 | 206 | administrator/components/com_messages/admin.messages.php |
| ||||
// Build the query to get the users. $query= new JQuery(); $query->select('u.id AS value'); $query->select('u.name AS text'); $query->from('#__users AS u'); $query->join('INNER', '#__user_usergroup_map AS m ON m.user_id = u.id'); $query->where('u.block = 0'); $query->where('m.group_id IN (' . $groups . ')'); // Get the users. $db= &JFactory::getDbo(); $db->setQuery($query->toString()); $users= $db->loadObjectList(); // Check for a database error. if ($db->getErrorNum()) { JError::raiseNotice(500, $db->getErrorMsg()); return FALSE; } |
| ||||
// Build the query to get the users. $query= new JQuery(); $query->select('u.id AS value'); $query->select('u.name AS text'); $query->from('#__users AS u'); $query->join('INNER', '#__user_usergroup_map AS m ON m.user_id = u.id'); $query->where('u.block = 0'); $query->where('m.group_id IN (' . $groups . ')'); // Get the users. $db= &JFactory::getDBO(); $db->setQuery($query->toString()); $users= $db->loadObjectList(); // Check for a database error. if ($db->getErrorNum()) { JError::raiseNotice(500, $db->getErrorMsg()); return FALSE; } |
| |||
// Build the query to get the users. $query=new JQuery(); $query->select('u.id AS value'); $query->select('u.name AS text'); $query->from('#__users AS u'); $query->join('INNER','#__user_usergroup_map AS m ON m.user_id = u.id'); $query->where('u.block = 0'); $query->where('m.group_id IN (' . $groups . ')'); // Get the users. $db= &JFactory:: [[#variable4c831520]](); $db->setQuery($query->toString()); $users=$db->loadObjectList(); // Check for a database error. if ($db->getErrorNum()) { JError::raiseNotice(500,$db->getErrorMsg()); return FALSE; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4c831520]] | getDbo |
1 | 2 | [[#4c831520]] | getDBO |