FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Helper class to export license list as a CSV from the DB. More...
Public Member Functions | |
__construct (DbManager $dbManager) | |
setDelimiter ($delimiter=',') | |
Update the delimiter. More... | |
setEnclosure ($enclosure='"') | |
Update the enclosure. More... | |
createCsv ($rf=0, $allCandidates=false, $generateJson=false) | |
Create the CSV from the DB. More... | |
Protected Attributes | |
$dbManager | |
$delimiter = ',' | |
$enclosure = '"' | |
Helper class to export license list as a CSV from the DB.
Definition at line 24 of file LicenseCsvExport.php.
Fossology\Lib\Application\LicenseCsvExport::__construct | ( | DbManager | $dbManager | ) |
Constructor
DbManager | $dbManager | DB manager to use. |
Definition at line 40 of file LicenseCsvExport.php.
Fossology\Lib\Application\LicenseCsvExport::createCsv | ( | $rf = 0 , |
|
$allCandidates = false , |
|||
$generateJson = false |
|||
) |
Create the CSV from the DB.
int | $rf | Set the license ID to get only one license, set 0 to get all |
Definition at line 68 of file LicenseCsvExport.php.
Fossology\Lib\Application\LicenseCsvExport::setDelimiter | ( | $delimiter = ',' | ) |
Update the delimiter.
string | $delimiter | New delimiter to use. |
Definition at line 49 of file LicenseCsvExport.php.
Fossology\Lib\Application\LicenseCsvExport::setEnclosure | ( | $enclosure = '"' | ) |
Update the enclosure.
string | $enclosure | New enclosure to use. |
Definition at line 58 of file LicenseCsvExport.php.
|
protected |
DB manager in use
Definition at line 28 of file LicenseCsvExport.php.
|
protected |
Delimiter for CSV
Definition at line 31 of file LicenseCsvExport.php.
|
protected |
Enclosure for CSV strings
Definition at line 34 of file LicenseCsvExport.php.