![]() |
FOSSology
4.7.1
Open Source License Compliance by Open Source Software
|
N-way file matching and link generation for multi-component comparison. More...
Go to the source code of this file.
Functions | |
| _mcIndexRemove (array &$idx, string $val, $key) | |
| Remove one key from a name-index bucket list (used by MakeMasterN). | |
| _mcFindBestMatch (array $child, array $pool, array &$byName, array &$byFuzzyExt, array &$byFuzzy) | |
| Hashmap-accelerated best-match (O(1) for stages 1, 2, 4; O(M) only for rare stage 3). More... | |
| MakeMasterN (array $ChildrenArrays) | |
| Build the master array for N file lists using hashmap-based O(M·N) matching. More... | |
| GetDiffLinkN (array $MasterRow, int $colIdx, int $agentPk, string $filter, string $pluginName, array $items, string $mode, int $baseline) | |
| Generate the navigation link for one cell in the multi-component table. More... | |
| FileListN (array &$Master, array $agentPks, string $filter, string $pluginName, array $items, string $mode, int $baseline) | |
| Attach linkurl to every cell in Master (N-way version of FileList()). More... | |
| Dir2BrowseDiffN (array $path, string $filter, int $colIdx, string $pluginName, array $items, string $mode, int $baseline) | |
| Render the folder/path breadcrumb banner for one column. More... | |
N-way file matching and link generation for multi-component comparison.
Definition in file common-multicompare.php.
| _mcFindBestMatch | ( | array | $child, |
| array | $pool, | ||
| array & | $byName, | ||
| array & | $byFuzzyExt, | ||
| array & | $byFuzzy | ||
| ) |
Hashmap-accelerated best-match (O(1) for stages 1, 2, 4; O(M) only for rare stage 3).
Definition at line 37 of file common-multicompare.php.
| Dir2BrowseDiffN | ( | array | $path, |
| string | $filter, | ||
| int | $colIdx, | ||
| string | $pluginName, | ||
| array | $items, | ||
| string | $mode, | ||
| int | $baseline | ||
| ) |
Render the folder/path breadcrumb banner for one column.
| array | $path | Dir2Path result for this column |
| string | $filter | Current filter |
| int | $colIdx | This column's index |
| string | $pluginName | Plugin name for URL building |
| array | $items | Current items (uploadtree_pk per column) |
| string | $mode | 'license'|'copyright'|'ecc' |
| int | $baseline | 0 or 1-based |
Definition at line 282 of file common-multicompare.php.
| FileListN | ( | array & | $Master, |
| array | $agentPks, | ||
| string | $filter, | ||
| string | $pluginName, | ||
| array | $items, | ||
| string | $mode, | ||
| int | $baseline | ||
| ) |
Attach linkurl to every cell in Master (N-way version of FileList()).
| array | $Master | Master rows (modified in place) |
| array | $agentPks | Agent pk per column (indexed by colIdx) |
| string | $filter | Current filter |
| string | $pluginName | Plugin name for URL building |
| array | $items | Current items (uploadtree_pk per column) |
| string | $mode | 'license'|'copyright'|'ecc' |
| int | $baseline | 0 or 1-based column index |
Definition at line 252 of file common-multicompare.php.
| GetDiffLinkN | ( | array | $MasterRow, |
| int | $colIdx, | ||
| int | $agentPk, | ||
| string | $filter, | ||
| string | $pluginName, | ||
| array | $items, | ||
| string | $mode, | ||
| int | $baseline | ||
| ) |
Generate the navigation link for one cell in the multi-component table.
| array | $MasterRow | Full master row (indexed by colIdx) |
| int | $colIdx | Column index of the cell being rendered |
| int | $agentPk | Agent pk for this column |
| string | $filter | Current filter value |
| string | $pluginName | Plugin name used for URL (e.g. 'multicompare') |
| array | $items | Current items array (uploadtree_pk per column) |
| string | $mode | 'license'|'copyright'|'ecc' |
| int | $baseline | 0 = none, 1-based column index |
Definition at line 176 of file common-multicompare.php.
| MakeMasterN | ( | array | $ChildrenArrays | ) |
Build the master array for N file lists using hashmap-based O(M·N) matching.
| array | $ChildrenArrays | Indexed array: $ChildrenArrays[$colIdx] = children list |
Definition at line 90 of file common-multicompare.php.