protected function copyBaseFiles()
{
if ($this->parent->parseFiles($this->getManifest()->files, -1) === false) {
throw new \RuntimeException(Text::sprintf('JLIB_INSTALLER_ABORT_TPL_INSTALL_COPY_FILES', 'files'));
}
if ($this->parent->parseFiles($this->getManifest()->images, -1) === false) {
throw new \RuntimeException(Text::sprintf('JLIB_INSTALLER_ABORT_TPL_INSTALL_COPY_FILES', 'images'));
}
if ($this->parent->parseFiles($this->getManifest()->css, -1) === false) {
throw new \RuntimeException(Text::sprintf('JLIB_INSTALLER_ABORT_TPL_INSTALL_COPY_FILES', 'css'));
}
if ($this->manifest_script) {
$path['src'] = $this->parent->getPath('source') . '/' . $this->manifest_script;
$path['dest'] = $this->parent->getPath('extension_root') . '/' . $this->manifest_script;
if ($this->parent->isOverwrite() || !file_exists($path['dest'])) {
if (!$this->parent->copyFiles(array($path))) {
throw new \RuntimeException(Text::sprintf('JLIB_INSTALLER_ABORT_MANIFEST', Text::_('JLIB_INSTALLER_' . strtoupper($this->getRoute()))));
}
}
}
}