mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-21 08:52:21 +00:00
- Added new phrases fot the extension manager
- 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
This commit is contained in:
@@ -381,6 +381,19 @@ class TableWidget extends Widget
|
||||
{
|
||||
$rawDatasetRow->{$columnName} = ($columnValue === true ? 'true' : 'false');
|
||||
}
|
||||
// if it is an array
|
||||
elseif (is_array($columnValue))
|
||||
{
|
||||
// Default is an empty string
|
||||
$rawDatasetRow->{$columnName} = '';
|
||||
|
||||
// For each element of the array
|
||||
foreach ($columnValue as $value)
|
||||
{
|
||||
$rawDatasetRow->{$columnName} .= $value."\n"; // concatenate each element of the array
|
||||
}
|
||||
}
|
||||
// if it is a date/timestamp
|
||||
elseif (DateTime::createFromFormat('Y-m-d H:i:s', $columnValue) !== false)
|
||||
{
|
||||
$rawDatasetRow->{$columnName} = date(self::DEFAULT_DATE_FORMAT, strtotime($columnValue));
|
||||
|
||||
Reference in New Issue
Block a user