FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Generates unified report. More...
Public Member Functions | |
processUploadId ($uploadId) | |
Given an upload ID, process the items in it. More... | |
Public Member Functions inherited from Fossology\Lib\Agent\Agent | |
__construct ($agentName, $version, $revision) | |
scheduler_connect () | |
Connect with scheduler and initialize options. More... | |
heartbeat ($newProcessed) | |
Send hear beat to the scheduler. More... | |
bail ($exitvalue) | |
Bail the agent, print the stack and disconnect from scheduler. More... | |
scheduler_disconnect ($exitvalue) | |
Closes connection from scheduler. More... | |
scheduler_greet () | |
Greet the scheduler at the beginning of connection. More... | |
initArsTable () | |
Initialize ARS table. | |
run_scheduler_event_loop () | |
Runs a loop to read commands from scheduler and process them. More... | |
Private Member Functions | |
documentSettingsAndStyles (PhpWord &$phpWord, $timestamp, $userName) | |
Setting default heading styles and paragraph styles. More... | |
globalLicenseTable (Section $section, $mainLicenses, $titleSubHeading, $heading) | |
Generate global license table. More... | |
bulkLicenseTable (Section $section, $title, $licenses, $titleSubHeading) | |
This function lists out the bulk licenses, comments of identified licenses. More... | |
licensesTable (Section $section, $title, $licenses, $riskarray, $titleSubHeading) | |
This function lists out the red, white & yellow licenses. More... | |
getRowsAndColumnsForCEI (Section $section, $title, $statementsCEI, $titleSubHeading, $text="") | |
Copyright or ecc table. More... | |
getRowsAndColumnsForIrre (Section $section, $title, $licensesIrre, $titleSubHeading) | |
Irrelevant files in report. More... | |
licenseHistogram (Section $section, $dataHistogram, $titleSubHeading, $heading) | |
License histogram into report. More... | |
writeReport ($contents, $uploadId, $groupId, $userId) | |
Writes the report to a file. More... | |
updateReportTable ($uploadId, $jobId, $filename) | |
Update database with generated report path. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Fossology\Lib\Agent\Agent | |
static | heartbeat_handler ($signo) |
Function to handle hear beats from the agent and send them to the scheduler from STDOUT. More... | |
Protected Attributes inherited from Fossology\Lib\Agent\Agent | |
$userId | |
$groupId | |
$jobId | |
$agentSpecifOptions = "" | |
$agentSpecifLongOptions = array() | |
$args = array() | |
$dbManager | |
$agentDao | |
$container | |
$schedulerMode | |
Generates unified report.
Definition at line 116 of file unifiedreport.php.
|
private |
This function lists out the bulk licenses, comments of identified licenses.
Section | $section | |
string | $title | |
array | $licenses | |
array | $titleSubHeading |
Definition at line 470 of file unifiedreport.php.
|
private |
Setting default heading styles and paragraph styles.
[in,out] | PhpWord | &$phpWord | PhpWord object |
int | $timestamp | Report gen timestamp | |
string | $userName | User generating the report |
Definition at line 356 of file unifiedreport.php.
|
private |
Copyright or ecc table.
Section | $section | |
string | $title | |
array | $statementsCEI | |
array | $titleSubHeading | |
string | $text |
Definition at line 565 of file unifiedreport.php.
|
private |
Irrelevant files in report.
Section | $section | |
string | $title | |
array | $licensesIrre | |
array | $titleSubHeading |
Definition at line 612 of file unifiedreport.php.
|
private |
Generate global license table.
Section | $section | |
array | $mainLicenses | |
array | $titleSubHeading | |
$heading |
Definition at line 416 of file unifiedreport.php.
|
private |
License histogram into report.
Section | $section | |
array | $dataHistogram | |
array | $titleSubHeading | |
$heading |
Definition at line 650 of file unifiedreport.php.
|
private |
This function lists out the red, white & yellow licenses.
Section | $section | |
string | $title | |
array | $licenses | |
array | $riskarray | |
array | $titleSubHeading |
Definition at line 514 of file unifiedreport.php.
UnifiedReport::processUploadId | ( | $uploadId | ) |
Given an upload ID, process the items in it.
This function is implemented by agent and should call heartbeat() at regular intervals.
int | $uploadId | Upload to be processed by the agent. |
Reimplemented from Fossology\Lib\Agent\Agent.
Definition at line 268 of file unifiedreport.php.
|
private |
Update database with generated report path.
int | $uploadId | |
int | $jobId | |
string | $filename |
Definition at line 964 of file unifiedreport.php.
|
private |
Writes the report to a file.
The file name is of format <packageName>_clearing_report_<D_M_d_m_Y_h_i_s>.docx
.
The docx format used is Word2007.
array | $contents | |
int | $uploadId | |
int | $groupId | |
int | $userId |
Definition at line 682 of file unifiedreport.php.
|
private |
BulkMatchesGetter object
Definition at line 162 of file unifiedreport.php.
|
private |
Copyright clearance object
Definition at line 131 of file unifiedreport.php.
|
private |
ECC clearance object
Definition at line 142 of file unifiedreport.php.
|
private |
File path column style attributes
Definition at line 231 of file unifiedreport.php.
|
private |
Definition at line 238 of file unifiedreport.php.
|
private |
IP clearance object
Definition at line 137 of file unifiedreport.php.
|
private |
LicenseClearedGetter object
Definition at line 121 of file unifiedreport.php.
|
private |
License column style attributes
Definition at line 216 of file unifiedreport.php.
|
private |
LicenseDNUGetter object
Definition at line 152 of file unifiedreport.php.
|
private |
licenseIrrelevantCommentGetter object
Definition at line 167 of file unifiedreport.php.
|
private |
LicenseIrrelevantGetter object
Definition at line 147 of file unifiedreport.php.
|
private |
LicenseMainGetter object
Definition at line 126 of file unifiedreport.php.
|
private |
LicenseNonFunctionalGetter object
Definition at line 157 of file unifiedreport.php.
|
private |
License column text style attributes
Definition at line 223 of file unifiedreport.php.
|
private |
obligationsGetter object
Definition at line 172 of file unifiedreport.php.
|
private |
otherGetter object
Definition at line 177 of file unifiedreport.php.
|
private |
Row height for table
Definition at line 192 of file unifiedreport.php.
|
private |
Sub heading style attributes
Definition at line 208 of file unifiedreport.php.
|
private |
Table style attributes
Definition at line 197 of file unifiedreport.php.
|
private |
UploadDao object
Definition at line 182 of file unifiedreport.php.
|
private |
UserDao object
Definition at line 187 of file unifiedreport.php.