Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
35 | 2 | 2 | 0.982 | statement_sequence[14] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 36 | 295 | libraries/joomla/installer/adapters/module.php |
2 | 35 | 269 | libraries/joomla/installer/adapters/plugin.php |
| ||||
if ($utfresult === FALSE) { // Install failed, rollback changes $this->parent->abort(JText::_('Module') . ' ' . JText::_($this->route) . ': ' . JText::_('SQLERRORORFILE') . " " . $db->stderr(TRUE)); return FALSE; } // Start Joomla! 1.6 ob_start(); ob_implicit_flush(FALSE); if ($this->parent->manifestClass && method_exists($this->parent->manifestClass ,$this->route)) $this->parent->manifestClass->{$this->route }($this); $msg.= ob_get_contents(); // append messages ob_end_clean(); /** * --------------------------------------------------------------------------------------------- * Finalization and Cleanup Section * --------------------------------------------------------------------------------------------- */ // Lastly, we will copy the manifest file to its appropriate place. if (!$this->parent->copyManifest(-1)) { // Install failed, rollback changes $this->parent->abort(JText::_('Module') . ' ' . JText::_($this->route) . ': ' . JText::_('Could not copy setup file')); return FALSE; } // And now we run the postflight ob_start(); ob_implicit_flush(FALSE); if ($this->parent->manifestClass && method_exists($this->parent->manifestClass ,'postflight')) $this->parent->manifestClass->postflight($this->route ,$this); $msg.= ob_get_contents(); // append messages ob_end_clean(); if ($msg != '') { $this->parent->set('extension_message', $msg); } return $row->get('extension_id'); |
| ||||
if ($utfresult === FALSE) { // Install failed, rollback changes $this->parent->abort(JText::_('Module') . ' ' . JText::_($this->route) . ': ' . JText::_('SQLERRORORFILE') . " " . $db->stderr(TRUE)); return FALSE; } // Start Joomla! 1.6 ob_start(); ob_implicit_flush(FALSE); if ($this->parent->manifestClass && method_exists($this->parent->manifestClass ,$this->route)) $this->parent->manifestClass->{$this->route }($this); $msg.= ob_get_contents(); // append messages ob_end_clean(); /** * --------------------------------------------------------------------------------------------- * Finalization and Cleanup Section * --------------------------------------------------------------------------------------------- */ // Lastly, we will copy the manifest file to its appropriate place. if (!$this->parent->copyManifest(-1)) { // Install failed, rollback changes $this->parent->abort(JText::_('Plugin') . ' ' . JText::_($this->route) . ': ' . JText::_('Could not copy setup file')); return FALSE; } // And now we run the postflight ob_start(); ob_implicit_flush(FALSE); if ($this->parent->manifestClass && method_exists($this->parent->manifestClass ,'postflight')) $this->parent->manifestClass->postflight($this->route ,$this); $msg.= ob_get_contents(); // append messages ob_end_clean(); if ($msg != '') { $this->parent->set('extension_message', $msg); } return $id; |
| |||
if ($utfresult === FALSE) { // Install failed, rollback changes $this->parent->abort(JText::_('Module') . ' ' . JText::_($this->route) . ': ' . JText::_('SQLERRORORFILE') . " " . $db->stderr(TRUE)); return FALSE; } // Start Joomla! 1.6 ob_start(); ob_implicit_flush(FALSE); if ($this->parent->manifestClass && method_exists($this->parent->manifestClass ,$this->route)) $this->parent->manifestClass->{ $this->route }($this); $msg.=ob_get_contents(); // append messages ob_end_clean(); /** * --------------------------------------------------------------------------------------------- * Finalization and Cleanup Section * --------------------------------------------------------------------------------------------- */ // Lastly, we will copy the manifest file to its appropriate place. if (!$this->parent->copyManifest(-1)) { // Install failed, rollback changes $this->parent->abort(JText::_( [[#variable22c10540]]) . ' ' . JText::_($this->route) . ': ' . JText::_('Could not copy setup file')); return FALSE; } // And now we run the postflight ob_start(); ob_implicit_flush(FALSE); if ($this->parent->manifestClass && method_exists($this->parent->manifestClass ,'postflight')) $this->parent->manifestClass->postflight($this->route ,$this); $msg.=ob_get_contents(); // append messages ob_end_clean(); if ($msg != '') { $this->parent->set('extension_message',$msg); } return [[#variable3c63a440]]; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#22c10540]] | 'Plugin' |
1 | 2 | [[#22c10540]] | 'Module' |
2 | 1 | [[#3c63a440]] | $id |
2 | 2 | [[#3c63a440]] | $row->get('extension_id') |