Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
28 | 3 | 1 | 0.957 | statement_sequence[12] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 30 | 48 | libraries/joomla/installer/adapters/component.php |
2 | 28 | 419 | libraries/joomla/installer/adapters/component.php |
3 | 28 | 1299 | libraries/joomla/installer/adapters/component.php |
| ||||
// Get the extension manifest object $manifest= &$this->parent->getManifest(); $this->manifest = &$manifest->document; /** * --------------------------------------------------------------------------------------------- * Manifest Document Setup Section * --------------------------------------------------------------------------------------------- */ // Set the extensions name $name= &$this->manifest->getElementByPath('name'); $element= strtolower('com_' . JFilterInput::clean($name->data(), 'cmd')); $name= $name->data(); $this->set('element', $element); $this->set('name', $name); // Get the component description $description= & $this->manifest->getElementByPath('description'); if ($description instanceof JSimpleXMLElement) { $this->parent->set('message', $description->data()); } else { $this->parent->set('message', ''); } // Get some important manifest elements $this->adminElement = &$this->manifest->getElementByPath('administration'); $this->installElement = &$this->manifest->getElementByPath('install'); $this->uninstallElement = &$this->manifest->getElementByPath('uninstall'); |
| ||||
// Get the extension manifest object $manifest= &$this->parent->getManifest(); $this->manifest = &$manifest->document; /** * --------------------------------------------------------------------------------------------- * Manifest Document Setup Section * --------------------------------------------------------------------------------------------- */ // Set the extensions name $name= &$this->manifest->getElementByPath('name'); $element= strtolower('com_' . JFilterInput::clean($name->data(), 'cmd')); $name= $name->data(); $this->set('element', $element); $this->set('name', $name); // Get the component description $description= & $this->manifest->getElementByPath('description'); if (is_a($description, 'JSimpleXMLElement')) { $this->parent->set('message', $description->data()); } else { $this->parent->set('message', ''); } // Get some important manifest elements $this->adminElement = &$this->manifest->getElementByPath('administration'); $this->installElement = &$this->manifest->getElementByPath('install'); $this->uninstallElement = &$this->manifest->getElementByPath('uninstall'); |
| ||||
// Get the extension manifest object $manifest= &$this->parent->getManifest(); $this->manifest = &$manifest->document; /** * --------------------------------------------------------------------------------------------- * Manifest Document Setup Section * --------------------------------------------------------------------------------------------- */ // Set the extensions name $name= &$this->manifest->getElementByPath('name'); $element= strtolower('com_' . JFilterInput::clean($name->data(), 'cmd')); $name= $name->data(); $this->set('element', $element); $this->set('name', $name); // Get the component description $description= & $this->manifest->getElementByPath('description'); if (is_a($description, 'JSimpleXMLElement')) { $this->parent->set('message', $description->data()); } else { $this->parent->set('message', ''); } // Get some important manifest elements $this->adminElement = &$this->manifest->getElementByPath('administration'); $this->installElement = &$this->manifest->getElementByPath('install'); $this->uninstallElement = &$this->manifest->getElementByPath('uninstall'); |
| |||
// Get the extension manifest object $manifest= &$this->parent->getManifest(); $this->manifest = &$manifest->document; /** * --------------------------------------------------------------------------------------------- * Manifest Document Setup Section * --------------------------------------------------------------------------------------------- */ // Set the extensions name $name= &$this->manifest->getElementByPath('name'); $element=strtolower('com_' . JFilterInput::clean($name->data(),'cmd')); $name=$name->data(); $this->set('element',$element); $this->set('name',$name); // Get the component description $description= &$this->manifest->getElementByPath('description'); if ( [[#variable58674dc0]]) { $this->parent->set('message',$description->data()); } else { $this->parent->set('message',''); } // Get some important manifest elements $this->adminElement = &$this->manifest->getElementByPath('administration'); $this->installElement = &$this->manifest->getElementByPath('install'); $this->uninstallElement = &$this->manifest->getElementByPath('uninstall'); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#58674dc0]] | is_a($description,'JSimpleXMLElement') |
1 | 2 | [[#58674dc0]] | $description instanceof JSimpleXMLElement |
1 | 3 | [[#58674dc0]] | is_a($description,'JSimpleXMLElement') |