- md5
- 7310f3890d491c11777263c13cd5cbbd
- sha1
- 888b3de4e447b9ef68abc7baccf6614b3244ecfe
- sha256
- 5d8c5de0ebb4635e63fe8e2331d4c077c8db5e33db6eae962af85f80b404ae39
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
<?php
/**
* @package Joomla.Plugin
* @subpackage Installer.packageinstaller
*
* @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Plugin\Installer\Package\Extension;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Plugin\PluginHelper;
// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects
/**
* PackageInstaller Plugin.
*
* @since 3.6.0
*/
final class PackageInstaller extends CMSPlugin
{
/**
* Application object
*
* @var \Joomla\CMS\Application\CMSApplication
* @since 4.0.0
* @deprecated 6.0 Is needed for template overrides, use getApplication instead
*/
protected $app;
/**
* Textfield or Form of the Plugin.
*
* @return array Returns an array with the tab information
*
* @since 3.6.0
*/
public function onInstallerAddInstallationTab()
{
// Load language files
$this->loadLanguage();
$tab = [];
$tab['name'] = 'package';
$tab['label'] = $this->getApplication()->getLanguage()->_('PLG_INSTALLER_PACKAGEINSTALLER_UPLOAD_PACKAGE_FILE');
// Render the input
ob_start();
include PluginHelper::getLayoutPath('installer', 'packageinstaller');
$tab['content'] = ob_get_clean();
return $tab;
}
}
The same content is in 41 releases, Joomla 4.4.0-alpha1 to 5.0.0-alpha4. See them all, or every version of this file.