CloneSet151


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10530.965statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110229
administrator/components/com_categories/models/category.php
210155
administrator/components/com_content/models/article.php
310279
administrator/components/com_menus/models/item.php
410123
administrator/components/com_menus/models/menu.php
510347
administrator/components/com_redirect/models/link.php
Clone Instance
1
Line Count
10
Source Line
229
Source File
administrator/components/com_categories/models/category.php

                $pk=              (!empty($data['id']))
                                  ?                       $data['id']
                                  :                                     (int) $this->getState('category.id');
                $isNew=   TRUE;
                // Get a row instance.
                $table=  &$this->getTable();
                // Load the row if saving an existing category.
                if ($pk>  0) {
                        $table->load($pk);
                        $isNew=  FALSE;
                      }


Clone Instance
2
Line Count
10
Source Line
155
Source File
administrator/components/com_content/models/article.php

                $pk=              (!empty($data['id']))
                                  ?                       $data['id']
                                  :                                     (int) $this->getState('article.id');
                $isNew=   TRUE;
                // Get a row instance.
                $table=  &$this->getTable();
                // Load the row if saving an existing item.
                if ($pk>  0) {
                        $table->load($pk);
                        $isNew=  FALSE;
                      }


Clone Instance
3
Line Count
10
Source Line
279
Source File
administrator/components/com_menus/models/item.php

                $pk=              (!empty($data['id']))
                                  ?                       $data['id']
                                  :                                     (int) $this->getState('item.id');
                $isNew=   TRUE;
                // Get a row instance.
                $table=  &$this->getTable();
                // Load the row if saving an existing item.
                if ($pk>  0) {
                        $table->load($pk);
                        $isNew=  FALSE;
                      }


Clone Instance
4
Line Count
10
Source Line
123
Source File
administrator/components/com_menus/models/menu.php

                $id=      (!empty($data['id']))
                          ?                       $data['id']
                          :                                     (int) $this->getState('menu.id');
                $isNew=   TRUE;
                // Get a row instance.
                $table=  &$this->getTable();
                // Load the row if saving an existing item.
                if ($id>  0) {
                        $table->load($id);
                        $isNew=  FALSE;
                      }


Clone Instance
5
Line Count
10
Source Line
347
Source File
administrator/components/com_redirect/models/link.php

                $linkId=  (!empty($data['id']))
                          ?                       $data['id']
                          :                                     (int) $this->getState('link.id');
                $isNew=   TRUE;
                // Get a link row instance.
                $table=  &$this-> getTable('Link', 'RedirectTable');
                // Load the row if saving an existing item.
                if ($linkId>  0) {
                        $table->load($linkId);
                        $isNew=  FALSE;
                      }


Clone AbstractionParameter Count: 3Parameter Bindings

 [[#variable23d3c8c0]]=(!empty($data['id']))
                       ? $data['id']
                       : (int) $this->getState( [[#variable23d3c7a0]]);
$isNew=TRUE;
// Get a row instance.
// Get a link row instance.
$table= &$this->getTable( [[#variable249f3540]]);
// Load the row if saving an existing item.
// Load the row if saving an existing category.
if ( [[#variable23d3c8c0]]>0) {
  $table->load( [[#variable23d3c8c0]]);
  $isNew=FALSE;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#23d3c8c0]]
$pk 
12[[#23d3c8c0]]
$id 
13[[#23d3c8c0]]
$linkId 
14[[#23d3c8c0]]
$pk 
15[[#23d3c8c0]]
$pk 
21[[#23d3c7a0]]
'item.id' 
22[[#23d3c7a0]]
'menu.id' 
23[[#23d3c7a0]]
'link.id' 
24[[#23d3c7a0]]
'article.id' 
25[[#23d3c7a0]]
'category.id' 
31[[#249f3540]]
32[[#249f3540]]
33[[#249f3540]]
'Link','RedirectTable' 
34[[#249f3540]]
35[[#249f3540]]