CloneSet54


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
25450.957statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
125132
libraries/joomla/installer/adapters/component.php
225830
libraries/joomla/installer/adapters/component.php
3251352
libraries/joomla/installer/adapters/component.php
425479
libraries/joomla/installer/adapters/module.php
Clone Instance
1
Line Count
25
Source Line
132
Source File
libraries/joomla/installer/adapters/component.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();


Clone Instance
2
Line Count
25
Source Line
830
Source File
libraries/joomla/installer/adapters/component.php

                /**
                 * ---------------------------------------------------------------------------------------------
                 * 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();


Clone Instance
3
Line Count
25
Source Line
1352
Source File
libraries/joomla/installer/adapters/component.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('discover_install', $this);
                $msg=  ob_get_contents(); // create msg object; first use here
                ob_end_clean();


Clone Instance
4
Line Count
25
Source Line
479
Source File
libraries/joomla/installer/adapters/module.php

                // 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();


Clone AbstractionParameter Count: 5Parameter Bindings

/**
                 * ---------------------------------------------------------------------------------------------
                 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58bc4480]]
'source' 
12[[#58bc4480]]
'source' 
13[[#58bc4480]]
'source' 
14[[#58bc4480]]
'extension_root' 
21[[#58bc4420]]
$element 
22[[#58bc4420]]
$row->element 
23[[#58bc4420]]
$element 
24[[#58bc4420]]
$element 
31[[#58bc4380]]
'preflight' 
32[[#58bc4380]]
'uninstall' 
33[[#58bc4380]]
'preflight' 
34[[#58bc4380]]
'uninstall' 
41[[#4c7984c0]]
preflight 
42[[#4c7984c0]]
uninstall 
43[[#4c7984c0]]
preflight 
44[[#4c7984c0]]
uninstall 
51[[#58bc4360]]
'discover_install',$this 
52[[#58bc4360]]
$this 
53[[#58bc4360]]
'install',$this 
54[[#58bc4360]]
$this