Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 5 | 5 | 0.961 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 340 | administrator/components/com_banners/controllers/banner.php |
2 | 8 | 373 | administrator/components/com_contact/admin.contact.php |
3 | 8 | 402 | administrator/components/com_modules/models/module.php |
4 | 8 | 433 | administrator/components/com_modules/models/module.php |
5 | 8 | 304 | administrator/components/com_newsfeeds/admin.newsfeeds.php |
| ||||
$cids= implode(',', $cid); $query= 'UPDATE #__banner' . ' SET showBanner = ' . (int) $publish . ' WHERE bid IN (' . $cids . ')' . ' AND (checked_out = 0 OR (checked_out = ' . (int) $user->get('id') . '))'; $db->setQuery($query); |
| ||||
$cids= implode(',', $cid); $query= 'UPDATE #__contact_details' . ' SET published = ' . (int) $state . ' WHERE id IN (' . $cids . ')' . ' AND (checked_out = 0 OR (checked_out = ' . (int) $user->get('id') . '))'; $db->setQuery($query); |
| ||||
$cids= implode(',', $cid); $query= 'UPDATE #__modules' . ' SET published = ' . (int) $publish . ' WHERE id IN (' . $cids . ')' . ' AND (checked_out = 0 OR (checked_out = ' . (int) $user->get('id') . '))'; $this->_db->setQuery($query); |
| ||||
$cids= implode(',', $cid); $query= 'UPDATE #__modules' . ' SET access = ' . (int) $access . ' WHERE id IN (' . $cids . ')' . ' AND (checked_out = 0 OR (checked_out = ' . (int) $user->get('id') . '))'; $this->_db->setQuery($query); |
| ||||
$cids= implode(',', $cid); $query= 'UPDATE #__newsfeeds' . ' SET published = ' . (int) $publish . ' WHERE id IN (' . $cids . ')' . ' AND (checked_out = 0 OR (checked_out = ' . (int) $user->get('id') . '))'; $db->setQuery($query); |
| |||
$cids=implode(',',$cid); $query= [[#variable526d4ce0]] . [[#variable526d4c20]] . (int) [[#variable526d4b40]] . [[#variable526d4a80]] . $cids . ')' . ' AND (checked_out = 0 OR (checked_out = ' . (int) $user->get('id') . '))'; [[#variable526d4aa0]]->setQuery($query); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#526d4ce0]] | 'UPDATE #__banner' |
1 | 2 | [[#526d4ce0]] | 'UPDATE #__contact_details' |
1 | 3 | [[#526d4ce0]] | 'UPDATE #__modules' |
1 | 4 | [[#526d4ce0]] | 'UPDATE #__modules' |
1 | 5 | [[#526d4ce0]] | 'UPDATE #__newsfeeds' |
2 | 1 | [[#526d4c20]] | ' SET showBanner = ' |
2 | 2 | [[#526d4c20]] | ' SET published = ' |
2 | 3 | [[#526d4c20]] | ' SET access = ' |
2 | 4 | [[#526d4c20]] | ' SET published = ' |
2 | 5 | [[#526d4c20]] | ' SET published = ' |
3 | 1 | [[#526d4b40]] | $publish |
3 | 2 | [[#526d4b40]] | $state |
3 | 3 | [[#526d4b40]] | $access |
3 | 4 | [[#526d4b40]] | $publish |
3 | 5 | [[#526d4b40]] | $publish |
4 | 1 | [[#526d4a80]] | ' WHERE bid IN (' |
4 | 2 | [[#526d4a80]] | ' WHERE id IN (' |
4 | 3 | [[#526d4a80]] | ' WHERE id IN (' |
4 | 4 | [[#526d4a80]] | ' WHERE id IN (' |
4 | 5 | [[#526d4a80]] | ' WHERE id IN (' |
5 | 1 | [[#526d4aa0]] | $db |
5 | 2 | [[#526d4aa0]] | $db |
5 | 3 | [[#526d4aa0]] | $this->_db |
5 | 4 | [[#526d4aa0]] | $this->_db |
5 | 5 | [[#526d4aa0]] | $db |