-
Notifications
You must be signed in to change notification settings - Fork 5
/
file.script.php
47 lines (31 loc) · 1.16 KB
/
file.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
<?php
/**
* @version 3.15.0
* @package com_einsatzkomponente
* @copyright Copyright (C) 2017 by Ralf Meyer. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Ralf Meyer <[email protected]> - https://einsatzkomponente.de
*/
// No direct access
defined('_JEXEC') or die;
use Joomla\CMS\Factory;
class com_einsatzkomponenteInstallerScript {
public function install($parent) {
// $parent is the class calling this method
$parent->getParent()->setRedirectURL('index.php?option=com_einsatzkomponente&view=installation');
}
public function uninstall($parent) {
echo '<h1>Die Datenbanktabellen müssen Sie manuell löschen ...</h1>';
}
public function update($parent) {
// $parent is the class calling this method
$parent->getParent()->setRedirectURL('index.php?option=com_einsatzkomponente&view=installation');
}
function preflight( $type, $parent ) {
// abort if the release being installed is not newer than the currently installed version
if ( $type == 'update' ) :
endif;
}
public function postflight($type, $parent) {
}
}