FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
Fossology\Lib\Application\ObligationCsvExport Class Reference

Helper class to export obligations as a CSV. More...

Collaboration diagram for Fossology\Lib\Application\ObligationCsvExport:
Collaboration graph

Public Member Functions

 __construct (DbManager $dbManager)
 
 setDelimiter ($delimiter=',')
 Update the delimiter. More...
 
 setEnclosure ($enclosure='"')
 Update the enclosure. More...
 
 createCsv ($ob=0)
 Create CSV from the obligations. More...
 

Protected Attributes

 $dbManager
 
 $delimiter = ','
 
 $enclosure = '"'
 

Detailed Description

Helper class to export obligations as a CSV.

Definition at line 33 of file ObligationCsvExport.php.

Constructor & Destructor Documentation

Fossology\Lib\Application\ObligationCsvExport::__construct ( DbManager  $dbManager)

Constructor

Parameters
DbManager$dbManagerDbManager to be used.

Definition at line 49 of file ObligationCsvExport.php.

Member Function Documentation

Fossology\Lib\Application\ObligationCsvExport::createCsv (   $ob = 0)

Create CSV from the obligations.

Parameters
int$rfObligation id to be returned, else set 0 to get all.
Returns
string CSV

Definition at line 78 of file ObligationCsvExport.php.

Fossology\Lib\Application\ObligationCsvExport::setDelimiter (   $delimiter = ',')

Update the delimiter.

Parameters
string$delimiterNew delimiter to use.

Definition at line 59 of file ObligationCsvExport.php.

Fossology\Lib\Application\ObligationCsvExport::setEnclosure (   $enclosure = '"')

Update the enclosure.

Parameters
string$enclosureNew enclosure to use.

Definition at line 68 of file ObligationCsvExport.php.

Member Data Documentation

DbManager Fossology\Lib\Application\ObligationCsvExport::$dbManager
protected

DB manager to be used

Definition at line 37 of file ObligationCsvExport.php.

string Fossology\Lib\Application\ObligationCsvExport::$delimiter = ','
protected

Delimiter used in the CSV

Definition at line 40 of file ObligationCsvExport.php.

string Fossology\Lib\Application\ObligationCsvExport::$enclosure = '"'
protected

Ecnlosure used in the CSV

Definition at line 43 of file ObligationCsvExport.php.


The documentation for this class was generated from the following file: