@my wife Roline van der Merwe @copyright Copyright (C) 2015. All Rights Reserved @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html Builds Complex Joomla Components /-----------------------------------------------------------------------------------------------------------------------------*/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); ?> ###BOM### // No direct access to this file defined('_JEXEC') or die('Restricted access'); JHTML::_('behavior.modal'); jimport('joomla.installer.installer'); jimport('joomla.installer.helper'); /** * Script File of ###Component### Component */ class com_###component###InstallerScript { /** * method to install the component * * @return void */ function install($parent) { } /** * method to uninstall the component * * @return void */ function uninstall($parent) {###UNINSTALLSCRIPT### // little notice as after service, in case of bad experience with component. echo '

Did something go wrong? Are you disappointed?

Please let me know at ###AUTHOREMAIL###.
We at ###COMPANYNAME### are committed to building extensions that performs proficiently! You can help us, really!
Send me your thoughts on improvements that is needed, trust me, I will be very grateful!
Visit us at ###AUTHORWEBSITE### today!

'; } /** * method to update the component * * @return void */ function update($parent) { } /** * method to run before an install/update/uninstall method * * @return void */ function preflight($type, $parent) { // get application $app = JFactory::getApplication(); // is redundant ...hmmm if ($type == 'uninstall') { return true; } // the default for both install and update $jversion = new JVersion(); if (!$jversion->isCompatible('3.6.0')) { $app->enqueueMessage('Please upgrade to at least Joomla! 3.6.0 before continuing!', 'error'); return false; } // do any updates needed if ($type == 'update') {###PREUPDATESCRIPT### } // do any install needed if ($type == 'install') {###PREINSTALLSCRIPT### } } /** * method to run after an install/update/uninstall method * * @return void */ function postflight($type, $parent) { // get application $app = JFactory::getApplication();###MOVEFOLDERSSCRIPT### // set the default component settings if ($type == 'install') {###POSTINSTALLSCRIPT### } // do any updates needed if ($type == 'update') {###POSTUPDATESCRIPT### } }###MOVEFOLDERSMETHOD### }