-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.php
52 lines (47 loc) · 1.09 KB
/
script.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* @version 1.0.2
* @package plg_user_hibp
* @author Simon Champion
* @copyright Simon Champion
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*/
defined('_JEXEC') or die;
use Joomla\CMS\Installer\InstallerScript;
/**
* Installation class to perform additional changes during install/uninstall/update
*
* @since 1.0.2
*/
class plgUserHibpInstallerScript extends InstallerScript
{
/**
* Extension script constructor.
*
* @since 1.0.2
*/
public function __construct()
{
// Define the minumum versions to be supported.
$this->minimumJoomla = '3.8';
$this->minimumPhp = '5.6';
$this->deleteFiles = array(
'/administrator/language/en-GB/en-GB.plg_user_hibp.ini',
'/administrator/language/en-GB/en-GB.plg_user_hibp.sys.ini',
);
}
/**
* Function to perform changes during postflight
*
* @param string $type The action being performed
* @param ComponentAdapter $parent The class calling this method
*
* @return void
*
* @since 1.0.2
*/
public function postflight($type, $parent)
{
$this->removeFiles();
}
}