47 lines
1.2 KiB
PHP
47 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* @package Tabulizer
|
|
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
|
**/
|
|
|
|
defined('_JEXEC') or die('Restricted access');
|
|
|
|
if (!defined('DS')) define('DS',DIRECTORY_SEPARATOR);
|
|
|
|
/**
|
|
* Script file of Tabulizer component
|
|
*/
|
|
class com_tabulizerInstallerScript {
|
|
private $helper = null;
|
|
|
|
private function createHelper($path)
|
|
{
|
|
if (!$this->helper) {
|
|
$version = (version_compare(JVERSION, '3', 'l')) ? 'joomla2' : 'joomla3';
|
|
require_once($path.DIRECTORY_SEPARATOR.'install'.DIRECTORY_SEPARATOR.'install.helper.php');
|
|
$this->helper = new tabulizerInstallHelper();
|
|
}
|
|
}
|
|
|
|
function install($parent) {
|
|
$this->createHelper($parent->getParent()->getPath('extension_administrator'));
|
|
$this->helper->install($parent);
|
|
}
|
|
|
|
function update($parent) {
|
|
$this->createHelper($parent->getParent()->getPath('extension_administrator'));
|
|
$this->helper->update($parent);
|
|
}
|
|
|
|
function uninstall($parent) {
|
|
$this->createHelper($parent->getParent()->getPath('extension_administrator'));
|
|
$this->helper->uninstall($parent);
|
|
}
|
|
|
|
function postflight($type, $parent) {
|
|
$this->helper->postflight($type, $parent);
|
|
}
|
|
}
|
|
|
|
|
|
?>
|