CloneSet817


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13240.981statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113103
administrator/components/com_installer/models/components.php
21342
administrator/components/com_installer/models/discover.php
Clone Instance
1
Line Count
13
Source Line
103
Source File
administrator/components/com_installer/models/components.php

                global $mainframe, $option;

                jimport('joomla.filesystem.folder');

                /* Get a database connector */
                $db=  &JFactory::getDbo();

                $query=  'SELECT *'
                         .      ' FROM #__components'
                         .      ' WHERE parent = 0'
                         .      ' ORDER BY iscore, name';
                $db->setQuery($query);
                $rows=  $db->loadObjectList();


Clone Instance
2
Line Count
13
Source Line
42
Source File
administrator/components/com_installer/models/discover.php

                global $mainframe, $option;

                jimport('joomla.filesystem.folder');

                /* Get a database connector */
                $db= & JFactory::getDBO();

                $query=  'SELECT *'
                         .      ' FROM #__extensions'
                         .      ' WHERE state = -1'
                         .      ' ORDER BY type, client_id, folder, name';
                $db->setQuery($query);
                $rows=  $db->loadObjectList();


Clone AbstractionParameter Count: 4Parameter Bindings

global $mainframe,$option;
jimport('joomla.filesystem.folder');
/* Get a database connector */
$db= &JFactory:: [[#variable2521d7a0]]();
$query='SELECT *'
       .  [[#variable2521d740]]
       .  [[#variable2521d640]]
       .  [[#variable2521d680]];
$db->setQuery($query);
$rows=$db->loadObjectList();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#2521d7a0]]
getDbo 
12[[#2521d7a0]]
getDBO 
21[[#2521d740]]
' FROM #__components' 
22[[#2521d740]]
' FROM #__extensions' 
31[[#2521d640]]
' WHERE parent = 0' 
32[[#2521d640]]
' WHERE state = -1' 
41[[#2521d680]]
' ORDER BY iscore, name' 
42[[#2521d680]]
' ORDER BY type, client_id, folder, name'