This repository has been archived by the owner on Jul 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathscript.php
63 lines (59 loc) · 1.7 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
53
54
55
56
57
58
59
60
61
62
63
<?php
/**
* Tweet Display Back Module for Joomla!
*
* @copyright Copyright (C) 2010-2016 Michael Babker. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License Version 2 or Later
*/
/**
* Class to handle additional work during installation routine
*
* @since 3.0
*/
class Mod_TweetDisplayBackInstallerScript extends JInstallerScript
{
/**
* Constructor
*
* @since 4.0
*/
public function __construct()
{
$this->minimumJoomla = '3.6';
$this->minimumPhp = '5.4';
$this->deleteFiles = [
'/language/en-GB/en-GB.mod_tweetdisplayback.ini',
'/language/en-GB/en-GB.mod_tweetdisplayback.sys.ini',
'/media/mod_tweetdisplayback/css/bootstrap.css',
'/media/mod_tweetdisplayback/css/construct.css',
'/media/mod_tweetdisplayback/css/nostyle.css',
'/modules/mod_tweetdisplayback/compat.php',
'/modules/mod_tweetdisplayback/curl.php',
'/modules/mod_tweetdisplayback/curl_25.php',
'/modules/mod_tweetdisplayback/tmpl/bootstrap.php',
'/modules/mod_tweetdisplayback/tmpl/construct.php',
'/modules/mod_tweetdisplayback/tmpl/nostyle.php',
'/modules/mod_tweetdisplayback/tmpl/w_list.php',
'/modules/mod_tweetdisplayback/tmpl/w_profile.php',
'/modules/mod_tweetdisplayback/tmpl/w_search.php',
];
$this->deleteFolders = [
'/modules/mod_tweetdisplayback/libraries/http',
'/modules/mod_tweetdisplayback/media',
];
}
/**
* Function to perform changes during updates
*
* @param JInstallerAdapterModule $parent The class calling this method
*
* @return void
*
* @since 3.0
*/
public function update(JInstallerAdapterModule $parent)
{
// Remove files deleted between versions
$this->removeFiles();
}
}