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 = 'integrator' |
![]() | |
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 integrator.
Usage:
Drupal\tripal_chado\Task\ChadoIntegrator::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\ChadoIntegrator::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\ChadoIntegrator::performTask | ( | ) |
Imports a given existing chado schema into Tripal system.
By "integrating" or "importing" we mean that a Chado schema may have been loaded into the database without Tripal and Tripal has not been configured to use it. Therefor, such a schema needs to be "integrated" into Tripal system in order to be used under Tripal/Drupal.
Task parameter array provided to the class constructor includes:
Example:
Drupal |
Reimplemented from Drupal\tripal_biodb\Task\BioTaskBase.
Drupal\tripal_chado\Task\ChadoIntegrator::validateParameters | ( | ) |
Validate task parameters.
Parameter array provided to the class constructor must include one input schema and no output schema as shown:
Implements Drupal\tripal_biodb\Task\BioTaskInterface.
const Drupal\tripal_chado\Task\ChadoIntegrator::TASK_NAME = 'integrator' |
Name of the task.