Tripal
Public Member Functions | List of all members
Drupal\tripal_chado\Services\ChadoMviewsManager Class Reference
Inheritance diagram for Drupal\tripal_chado\Services\ChadoMviewsManager:
Inheritance graph
[legend]
Collaboration diagram for Drupal\tripal_chado\Services\ChadoMviewsManager:
Collaboration graph
[legend]

Public Member Functions

 __construct ()
 
 create (string $table_name, string $chado_schema=NULL)
 
 loadById (int $id)
 
 loadbyName (string $table_name, string $chado_schema=NULL)
 
 findByName (string $table_name, string $chado_schema=NULL)
 
 getTables (string $chado_schema=NULL)
 

Constructor & Destructor Documentation

◆ __construct()

Drupal\tripal_chado\Services\ChadoMviewsManager::__construct ( )

Instantiates a new ChadoCustomTableManager object.

Reimplemented from Drupal\tripal_chado\Services\ChadoCustomTableManager.

Member Function Documentation

◆ create()

Drupal\tripal_chado\Services\ChadoMviewsManager::create ( string  $table_name,
string  $chado_schema = NULL 
)

Creates a new ChadoCustomTable object.

This object will work with the custom table in the default Chado schema. Be sure to call the setSchemaName() on the ChadoConnection object to ensure the custom table is managed in the correct Chado instance.

Parameters
string$table_nameThe name of the custom table.
string$chado_schemaOptional. The chado schema where the custom table will live. If no schema is specified then the default schema is used.
Returns
\Drupal\tripal_chado\ChadoCustomTables\ChadoCustomTable

Reimplemented from Drupal\tripal_chado\Services\ChadoCustomTableManager.

◆ findByName()

Drupal\tripal_chado\Services\ChadoMviewsManager::findByName ( string  $table_name,
string  $chado_schema = NULL 
)

Finds the Id of the materialized view matching the name and Chado schema.

Parameters
string$table_nameThe name of the materialized view table to find the ID for.
string$chado_schemaOptional. The chado schema from which to find materialized view. If no schema is specified then the default schema is used.
Returns
int The id of the matching materialized view.

Reimplemented from Drupal\tripal_chado\Services\ChadoCustomTableManager.

◆ getTables()

Drupal\tripal_chado\Services\ChadoMviewsManager::getTables ( string  $chado_schema = NULL)

Retrieve a list of all the materialized views.

Parameters
string$chado_schemaOptional. The chado schema from which to retrieve materialized views. If no schema is specified then the default schema is used.
Returns
array An associatve array of the materialized views with the key being the id and the value the table name.

Reimplemented from Drupal\tripal_chado\Services\ChadoCustomTableManager.

◆ loadById()

Drupal\tripal_chado\Services\ChadoMviewsManager::loadById ( int  $id)

Loads a materialized view whose Id matches the one provided.

Parameters
int$idThe ID of the materialized view
Returns
\Drupal\tripal_chado\ChadoCustomTables\ChadoMview A ChadoMview object or NULL if not found.

Reimplemented from Drupal\tripal_chado\Services\ChadoCustomTableManager.

◆ loadbyName()

Drupal\tripal_chado\Services\ChadoMviewsManager::loadbyName ( string  $table_name,
string  $chado_schema = NULL 
)

Loads a custom table that matches the given name and Chado schema.

Parameters
string$table_nameThe name of the table to find the ID for.
string$chado_schemaOptional. The chado schema from which to find a custom tables. If no schema is specified then the default schema is used.
Returns
\Drupal\tripal_chado\ChadoCustomTables\ChadoCustomTable A ChadoCustomTable object or NULL if not found.

Reimplemented from Drupal\tripal_chado\Services\ChadoCustomTableManager.


The documentation for this class was generated from the following file: