primo commit
This commit is contained in:
47
administrator/components/com_tabulizer/script.php
Normal file
47
administrator/components/com_tabulizer/script.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user