Tripal
|
Public Member Functions | |
validateParameters () | |
performTask () | |
getProgress () | |
getStatus () | |
![]() | |
getTripalDbxClass ($class) | |
![]() | |
__construct (?\Drupal\Core\Database\Connection $database=NULL, ?\Psr\Log\LoggerInterface $logger=NULL, ?\Drupal\tripal_biodb\Lock\SharedLockBackendInterface $locker=NULL, ?\Drupal\Core\State\StateInterface $state=NULL) | |
setParameters (array $parameters=[]) | |
getId () | |
getLogger () | |
Public Attributes | |
const | TASK_NAME = 'remover' |
![]() | |
const | TASK_NAME = 'chado' |
![]() | |
const | TASK_NAME = 'task' |
const | STATE_KEY_DATA_PREFIX = 'tripal_biodb_' |
Additional Inherited Members | |
![]() | |
prepareSchemas (array $schema_list) | |
getSchemaLockName (\Drupal\tripal\TripalDBX\TripalDbxConnection $db) | |
initId () | |
acquireTaskLocks () | |
releaseTaskLocks () | |
![]() | |
$id | |
$connection | |
$logger | |
$locker | |
$state | |
$parameters = ['input_schemas' => [], 'output_schemas' => [], ] | |
$inputSchemas = [] | |
$outputSchemas = [] | |
Chado remover.
Usage:
Drupal\tripal_chado\Task\ChadoRemover::getProgress | ( | ) |
{Returns the percent of progress of current task.This method can also be used to check if a task is currently running if it has a > 0 value. A negative value means an error occured while running.
Implements Drupal\tripal_biodb\Task\BioTaskInterface.
Drupal\tripal_chado\Task\ChadoRemover::getStatus | ( | ) |
{{Returns a string describing current status of the performed task.This function returns the last known status, even if the task ended. In case of failure, this function may return the reason of the failure.
Reimplemented from Drupal\tripal_biodb\Task\BioTaskBase.
Drupal\tripal_chado\Task\ChadoRemover::performTask | ( | ) |
Removes a given Chado schema.
Task parameter array provided to the class constructor includes:
Example:
Drupal |
Reimplemented from Drupal\tripal_biodb\Task\BioTaskBase.
Drupal\tripal_chado\Task\ChadoRemover::validateParameters | ( | ) |
Validate task parameters.
Parameter array provided to the class constructor must include two output schema as shown:
Implements Drupal\tripal_biodb\Task\BioTaskInterface.
const Drupal\tripal_chado\Task\ChadoRemover::TASK_NAME = 'remover' |
Name of the task.