Upload a file from the users computer using the UI.
More...
|
const | NAME = "admin_license_from_csv" |
|
const | KEY_UPLOAD_MAX_FILESIZE = 'upload_max_filesize' |
|
const | FILE_INPUT_NAME = 'file_input' |
|
const | FILE_INPUT_NAME_V2 = 'fileInput' |
|
const | PERMISSION = "permission" |
|
const | REQUIRES_LOGIN = "requiresLogin" |
|
const | ENABLE_MENU = "ENABLE_MENU" |
|
const | LEVEL = "level" |
|
const | DEPENDENCIES = "dependencies" |
|
const | INIT_ORDER = "initOrder" |
|
const | MENU_LIST = "menuList" |
|
const | MENU_ORDER = "menuOrder" |
|
const | MENU_TARGET = "menuTarget" |
|
const | TITLE = "title" |
|
| $fileLogger |
|
|
| $container |
|
| $renderer |
|
| $microMenu |
|
Upload a file from the users computer using the UI.
Definition at line 26 of file AdminLicenseFromCSV.php.
◆ checkLicenseDBHealth()
Fossology\UI\Page\AdminLicenseFromCSV::checkLicenseDBHealth |
( |
| ) |
|
Checks the health status of the license database by sending a GET request to a specified health endpoint. Returns a boolean result indicating whether the database is reachable and healthy. Implements error handling for HTTP request failures.
- Returns
- bool True if the database health check succeeds with an HTTP 200 response, false otherwise.
Definition at line 185 of file AdminLicenseFromCSV.php.
◆ getFileInputName()
Fossology\UI\Page\AdminLicenseFromCSV::getFileInputName |
( |
|
$apiVersion = ApiVersion::V1 | ) |
|
◆ handle()
Fossology\UI\Page\AdminLicenseFromCSV::handle |
( |
Request |
$request | ) |
|
|
protected |
◆ handleFileUpload()
Fossology\UI\Page\AdminLicenseFromCSV::handleFileUpload |
( |
|
$uploadedFile, |
|
|
|
$delimiter = ',' , |
|
|
|
$enclosure = '"' |
|
) |
| |
◆ handleLicenseDbImport()
Fossology\UI\Page\AdminLicenseFromCSV::handleLicenseDbImport |
( |
| ) |
|
Handles the import of license data from a database by sending a GET request to a specified URL, decoding the retrieved JSON response, and passing the data to the CSV import logic. Provides appropriate error handling for HTTP request failures and JSON decoding errors.
- Returns
- string A message indicating the result of the operation, including error messages if applicable.
Definition at line 124 of file AdminLicenseFromCSV.php.
The documentation for this class was generated from the following file: