FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
renderContent (&$vars) | |
Render HTML from template. More... | |
renderFoot (&$vars) | |
Render footer HTML. More... | |
scheduleAgent ($jobId, $uploadId, &$errorMsg, $request) | |
Schedule scancode agent. More... | |
getScanCodeArgs ($flags, $unpackArgs) | |
AgentHasResults ($uploadId=0) | |
preInstall () | |
isScanCodeInstalled () | |
Public Member Functions inherited from Fossology\Lib\Plugin\AgentPlugin | |
execute () | |
postInstall () | |
unInstall () | |
getName () | |
AgentAdd ($jobId, $uploadId, &$errorMsg, $dependencies=[], $arguments=null, $request=null, $unpackArgs=null) | |
__toString () | |
Public Attributes | |
const | SCAN_FLAG = '-' |
Public Attributes inherited from Fossology\Lib\Plugin\AgentPlugin | |
const | PRE_JOB_QUEUE = 'preJq' |
$AgentName | |
$Name = "agent_abstract" | |
$Dependency = array() | |
$Title = 'how to show checkbox' | |
$PluginLevel = 10 | |
$State = PLUGIN_STATE_READY | |
$DBaccess = PLUGIN_DB_WRITE | |
Protected Member Functions | |
isAgentIncluded ($dependencies, $agentName) | |
Protected Member Functions inherited from Fossology\Lib\Plugin\AgentPlugin | |
doAgentAdd ($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null, $request=null) | |
implicitAgentAdd ($jobId, $uploadId, &$errorMsg, $dependency, $request) | |
Definition at line 13 of file agent-scancode.php.
Fossology\Scancode\Ui\ScancodesAgentPlugin::AgentHasResults | ( | $uploadId = 0 | ) |
int | $uploadId |
Reimplemented from Fossology\Lib\Plugin\AgentPlugin.
Definition at line 116 of file agent-scancode.php.
Fossology\Scancode\Ui\ScancodesAgentPlugin::getScanCodeArgs | ( | $flags, | |
$unpackArgs | |||
) |
Translate request flags to agent's args string
string[] | $flags | Array of flags |
string | $unpackArgs | Unpack agent args |
Definition at line 83 of file agent-scancode.php.
|
protected |
Check if agent already included in the dependency list
mixed | $dependencies | Array of job dependencies |
string | $agentName | Name of the agent to be checked for |
Definition at line 127 of file agent-scancode.php.
Fossology\Scancode\Ui\ScancodesAgentPlugin::isScanCodeInstalled | ( | ) |
Is scancode-toolkit installed on the system?
Checks if scancode executable exists
Definition at line 154 of file agent-scancode.php.
Fossology\Scancode\Ui\ScancodesAgentPlugin::preInstall | ( | ) |
Reimplemented from Fossology\Lib\Plugin\AgentPlugin.
Definition at line 144 of file agent-scancode.php.
Fossology\Scancode\Ui\ScancodesAgentPlugin::renderContent | ( | & | $vars | ) |
Render HTML from template.
array | $vars | Variables using in template |
Definition at line 31 of file agent-scancode.php.
Fossology\Scancode\Ui\ScancodesAgentPlugin::renderFoot | ( | & | $vars | ) |
Render footer HTML.
array | $vars | Variables using in template |
Definition at line 42 of file agent-scancode.php.
Fossology\Scancode\Ui\ScancodesAgentPlugin::scheduleAgent | ( | $jobId, | |
$uploadId, | |||
& | $errorMsg, | ||
$request | |||
) |
Schedule scancode agent.
flags: l-> license, r-> copyright, e-> email, u->url
int | $jobId | schedule Job Id which has to add |
int | $uploadId | Uploaded pfile Id |
string | $errorMsg | Error message which has to be displayed |
Request | $request | Session request in html |
Definition at line 62 of file agent-scancode.php.