|
| __construct () |
| base constructor. Most plugins will just use this More...
|
|
| setDelimiter ($delimiter=',') |
|
| setEnclosure ($enclosure='"') |
|
| RegisterMenus () |
| Customize submenus.
|
|
| getAgentPksFromRequest ($upload_pk) |
|
| getTemplateName () |
|
| Output () |
| This function returns the scheduler status.
|
|
| getCopyrights ($uploadId, $uploadtree_pk, $uploadTreeTableName, $NomostListNum, $exclude, $copyrightType="all") |
|
| Install () |
| This function (when defined) is only called when the plugin is first installed. It should make sure all requirements are available and create anything it needs to run. It returns 0 on success, non-zero on failure. A failed install is not inserted in the system. More...
|
|
| Remove () |
| This function (when defined) is only called once, when the plugin is removed. It should uninstall and remove all items that are only used by this plugin. There should be no residues – if the plugin is ever installed again, it should act like a clean install. Thus, any DB, files, or state variables specific to this plugin must be removed. This function must always succeed.
|
|
| Initialize () |
| dummy stub till all references are removed.
|
|
| PostInitialize () |
| This function is called before the plugin is used and after all plugins have been initialized. If there is any initialization step that is dependent on other plugins, put it here. More...
|
|
| Destroy () |
| This is a destructor called after the plugin is no longer needed. It should assume that PostInitialize() was already run one time (this session) and succeeded. This function must always succeed.
|
|
| OutputOpen () |
| This function is called when user output is requested. This function is responsible for assigning headers.
|
|
| OutputUnSet () |
| Similar to OutputClose, this ends the output type for this object. However, this does NOT change any global settings. This is called when this object is a dependency for another object.
|
|
| getResponse () |
|
| renderString ($templateName, $vars=null) |
|
| renderScripts ($scripts) |
| Render JavaScript in the template's footer. More...
|
|
| getRequest () |
|
| execute () |
|
| preInstall () |
|
| postInstall () |
|
| unInstall () |
|
| getName () |
|
| __toString () |
|
|
| updateCopyrightList (&$list, $newCopyrights, $NomostListNum, $uploadTreeTableName, $key) |
|
| removeCopyrightWithLicense (&$lines, $itemTreeBounds, $agentList, $exclude) |
|
| consolidateConclusions ($conclusions) |
|
| removeIfKeyExists (&$lines, $key) |
|
| printLines ($lines, $copyright=false) |
|
| consolidateResult ($lines) |
|
| consolidateFindingsPerDirectory ($lines) |
|
| printCSV ($lines, $uploadtreeTablename, $copyright=false) |
|
| printSpreadsheet ($lines, $uploadtreeTablename) |
|
| reduceCopyrightLines ($lines) |
|
Print the founded and concluded license or copyrights as a list or CSV.
Definition at line 32 of file ui-export-list.php.
◆ __construct()
UIExportList::__construct |
( |
| ) |
|
base constructor. Most plugins will just use this
Makes sure the plugin is in the correct state. If so, the plugin is inserted into the Plugins data structure.
The constructor assumes that Install() was already run one time (possibly years ago and not during this object's creation).
- Returns
- true on success, false on failure.
On failure the plugin is not used by the system. NOTE: This function must NOT assume that other plugins are installed. See PostInitialize.
Reimplemented from FO_Plugin.
Definition at line 66 of file ui-export-list.php.
◆ consolidateConclusions()
UIExportList::consolidateConclusions |
( |
|
$conclusions | ) |
|
|
private |
Reduce the 2D list of conclusions on a file to a linear array
- Parameters
-
array | $conclusions | 2D array of conclusions |
- Returns
- array List of unique conclusions on the file
Definition at line 494 of file ui-export-list.php.
◆ consolidateFindingsPerDirectory()
UIExportList::consolidateFindingsPerDirectory |
( |
|
$lines | ) |
|
|
private |
Remove basename from filePath and reduce lines that has same result.
- Parameters
-
array | $lines | License and results per file |
- Returns
- array Lines by directories without duplicated result
Definition at line 599 of file ui-export-list.php.
◆ consolidateResult()
UIExportList::consolidateResult |
( |
|
$lines | ) |
|
|
private |
Reduce license findings from agents into one
- Parameters
-
array | $lines | Scanned results of agents and conclusions |
- Returns
- array Lines with consolidated license list
Definition at line 554 of file ui-export-list.php.
◆ getAgentPksFromRequest()
UIExportList::getAgentPksFromRequest |
( |
|
$upload_pk | ) |
|
Get the agent IDs for requested agents.
- Parameters
-
integer | $upload_pk | Current upload id |
- Returns
- array Array with agent name as key and agent id if found or false as value.
Definition at line 139 of file ui-export-list.php.
◆ getCopyrights()
UIExportList::getCopyrights |
( |
|
$uploadId, |
|
|
|
$uploadtree_pk, |
|
|
|
$uploadTreeTableName, |
|
|
|
$NomostListNum, |
|
|
|
$exclude, |
|
|
|
$copyrightType = "all" |
|
) |
| |
Get the list of copyrights
- Parameters
-
integer | $uploadId | Upload ID |
integer | $uploadtree_pk | Item ID |
integer | $uploadTreeTableName | Upload tree table name |
integer | $NomostListNum | Limit of lines to print |
integer | $exclude | Files to be excluded |
string | $copyrightType | Which copyrights to print ("all" to print everything, "nolic" to print only files with no scanner findings and no license as conclusion) |
- Returns
- array List of copyrights with
filePath
and content
Definition at line 374 of file ui-export-list.php.
◆ getTemplateName()
UIExportList::getTemplateName |
( |
| ) |
|
◆ printCSV()
UIExportList::printCSV |
( |
|
$lines, |
|
|
|
$uploadtreeTablename, |
|
|
|
$copyright = false |
|
) |
| |
|
private |
Print the lines as CSV
- Parameters
-
array | $lines | Lines to be printed |
string | $uploadtreeTablename | Upload tree table name |
boolean | $copyright | Results are copyright? |
- Returns
- Response CSV file as a response
Definition at line 636 of file ui-export-list.php.
◆ printLines()
UIExportList::printLines |
( |
|
$lines, |
|
|
|
$copyright = false |
|
) |
| |
|
private |
Print the lines for browser
- Parameters
-
array | $lines | Lines to be printed |
boolean | $copyright | Results are copyright? |
- Returns
- string
Definition at line 527 of file ui-export-list.php.
◆ printSpreadsheet()
UIExportList::printSpreadsheet |
( |
|
$lines, |
|
|
|
$uploadtreeTablename |
|
) |
| |
|
private |
Print the lines as spreadsheet
- Parameters
-
array | $lines | Lines to be printed |
string | $uploadtreeTablename | Upload tree table name |
- Returns
- Response spreadsheet(xlsx) file as a response
Definition at line 695 of file ui-export-list.php.
◆ reduceCopyrightLines()
UIExportList::reduceCopyrightLines |
( |
|
$lines | ) |
|
|
private |
Reduce multidimentional copyright list to simple 2D array
- Parameters
-
array | $lines | Copyright list |
- Returns
- array Simple 2D array
Definition at line 824 of file ui-export-list.php.
◆ removeCopyrightWithLicense()
UIExportList::removeCopyrightWithLicense |
( |
& |
$lines, |
|
|
|
$itemTreeBounds, |
|
|
|
$agentList, |
|
|
|
$exclude |
|
) |
| |
|
private |
Remove all files which either have license findings and not remove, or have at least one license as conclusion
- Parameters
-
| array[in,out] | $lines Lines to be filtered |
ItemTreeBounds | $itemTreeBounds | Item bounds |
array | $agentList | List of agent IDs |
string | $exclude | Files to be excluded |
Definition at line 459 of file ui-export-list.php.
◆ removeIfKeyExists()
UIExportList::removeIfKeyExists |
( |
& |
$lines, |
|
|
|
$key |
|
) |
| |
|
private |
Remove key from a list if it exists
- Note
- Uses strpos to find the key
- Parameters
-
| array[in,out] | $lines Array |
string | $key | Key to be removed |
Definition at line 511 of file ui-export-list.php.
◆ setDelimiter()
UIExportList::setDelimiter |
( |
|
$delimiter = ',' | ) |
|
Set the delimiter for CSV
- Parameters
-
string | $delimiter | The delimiter to be used (max len 1) |
Definition at line 87 of file ui-export-list.php.
◆ setEnclosure()
UIExportList::setEnclosure |
( |
|
$enclosure = '"' | ) |
|
Set the enclosure for CSV
- Parameters
-
string | $enclosure | The enclosure to be used (max len 1) |
Definition at line 96 of file ui-export-list.php.
◆ updateCopyrightList()
UIExportList::updateCopyrightList |
( |
& |
$list, |
|
|
|
$newCopyrights, |
|
|
|
$NomostListNum, |
|
|
|
$uploadTreeTableName, |
|
|
|
$key |
|
) |
| |
|
private |
Update the list of copyrights with new list
- Parameters
-
| array[in,out] | $list List of copyrights |
array | $newCopyrights | List of copyrights to be included |
integer | $NomostListNum | Limit of copyrights |
string | $uploadTreeTableName | Upload tree table name |
string | $key | Key of the array holding copyright |
Definition at line 433 of file ui-export-list.php.
◆ $clearingDao
◆ $clearingFilter
◆ $copyrightDao
◆ $delimiter
string UIExportList::$delimiter = ',' |
|
protected |
◆ $enclosure
string UIExportList::$enclosure = '"' |
|
protected |
◆ $licenseDao
◆ $treeDao
◆ $uploadDao
The documentation for this class was generated from the following file: