|
Server : Apache System : Linux vps.urbanovitalino.adv.br 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 User : urbanovitalinoad ( 1001) PHP Version : 7.3.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/urbanovitalinoad/public_html/next/plugins/installer/folderinstaller/ |
Upload File : |
<?php
/**
* @package Joomla.Plugin
* @subpackage Installer.folderInstaller
*
* @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace
*/
use Joomla\CMS\Language\Text;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Plugin\PluginHelper;
/**
* FolderInstaller Plugin.
*
* @since 3.6.0
*/
class PlgInstallerFolderInstaller extends CMSPlugin
{
/**
* Application object.
*
* @var \Joomla\CMS\Application\CMSApplication
* @since 4.0.0
*/
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 = array();
$tab['name'] = 'folder';
$tab['label'] = Text::_('PLG_INSTALLER_FOLDERINSTALLER_TEXT');
// Render the input
ob_start();
include PluginHelper::getLayoutPath('installer', 'folderinstaller');
$tab['content'] = ob_get_clean();
return $tab;
}
}