minimumJoomla = '4.0'; $this->minimumPhp = JOOMLA_MINIMUM_PHP; $this->deleteFiles = array( '/administrator/components/com_patchtester/PatchTester/View/Pulls/tmpl/default_errors.php', ); $this->deleteFolders = array( '/administrator/components/com_patchtester/PatchTester/Table', '/components/com_patchtester', ); } /** * Function to perform changes during postflight * * @param string $type The action being performed * @param ComponentAdapter $parent The class calling this method * * @return void * * @since 3.0.0 */ public function postflight($type, $parent) { if ($type == 'install') { $language = JFactory::getLanguage(); $language->load('com_patchtester', JPATH_ADMINISTRATOR, null, true); $language->load('com_patchtester', JPATH_SITE, null, true); echo '

' . Text::_('COM_PATCHTESTER') . '

'; echo '

' . Text::_('COM_PATCHTESTER_XML_DESCRIPTION') . '

'; echo '

' . Text::_('COM_PATCHTESTER_GOTO') . ' ' . Text::_('COM_PATCHTESTER') . '

'; echo '

' . Text::_('COM_PATCHTESTER_GOTO') . ' ' . Text::_('COM_PATCHTESTER_OPTIONS') . '

'; } if ($type == 'uninstall') { $language = JFactory::getLanguage(); $language->load('com_patchtester', JPATH_ADMINISTRATOR, null, true); $language->load('com_patchtester', JPATH_SITE, null, true); echo '

' . Text::_('COM_PATCHTESTER') . '

'; echo '

' . Text::_('COM_PATCHTESTER_UNINSTALL_THANK_YOU') . '

'; } } }