| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 5 | 3 | 0.965 | statement_sequence[4] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 229 | administrator/components/com_categories/models/category.php |
| 2 | 10 | 155 | administrator/components/com_content/models/article.php |
| 3 | 10 | 279 | administrator/components/com_menus/models/item.php |
| 4 | 10 | 123 | administrator/components/com_menus/models/menu.php |
| 5 | 10 | 347 | administrator/components/com_redirect/models/link.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;
}
|
| ||||
$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;
}
|
| ||||
$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;
}
|
| ||||
$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;
}
|
| ||||
$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;
}
|
| |||
[[#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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#23d3c8c0]] | $pk |
| 1 | 2 | [[#23d3c8c0]] | $id |
| 1 | 3 | [[#23d3c8c0]] | $linkId |
| 1 | 4 | [[#23d3c8c0]] | $pk |
| 1 | 5 | [[#23d3c8c0]] | $pk |
| 2 | 1 | [[#23d3c7a0]] | 'item.id' |
| 2 | 2 | [[#23d3c7a0]] | 'menu.id' |
| 2 | 3 | [[#23d3c7a0]] | 'link.id' |
| 2 | 4 | [[#23d3c7a0]] | 'article.id' |
| 2 | 5 | [[#23d3c7a0]] | 'category.id' |
| 3 | 1 | [[#249f3540]] | |
| 3 | 2 | [[#249f3540]] | |
| 3 | 3 | [[#249f3540]] | 'Link','RedirectTable' |
| 3 | 4 | [[#249f3540]] | |
| 3 | 5 | [[#249f3540]] | |