| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 25 | 4 | 5 | 0.957 | statement_sequence[7] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 25 | 132 | libraries/joomla/installer/adapters/component.php |
| 2 | 25 | 830 | libraries/joomla/installer/adapters/component.php |
| 3 | 25 | 1352 | libraries/joomla/installer/adapters/component.php |
| 4 | 25 | 479 | libraries/joomla/installer/adapters/module.php |
| ||||
/**
* ---------------------------------------------------------------------------------------------
* Installer Trigger Loading
* ---------------------------------------------------------------------------------------------
*/
// If there is an manifest class file, lets load it; we'll copy it later (don't have dest yet)
$this->scriptElement = &$this->manifest->getElementByPath('scriptfile');
if (is_a($this->scriptElement ,'JSimpleXMLElement')) {
$manifestScript= $this->scriptElement->data();
$manifestScriptFile= $this->parent->getPath('source')
. DS
. $manifestScript;
if (is_file($manifestScriptFile)) {
// load the file
include_once ($manifestScriptFile);
}
// Set the class name
$classname= $element
. 'InstallerScript';
if (class_exists($classname)) {
// create a new instance
$this->parent->manifestClass = new $classname($this);
// and set this so we can copy it later
$this->set('manifest_script', $manifestScript);
// Note: if we don't find the class, don't bother to copy the file
}
}
// run preflight if possible (since we know we're not an update)
ob_start();
ob_implicit_flush(FALSE);
if ($this->parent->manifestClass
&& method_exists($this->parent->manifestClass ,'preflight')) $this->parent->manifestClass->preflight('install', $this);
$msg= ob_get_contents(); // create msg object; first use here
ob_end_clean();
|
| ||||
/**
* ---------------------------------------------------------------------------------------------
* Installer Trigger Loading and Uninstall
* ---------------------------------------------------------------------------------------------
*/
// If there is an manifest class file, lets load it; we'll copy it later (don't have dest yet)
$this->scriptElement = &$this->manifest->getElementByPath('scriptfile');
if (is_a($this->scriptElement ,'JSimpleXMLElement')) {
$manifestScript= $this->scriptElement->data();
$manifestScriptFile= $this->parent->getPath('source')
. DS
. $manifestScript;
if (is_file($manifestScriptFile)) {
// load the file
include_once ($manifestScriptFile);
}
// Set the class name
$classname= $row->element
. 'InstallerScript';
if (class_exists($classname)) {
// create a new instance
$this->parent->manifestClass = new $classname($this);
// and set this so we can copy it later
$this->set('manifest_script', $manifestScript);
// Note: if we don't find the class, don't bother to copy the file
}
}
ob_start();
ob_implicit_flush(FALSE);
// run uninstall if possible
if ($this->parent->manifestClass
&& method_exists($this->parent->manifestClass ,'uninstall')) $this->parent->manifestClass->uninstall($this);
$msg= ob_get_contents();
ob_end_clean();
|
| ||||
/**
* ---------------------------------------------------------------------------------------------
* Installer Trigger Loading
* ---------------------------------------------------------------------------------------------
*/
// If there is an manifest class file, lets load it; we'll copy it later (don't have dest yet)
$this->scriptElement = &$this->manifest->getElementByPath('scriptfile');
if (is_a($this->scriptElement ,'JSimpleXMLElement')) {
$manifestScript= $this->scriptElement->data();
$manifestScriptFile= $this->parent->getPath('source')
. DS
. $manifestScript;
if (is_file($manifestScriptFile)) {
// load the file
include_once ($manifestScriptFile);
}
// Set the class name
$classname= $element
. 'InstallerScript';
if (class_exists($classname)) {
// create a new instance
$this->parent->manifestClass = new $classname($this);
// and set this so we can copy it later
$this->set('manifest_script', $manifestScript);
// Note: if we don't find the class, don't bother to copy the file
}
}
// run preflight if possible (since we know we're not an update)
ob_start();
ob_implicit_flush(FALSE);
if ($this->parent->manifestClass
&& method_exists($this->parent->manifestClass ,'preflight')) $this->parent->manifestClass->preflight('discover_install', $this);
$msg= ob_get_contents(); // create msg object; first use here
ob_end_clean();
|
| ||||
// If there is an manifest class file, lets load it
$this->scriptElement = &$this->manifest->getElementByPath('scriptfile');
if (is_a($this->scriptElement ,'JSimpleXMLElement')) {
$manifestScript= $this->scriptElement->data();
$manifestScriptFile= $this->parent->getPath('extension_root')
. DS
. $manifestScript;
if (is_file($manifestScriptFile)) {
// load the file
include_once ($manifestScriptFile);
}
// Set the class name
$classname= $element
. 'InstallerScript';
if (class_exists($classname)) {
// create a new instance
$this->parent->manifestClass = new $classname($this);
// and set this so we can copy it later
$this->set('manifest_script', $manifestScript);
// Note: if we don't find the class, don't bother to copy the file
}
}
ob_start();
ob_implicit_flush(FALSE);
// run uninstall if possible
if ($this->parent->manifestClass
&& method_exists($this->parent->manifestClass ,'uninstall')) $this->parent->manifestClass->uninstall($this);
$msg= ob_get_contents();
ob_end_clean();
|
| |||
/**
* ---------------------------------------------------------------------------------------------
* Installer Trigger Loading
* ---------------------------------------------------------------------------------------------
*/
/**
* ---------------------------------------------------------------------------------------------
* Installer Trigger Loading and Uninstall
* ---------------------------------------------------------------------------------------------
*/
// If there is an manifest class file, lets load it; we'll copy it later (don't have dest yet)
// If there is an manifest class file, lets load it
$this->scriptElement = &$this->manifest->getElementByPath('scriptfile');
if (is_a($this->scriptElement ,'JSimpleXMLElement')) {
$manifestScript=$this->scriptElement->data();
$manifestScriptFile=$this->parent->getPath( [[#variable58bc4480]])
. DS
. $manifestScript;
if (is_file($manifestScriptFile)) {
// load the file
include_once ($manifestScriptFile);
}
// Set the class name
$classname= [[#variable58bc4420]]
. 'InstallerScript';
if (class_exists($classname)) {
// create a new instance
$this->parent->manifestClass =new $classname($this);
// and set this so we can copy it later
$this->set('manifest_script',$manifestScript);
// Note: if we don't find the class, don't bother to copy the file
}
}
// run preflight if possible (since we know we're not an update)
ob_start();
ob_implicit_flush(FALSE);
// run uninstall if possible
if ($this->parent->manifestClass
&& method_exists($this->parent->manifestClass , [[#variable58bc4380]]))
$this->parent->manifestClass-> [[#variable4c7984c0]]( [[#variable58bc4360]]);
$msg=ob_get_contents(); // create msg object; first use here
ob_end_clean();
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#58bc4480]] | 'source' |
| 1 | 2 | [[#58bc4480]] | 'source' |
| 1 | 3 | [[#58bc4480]] | 'source' |
| 1 | 4 | [[#58bc4480]] | 'extension_root' |
| 2 | 1 | [[#58bc4420]] | $element |
| 2 | 2 | [[#58bc4420]] | $row->element |
| 2 | 3 | [[#58bc4420]] | $element |
| 2 | 4 | [[#58bc4420]] | $element |
| 3 | 1 | [[#58bc4380]] | 'preflight' |
| 3 | 2 | [[#58bc4380]] | 'uninstall' |
| 3 | 3 | [[#58bc4380]] | 'preflight' |
| 3 | 4 | [[#58bc4380]] | 'uninstall' |
| 4 | 1 | [[#4c7984c0]] | preflight |
| 4 | 2 | [[#4c7984c0]] | uninstall |
| 4 | 3 | [[#4c7984c0]] | preflight |
| 4 | 4 | [[#4c7984c0]] | uninstall |
| 5 | 1 | [[#58bc4360]] | 'discover_install',$this |
| 5 | 2 | [[#58bc4360]] | $this |
| 5 | 3 | [[#58bc4360]] | 'install',$this |
| 5 | 4 | [[#58bc4360]] | $this |