public function postflight($type, $installer)
 {
     global $installer_manifest, $installer_source;
     // Need to do this as Joomla 2.5 "protects" parent and manifest properties of the installer
     $source = $installer_source;
     $manifest = $installer_manifest;
     $extension_id = ComExtmanInstaller::getExtensionId(array('type' => 'component', 'element' => 'com_' . $this->component));
     $extension = KService::get('com://admin/extman.controller.extension')->add(array('source' => $source, 'manifest' => $manifest, 'joomla_extension_id' => $extension_id, 'event' => $type === 'update' ? 'update' : 'install'));
     echo KService::get('com://admin/extman.controller.extension')->id($extension->id)->event($type === 'update' ? 'update' : 'install')->layout('success')->display();
 }
 public function getExtensionId($extension)
 {
     return ComExtmanInstaller::getExtensionId($extension);
 }
Example #3
0
 public function getPluginId()
 {
     return ComExtmanInstaller::getExtensionId(array('type' => 'plugin', 'element' => 'logman', 'folder' => 'koowa'));
 }