Back to Installer class

Method copyManifest

public bool
copyManifest
(mixed $cid = 1)
Copies the installation manifest file to the extension folder in the given client
Parameters
  • int $cid Where to copy the installfile [optional: defaults to 1 (admin)]
Returns
  • bool True on success, False on error
Since
  • 3.1
Class: Installer
Project: Joomla

Method copyManifest - Source code

/**
 * Copies the installation manifest file to the extension folder in the given client
 *
 * @param   integer  $cid  Where to copy the installfile [optional: defaults to 1 (admin)]
 *
 * @return  boolean  True on success, False on error
 *
 * @since   3.1
 */
public function copyManifest($cid = 1)
{
    // Get the client info
    $client = ApplicationHelper::getClientInfo($cid);
    $path['src'] = $this->getPath('manifest');
    if ($client) {
        $pathname = 'extension_' . $client->name;
        $path['dest'] = $this->getPath($pathname) . '/' . basename($this->getPath('manifest'));
    } else {
        $pathname = 'extension_root';
        $path['dest'] = $this->getPath($pathname) . '/' . basename($this->getPath('manifest'));
    }
    return $this->copyFiles(array($path), true);
}