JInstaller/copyManifest
From Joomla! Documentation
< API16:JInstaller
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Copies the installation manifest file to the extension folder in the given client
<! removed transcluded page call, red link never existed >
Syntax[edit]
copyManifest($cid=1)
Parameter Name | Default Value | Description |
---|---|---|
$cid | 1 | $cid Where to copy the installfile [optional: defaults to 1 (admin)] |
Returns[edit]
boolean True on success, False on error
Defined in[edit]
libraries/joomla/installer/installer.php
Importing[edit]
jimport( 'joomla.installer.installer' );
Source Body[edit]
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[edit]
Code Examples[edit]