|
Tripal
|


Public Member Functions | |
| __construct (array $configuration, $plugin_id, $plugin_definition, Connection $public, \Drupal\tripal\Services\TripalLogger $logger, \Drupal\tripal\Services\TripalCitationManager $citation_manager, TripalFileRetriever $fileretriever) | |
Public Member Functions inherited from Drupal\tripal\TripalPubLibrary\Interfaces\TripalPubLibraryInterface | |
| form (array $form, \Drupal\Core\Form\FormStateInterface &$form_state) | |
| formSubmit (array $form, \Drupal\Core\Form\FormStateInterface &$form_state) | |
| formValidate (array $form, \Drupal\Core\Form\FormStateInterface &$form_state) | |
| run (array $query) | |
| retrieve (array $query, int $limit=10, int $page=0) | |
| parse_xml (string $raw) | |
Static Public Member Functions | |
| static | create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) |
Protected Member Functions | |
| xmlIsValid (string $xml) | |
Protected Attributes | |
| $public | |
| $logger | |
| $fileretriever = NULL | |
| $citation_manager = NULL | |
| $plugin_id | |
| $plugin_definition | |
Defines the base class for the tripal pub parser plugins.
| Drupal\tripal\TripalPubLibrary\TripalPubLibraryBase::__construct | ( | array | $configuration, |
| $plugin_id, | |||
| $plugin_definition, | |||
| Connection | $public, | ||
| \Drupal\tripal\Services\TripalLogger | $logger, | ||
| \Drupal\tripal\Services\TripalCitationManager | $citation_manager, | ||
| TripalFileRetriever | $fileretriever | ||
| ) |
{}
|
static |
Implements ContainerFactoryPluginInterface->create().
Since we have implemented the ContainerFactoryPluginInterface this static function will be called behind the scenes when a Plugin Manager uses createInstance(). Specifically this method is used to determine the parameters to pass to the constructor.
| \Symfony\Component\DependencyInjection\ContainerInterface | $container | |
| array | $configuration | |
| string | $plugin_id | |
| mixed | $plugin_definition |
|
protected |
Validates whether XML is valid or not.
| string | $xml | The XML to be checked. |
|
protected |
The Tripal Citation generation service.
|
protected |
The public database connection