Exemple #1
0
 public function postflight($type, $parent)
 {
     if (parent::postflight($type, $parent)) {
         JLoader::import('joomla.filesystem.file');
         JFile::move('com_redmigrator.xml', 'redmigrator.xml', JPATH_ADMINISTRATOR . '/components/com_redmigrator');
         return true;
     }
     return false;
 }
Exemple #2
0
 /**
  * method to uninstall the component
  *
  * @param   object  $parent  class calling this method
  *
  * @return void
  */
 public function uninstall($parent)
 {
     // Uninstall extensions
     $this->com_uninstall();
     parent::uninstall($parent);
 }