API16:JInstaller/copyManifest
From Joomla! Documentation
Description
Copies the installation manifest file to the extension folder in the given client
<! removed transcluded page call, red link never existed >
Syntax
copyManifest($cid=1)
| Parameter Name | Default Value | Description |
|---|---|---|
| $cid | 1 | $cid Where to copy the installfile [optional: defaults to 1 (admin)] |
Returns
boolean True on success, False on error
Defined in
libraries/joomla/installer/installer.php
Importing
jimport( 'joomla.installer.installer' );
Source Body
public function copyManifest($cid=1)
{
// Get the client info
jimport('joomla.application.helper');
$client = &JApplicationHelper::getClientInfo($cid);
$path['src'] = $this->getPath('manifest');
if ($client)
{
$pathname = 'extension_'.$client->name;
$path['dest'] = $this->getPath($pathname).DS.basename($this->getPath('manifest'));
}
else
{
$pathname = 'extension_root';
$path['dest'] = $this->getPath($pathname).DS.basename($this->getPath('manifest'));
}
return $this->copyFiles(array ($path), true);
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples