Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 3 | 3 | 0.995 | statement_sequence[12] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 124 | libraries/joomla/installer/adapters/library.php |
2 | 15 | 128 | libraries/joomla/installer/adapters/package.php |
3 | 15 | 151 | libraries/joomla/installer/adapters/template.php |
| ||||
$row->name = $this->get('name'); $row->type = 'library'; $row->element = $this->get('element'); $row->folder = ''; // There is no folder for modules $row->enabled = 1; $row->protected = 0; $row->access = 0; $row->client_id = 0; $row->params = $this->parent->getParams(); $row->custom_data = ''; // custom data $row->manifest_cache = $this->parent->generateManifestCache(); if (!$row->store()) { // Install failed, roll back changes $this->parent->abort(JText::_('Library') . ' ' . JText::_('Install') . ': ' . $db->stderr(TRUE)); return FALSE; } |
| ||||
$row->name = $this->get('name'); $row->type = 'package'; $row->element = $this->get('element'); $row->folder = ''; // There is no folder for modules $row->enabled = 1; $row->protected = 0; $row->access = 0; $row->client_id = 0; $row->params = $this->parent->getParams(); $row->custom_data = ''; // custom data $row->manifest_cache = $this->parent->generateManifestCache(); if (!$row->store()) { // Install failed, roll back changes $this->parent->abort(JText::_('Package') . ' ' . JText::_('Install') . ': ' . $db->stderr(TRUE)); return FALSE; } |
| ||||
$row->name = $this->get('name'); $row->type = 'template'; $row->element = $this->get('name'); $row->folder = ''; // There is no folder for templates $row->enabled = 1; $row->protected = 0; $row->access = 0; $row->client_id = 0; $row->params = $this->parent->getParams(); $row->custom_data = ''; // custom data $row->manifest_cache = $this->parent->generateManifestCache(); if (!$row->store()) { // Install failed, roll back changes $this->parent->abort(JText::_('Template') . ' ' . JText::_('Install') . ': ' . $db->stderr(TRUE)); return FALSE; } |
| |||
$row->name =$this->get('name'); $row->type = [[#variable52249480]]; $row->element =$this->get( [[#variable52249440]]); $row->folder =''; // There is no folder for templates // There is no folder for modules $row->enabled =1; $row->protected =0; $row->access =0; $row->client_id =0; $row->params =$this->parent->getParams(); $row->custom_data =''; // custom data $row->manifest_cache =$this->parent->generateManifestCache(); if (!$row->store()) { // Install failed, roll back changes $this->parent->abort(JText::_( [[#variable52249360]]) . ' ' . JText::_('Install') . ': ' . $db->stderr(TRUE)); return FALSE; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#52249480]] | 'template' |
1 | 2 | [[#52249480]] | 'library' |
1 | 3 | [[#52249480]] | 'package' |
2 | 1 | [[#52249440]] | 'name' |
2 | 2 | [[#52249440]] | 'element' |
2 | 3 | [[#52249440]] | 'element' |
3 | 1 | [[#52249360]] | 'Template' |
3 | 2 | [[#52249360]] | 'Library' |
3 | 3 | [[#52249360]] | 'Package' |