Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 3 | 4 | 0.981 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 1224 | libraries/joomla/installer/adapters/component.php |
2 | 14 | 604 | libraries/joomla/installer/adapters/module.php |
3 | 14 | 630 | libraries/joomla/installer/adapters/module.php |
| ||||
/** * Custom rollback method * - Roll back the component menu item * * @access public * @param array $arg Installation step to rollback * @return boolean True on success * @since 1.5 */ protected function _rollback_menu($arg) { // Get database connector object $db= &$this->parent->getDbo(); // Remove the entry from the #__components table $query= 'DELETE ' . ' FROM `#__components` ' . ' WHERE id=' . (int) $arg['id']; $db->setQuery($query); try { return $db->query(); } catch (JException $e) { return FALSE; } } |
| ||||
/** * Custom rollback method * - Roll back the menu item * * @access public * @param array $arg Installation step to rollback * @return boolean True on success * @since 1.5 */ protected function _rollback_menu($arg) { // Get database connector object $db= &$this->parent->getDbo(); // Remove the entry from the #__modules_menu table $query= 'DELETE' . ' FROM `#__modules_menu`' . ' WHERE moduleid=' . (int) $arg['id']; $db->setQuery($query); try { return $db->query(); } catch (JException $e) { return FALSE; } } |
| ||||
/** * Custom rollback method * - Roll back the module item * * @access public * @param array $arg Installation step to rollback * @return boolean True on success * @since 1.5 */ protected function _rollback_module($arg) { // Get database connector object $db= &$this->parent->getDbo(); // Remove the entry from the #__modules table $query= 'DELETE' . ' FROM `#__modules`' . ' WHERE id=' . (int) $arg['id']; $db->setQuery($query); try { return $db->query(); } catch (JException $e) { return FALSE; } } |
| |||
/** * Custom rollback method * - Roll back the menu item * * @access public * @param array $arg Installation step to rollback * @return boolean True on success * @since 1.5 */ /** * Custom rollback method * - Roll back the module item * * @access public * @param array $arg Installation step to rollback * @return boolean True on success * @since 1.5 */ /** * Custom rollback method * - Roll back the component menu item * * @access public * @param array $arg Installation step to rollback * @return boolean True on success * @since 1.5 */ protected function [[#variable52395460]]($arg) { // Get database connector object $db= &$this->parent->getDbo(); // Remove the entry from the #__modules_menu table // Remove the entry from the #__modules table // Remove the entry from the #__components table $query= [[#variable3e17f260]] . [[#variable3e17f240]] . [[#variable3e17ef60]] . (int) $arg['id']; $db->setQuery($query); try { return $db->query(); } catch (JException $e) { return FALSE; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#52395460]] | _rollback_menu |
1 | 2 | [[#52395460]] | _rollback_module |
1 | 3 | [[#52395460]] | _rollback_menu |
2 | 1 | [[#3e17f260]] | 'DELETE' |
2 | 2 | [[#3e17f260]] | 'DELETE' |
2 | 3 | [[#3e17f260]] | 'DELETE ' |
3 | 1 | [[#3e17f240]] | ' FROM `#__modules_menu`' |
3 | 2 | [[#3e17f240]] | ' FROM `#__modules`' |
3 | 3 | [[#3e17f240]] | ' FROM `#__components` ' |
4 | 1 | [[#3e17ef60]] | ' WHERE moduleid=' |
4 | 2 | [[#3e17ef60]] | ' WHERE id=' |
4 | 3 | [[#3e17ef60]] | ' WHERE id=' |