Display a two-column file diff view for reuse comparison, matching the EnhancedReuser diff view structure.
More...
|
|
const | NAME = "reusediffview" |
| |
|
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 |
| |
Display a two-column file diff view for reuse comparison, matching the EnhancedReuser diff view structure.
Definition at line 29 of file ReuseFileDiffViewPlugin.php.
◆ generateDiff()
| Fossology\Reuser\ReuseFileDiffViewPlugin::generateDiff |
( |
|
$pfileA, |
|
|
|
$pfileB |
|
) |
| |
|
private |
Generate diff between two pfiles using system diff -u. Handles arbitrarily large files by delegating to C.
- Returns
- array diff lines
Definition at line 182 of file ReuseFileDiffViewPlugin.php.
◆ getClearingDecisionSets()
| Fossology\Reuser\ReuseFileDiffViewPlugin::getClearingDecisionSets |
( |
|
$pfileId, |
|
|
|
$uploadId |
|
) |
| |
|
private |
Get clearing-decision license sets for a pfile in a specific upload. Returns two arrays: user-added (type_fk=1 USER, removed=false/null) and user-removed (removed=true) from clearing events.
- Parameters
-
- Returns
- array [added[], removed[]]
Definition at line 364 of file ReuseFileDiffViewPlugin.php.
◆ getPfileData()
| Fossology\Reuser\ReuseFileDiffViewPlugin::getPfileData |
( |
|
$pfileId | ) |
|
|
private |
◆ getScannerFindings()
| Fossology\Reuser\ReuseFileDiffViewPlugin::getScannerFindings |
( |
|
$pfileId | ) |
|
|
private |
◆ handle()
| Fossology\Reuser\ReuseFileDiffViewPlugin::handle |
( |
Request |
$request | ) |
|
|
protected |
◆ parseUnifiedDiff()
| Fossology\Reuser\ReuseFileDiffViewPlugin::parseUnifiedDiff |
( |
array |
$diffLines, |
|
|
array |
$linesCurrent |
|
) |
| |
|
private |
Parse diff -u output into a complete per-line diff, filling in all unchanged lines from the current file content.
Definition at line 237 of file ReuseFileDiffViewPlugin.php.
The documentation for this class was generated from the following file: