JInstaller/copyManifest
From Joomla! Documentation
< API15:JInstallerRevision as of 13:31, 12 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)
Revision as of 13:31, 12 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)
The "API15" 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 edit link to red link >]
<! 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]
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 edit link to red link >] <! removed transcluded page call, red link never existed >
Examples[edit]
<CodeExamplesForm />