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 117 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 477 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 363 of file unifiedreport.php.
|
private |
Copyright or ecc table.
Section | $section | |
string | $title | |
array | $statementsCEI | |
array | $titleSubHeading | |
string | $text |
Definition at line 572 of file unifiedreport.php.
|
private |
Irrelevant files in report.
Section | $section | |
string | $title | |
array | $licensesIrre | |
array | $titleSubHeading |
Definition at line 619 of file unifiedreport.php.
|
private |
Generate global license table.
Section | $section | |
array | $mainLicenses | |
array | $titleSubHeading | |
$heading |
Definition at line 423 of file unifiedreport.php.
|
private |
License histogram into report.
Section | $section | |
array | $dataHistogram | |
array | $titleSubHeading | |
$heading |
Definition at line 657 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 521 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 275 of file unifiedreport.php.
|
private |
Update database with generated report path.
int | $uploadId | |
int | $jobId | |
string | $filename |
Definition at line 971 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 689 of file unifiedreport.php.
|
private |
BulkMatchesGetter object
Definition at line 163 of file unifiedreport.php.
|
private |
Copyright clearance object
Definition at line 132 of file unifiedreport.php.
|
private |
ECC clearance object
Definition at line 143 of file unifiedreport.php.
|
private |
File path column style attributes
Definition at line 237 of file unifiedreport.php.
|
private |
Definition at line 244 of file unifiedreport.php.
|
private |
IP clearance object
Definition at line 138 of file unifiedreport.php.
|
private |
LicenseClearedGetter object
Definition at line 122 of file unifiedreport.php.
|
private |
License column style attributes
Definition at line 222 of file unifiedreport.php.
|
private |
LicenseDNUGetter object
Definition at line 153 of file unifiedreport.php.
|
private |
licenseIrrelevantCommentGetter object
Definition at line 168 of file unifiedreport.php.
|
private |
LicenseIrrelevantGetter object
Definition at line 148 of file unifiedreport.php.
|
private |
LicenseMainGetter object
Definition at line 127 of file unifiedreport.php.
|
private |
LicenseNonFunctionalGetter object
Definition at line 158 of file unifiedreport.php.
|
private |
License column text style attributes
Definition at line 229 of file unifiedreport.php.
|
private |
obligationsGetter object
Definition at line 173 of file unifiedreport.php.
|
private |
otherGetter object
Definition at line 183 of file unifiedreport.php.
|
private |
ReportUtils object
Definition at line 178 of file unifiedreport.php.
|
private |
Row height for table
Definition at line 198 of file unifiedreport.php.
|
private |
Sub heading style attributes
Definition at line 214 of file unifiedreport.php.
|
private |
Table style attributes
Definition at line 203 of file unifiedreport.php.
|
private |
UploadDao object
Definition at line 188 of file unifiedreport.php.
|
private |
UserDao object
Definition at line 193 of file unifiedreport.php.