Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 4 | 0.975 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 974 | libraries/joomla/installer/adapters/component.php |
2 | 9 | 1063 | libraries/joomla/installer/adapters/component.php |
| ||||
// If a component exists with this option in the table then we don't need to add menus // Grab the params for later $query= 'SELECT id, params, enabled' . ' FROM #__components' . ' WHERE `option` = ' . $db->Quote($option) . ' ORDER BY `parent` ASC'; $db->setQuery($query); try { $componentrow= $db->loadAssoc(); // will return null on error } catch (JException $e) { $componentrow= NULL; } |
| ||||
/* * No menu element was specified so lets first see if we have an admin menu entry for this component * if we do.. then we obviously don't want to create one -- we'll just attach sub menus to that one. */ $query= 'SELECT id' . ' FROM #__components' . ' WHERE `option` = ' . $db->Quote($option) . ' AND parent = 0'; $db->setQuery($query); try { $menuid= $db->loadResult(); } catch (JException $e) { $menuid= NULL; } |
| |||
/* * No menu element was specified so lets first see if we have an admin menu entry for this component * if we do.. then we obviously don't want to create one -- we'll just attach sub menus to that one. */ // If a component exists with this option in the table then we don't need to add menus // Grab the params for later $query= [[#variable22b25b20]] . ' FROM #__components' . ' WHERE `option` = ' . $db->Quote($option) . [[#variable22b25a20]]; $db->setQuery($query); try { [[#variable22b25aa0]]=$db-> [[#variable22b25a00]](); // will return null on error } catch (JException $e) { [[#variable22b25aa0]]=NULL; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#22b25b20]] | 'SELECT id' |
1 | 2 | [[#22b25b20]] | 'SELECT id, params, enabled' |
2 | 1 | [[#22b25a20]] | ' AND parent = 0' |
2 | 2 | [[#22b25a20]] | ' ORDER BY `parent` ASC' |
3 | 1 | [[#22b25aa0]] | $menuid |
3 | 2 | [[#22b25aa0]] | $componentrow |
4 | 1 | [[#22b25a00]] | loadResult |
4 | 2 | [[#22b25a00]] | loadAssoc |