-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscript.php
46 lines (37 loc) · 1.14 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
<?php
/**
* @package DD_SocialShare
*
* @author HR IT-Solutions Florian Häusler <[email protected]>
* @copyright Copyright (C) 2017 - 2019 HR-IT-Solutions GmbH
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
**/
defined('_JEXEC') or die();
class com_dd_gmaps_locationsInstallerScript
{
private $extensionName;
public function __construct()
{
$this->extensionName = JText::_('COM_DD_SOCIALSHARE');
}
function install($parent)
{
$parent->getParent()->setRedirectURL('index.php?option=com_dd_socialshare');
}
function uninstall($parent)
{
echo '<p>' . JText::sprintf('COM_DD_SOCIALSHARE_UNINSTALL_TEXT', $this->extensionName) . '</p>';
}
function update($parent)
{
echo '<p>' . JText::sprintf('COM_DD_SOCIALSHARE_UPDATE_TEXT', $this->extensionName) . '</p>';
}
function preflight($type, $parent)
{
echo '<p>' . JText::sprintf('COM_DD_SOCIALSHARE_PREFLIGHT_' . strtoupper($type) . '_TEXT', $this->extensionName) . '</p>';
}
function postflight($type, $parent)
{
echo '<p>' . JText::sprintf('COM_DD_SOCIALSHARE_POSTFLIGHT_' . strtoupper($type) . '_TEXT', $this->extensionName) . '</p>';
}
}