CloneSet881


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9240.975statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110974
libraries/joomla/installer/adapters/component.php
291063
libraries/joomla/installer/adapters/component.php
Clone Instance
1
Line Count
10
Source Line
974
Source File
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;
                      }


Clone Instance
2
Line Count
9
Source Line
1063
Source File
libraries/joomla/installer/adapters/component.php

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


Clone AbstractionParameter Count: 4Parameter Bindings

/*
                         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#22b25b20]]
'SELECT id' 
12[[#22b25b20]]
'SELECT id, params, enabled' 
21[[#22b25a20]]
' AND parent = 0' 
22[[#22b25a20]]
' ORDER BY `parent` ASC' 
31[[#22b25aa0]]
$menuid 
32[[#22b25aa0]]
$componentrow 
41[[#22b25a00]]
loadResult 
42[[#22b25a00]]
loadAssoc