CloneSet511


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14340.981class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1141224
libraries/joomla/installer/adapters/component.php
214604
libraries/joomla/installer/adapters/module.php
314630
libraries/joomla/installer/adapters/module.php
Clone Instance
1
Line Count
14
Source Line
1224
Source File
libraries/joomla/installer/adapters/component.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;
                      }
              }


Clone Instance
2
Line Count
14
Source Line
604
Source File
libraries/joomla/installer/adapters/module.php

        /**
         * 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;
                      }
              }


Clone Instance
3
Line Count
14
Source Line
630
Source File
libraries/joomla/installer/adapters/module.php

        /**
         * 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;
                      }
              }


Clone AbstractionParameter Count: 4Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#52395460]]
_rollback_menu 
12[[#52395460]]
_rollback_module 
13[[#52395460]]
_rollback_menu 
21[[#3e17f260]]
'DELETE' 
22[[#3e17f260]]
'DELETE' 
23[[#3e17f260]]
'DELETE ' 
31[[#3e17f240]]
' FROM `#__modules_menu`' 
32[[#3e17f240]]
' FROM `#__modules`' 
33[[#3e17f240]]
' FROM `#__components` ' 
41[[#3e17ef60]]
' WHERE moduleid=' 
42[[#3e17ef60]]
' WHERE id=' 
43[[#3e17ef60]]
' WHERE id='