/**
  * method to run after an install/update/uninstall method
  *
  * @param   string      $type    Installation type (install, update, discover_install)
  * @param   JInstaller  $parent  Parent object
  *
  * @return void
  */
 function postflight($type, $parent)
 {
     // $parent is the class calling this method
     // $type is the type of change (install, update or discover_install)
     $status = new stdClass();
     $status->fof = '';
     $status->subextensions = '';
     if ($type != 'discover_install') {
         // Install subextensions
         $status->subextensions = BabioonInstallHelper::installSubextensions($parent, $this->installation_queue);
     }
     if (version_compare(JVERSION, '3.2.0', 'lt')) {
         $status->fof = BabioonInstallHelper::installFOF($parent);
     }
     $this->_renderPostInstallation($status, $parent);
 }
Esempio n. 2
0
 /**
  * method to run after an install/update/uninstall method
  *
  * @param   string      $type    Installation type (install, update, discover_install)
  * @param   JInstaller  $parent  Parent object
  *
  * @return void
  */
 function postflight($type, $parent)
 {
     // $parent is the class calling this method
     // $type is the type of change (install, update or discover_install)
     self::createAssets();
     // Install subextensions
     $status = BabioonInstallHelper::installSubextensions($parent, $this->installation_queue);
     $this->_renderPostInstallation($status, $parent);
 }