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 | REUSE_MODE = 'reuseMode' |
| | 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, $request=null) |
| |
| | implicitAgentAdd ($jobId, $uploadId, &$errorMsg, $dependency, $request) |
| |
|
|
| scheduleOsselotImportDirect (int $jobId, int $uploadId, string &$errorMsg, Request $request) |
| |
UI element for reuser during Uploading new package.
Definition at line 31 of file agent-reuser.php.
◆ createPackageLink()
| 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 253 of file agent-reuser.php.
◆ getScriptIncludes()
| Fossology\Reuser\ReuserAgentPlugin::getScriptIncludes |
( |
& |
$vars | ) |
|
Get script tags to include before rendering foot.
- Parameters
-
| array | $vars | Variables for twig template |
- Returns
- string Rendered JS includes
Definition at line 79 of file agent-reuser.php.
◆ preInstall()
| Fossology\Reuser\ReuserAgentPlugin::preInstall |
( |
| ) |
|
◆ renderContent()
| 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 57 of file agent-reuser.php.
◆ renderFoot()
| 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 68 of file agent-reuser.php.
◆ scheduleAgent()
| 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 102 of file agent-reuser.php.
◆ $uploadDao
| UploadDao Fossology\Reuser\ReuserAgentPlugin::$uploadDao |
|
private |
The documentation for this class was generated from the following file: