mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-12 17:49:28 +00:00
023e0fc934
- Renamed uploadExtension to installExtension in application/controllers/system/extensions/CLI_Manager.php - Adapted controller system/extensions/Manager.php to use FHC_Controller functionalities - Changed controller system/extensions/Manager->uploadExtension to get parameters from HTTP post and HTTP file - Changed view system/extensions/manager.php to use templates/FHC-Header, ajaxlib, tablewidget, phrases and the CI upload library - Added new column type array to application/widgets/TableWidget.php - Added new type boolean to the public/js/AjaxLib.js result when checked by the hasData method - Added new JS public/js/ExtensionsManager.js that contains the extensions manager JS - Added new view system/extensions/tableWidget.php to display the extensions manager TableWidget
39 lines
996 B
PHP
39 lines
996 B
PHP
<?php
|
|
|
|
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/**
|
|
*
|
|
*/
|
|
class CLI_Manager extends CLI_Controller
|
|
{
|
|
/**
|
|
*
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
// Load helpers to upload files
|
|
$this->load->helper('form');
|
|
|
|
// Loads the extensions library
|
|
$this->load->library('ExtensionsLib');
|
|
}
|
|
|
|
/**
|
|
* Installiert eine Extension.
|
|
* Es wird davon ausgegangen, dass die Extension ueber einen Fileupload hochgeladen wird.
|
|
* alternativ kann hier auch der Name und Filename uebergeben werden um die installation ueber
|
|
* die Commandline ohne Upload durchzufuehren.
|
|
* @param $extensioName string Name der Extension
|
|
* @param $filename Url Encoded Pfad zum tgz File der Extension
|
|
* @param $perform_sql boolean ob die SQL Befehle ausgeführt werden
|
|
*/
|
|
public function installExtension($extensionName, $filename, $perform_sql = true)
|
|
{
|
|
$this->extensionslib->installExtension($extensionName, urldecode($filename), $perform_sql);
|
|
}
|
|
}
|
|
|