UI element for reuser during Uploading new package.
More...
|
|
const | UPLOAD_TO_REUSE_SELECTOR_NAME = 'uploadToReuse' |
| | Form element name for main license to reuse.
|
| |
|
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 |
| |
|
| | createPackageLink ($uploadId, $reuseUploadId, $groupId, $reuseGroupId, $reuseMode=0) |
| | Create links between old and new upload. More...
|
| |
| | doAgentAdd ($jobId, $uploadId, &$errorMsg, $dependencies, $jqargs="", $jq_cmd_args=null) |
| |
| | implicitAgentAdd ($jobId, $uploadId, &$errorMsg, $dependency) |
| |
UI element for reuser during Uploading new package.
Definition at line 40 of file agent-reuser.php.
| Fossology\Reuser\ReuserAgentPlugin::createPackageLink |
( |
|
$uploadId, |
|
|
|
$reuseUploadId, |
|
|
|
$groupId, |
|
|
|
$reuseGroupId, |
|
|
|
$reuseMode = 0 |
|
) |
| |
|
protected |
Create links between old and new upload.
- Parameters
-
| int | $uploadId | |
| int | $reuseUploadId | |
| int | $groupId | |
| int | $reuseGroupId | |
| int | $reuseMode | |
Definition at line 147 of file agent-reuser.php.
| Fossology\Reuser\ReuserAgentPlugin::getReuserDependencies |
( |
|
$request | ) |
|
|
private |
Add scanners as reuser dependencies.
- Parameters
-
| Request | $request | Symfony request |
- Returns
- array List of agent dependencies
Definition at line 172 of file agent-reuser.php.
| Fossology\Reuser\ReuserAgentPlugin::preInstall |
( |
| ) |
|
| Fossology\Reuser\ReuserAgentPlugin::renderContent |
( |
& |
$vars | ) |
|
Render twig templates for plugin_reuser.
- Parameters
-
| array | $vars | Variables for twig template |
- Returns
- string Rendered HTML
Definition at line 65 of file agent-reuser.php.
| Fossology\Reuser\ReuserAgentPlugin::renderFoot |
( |
& |
$vars | ) |
|
Render footer twig templates for plugin_reuser.
- Parameters
-
| array | $vars | Variables for twig template |
- Returns
- string Rendered HTML
Definition at line 76 of file agent-reuser.php.
| Fossology\Reuser\ReuserAgentPlugin::scheduleAgent |
( |
|
$jobId, |
|
|
|
$uploadId, |
|
|
& |
$errorMsg, |
|
|
|
$request |
|
) |
| |
Get parameters from request and add to job queue.
- Parameters
-
| int | $jobId | Job id to add to |
| int | $uploadId | Upload id to add to |
| [out] | string | $errorMsg | Error message to display |
| Request | $request | HTML request |
- Returns
- int Job queue id
Definition at line 99 of file agent-reuser.php.
| UploadDao Fossology\Reuser\ReuserAgentPlugin::$uploadDao |
|
private |
The documentation for this class was generated from the following file: