Open Data Catalog v2.0.0
Drupal\dkan_harvest\Storage\DatabaseTable Class Reference
Inheritance diagram for Drupal\dkan_harvest\Storage\DatabaseTable:
Drupal\dkan_common\Storage\AbstractDatabaseTable

Public Member Functions

 __construct (Connection $connection, string $identifier)
 
 retrieve (string $id)
 
- Public Member Functions inherited from Drupal\dkan_common\Storage\AbstractDatabaseTable
 __construct (Connection $connection)
 
 retrieveAll ()
 
 store ($data, string $id=NULL)
 
 storeMultiple (array $data)
 
 remove (string $id)
 
 count ()
 
 query (Query $query)
 
 destroy ()
 

Protected Member Functions

 getTableName ()
 
 prepareData (string $data, string $id=NULL)
 
 primaryKey ()
 
- Protected Member Functions inherited from Drupal\dkan_common\Storage\AbstractDatabaseTable
 getNonSerialFields ()
 

Additional Inherited Members

- Protected Attributes inherited from Drupal\dkan_common\Storage\AbstractDatabaseTable
 $connection
 

Detailed Description

DatabaseTable.

Definition at line 11 of file DatabaseTable.php.

Constructor & Destructor Documentation

◆ __construct()

Drupal\dkan_harvest\Storage\DatabaseTable::__construct ( Connection  $connection,
string  $identifier 
)

DatabaseTable constructor.

Parameters
\Drupal\Core\Database\Connection$connectionDrupal's database connection object.
string$identifierEach unique identifier represents a table.

Definition at line 22 of file DatabaseTable.php.

Member Function Documentation

◆ getTableName()

Drupal\dkan_harvest\Storage\DatabaseTable::getTableName ( )
protected

Inherited.

@inheritDoc

Reimplemented from Drupal\dkan_common\Storage\AbstractDatabaseTable.

Definition at line 43 of file DatabaseTable.php.

◆ prepareData()

Drupal\dkan_harvest\Storage\DatabaseTable::prepareData ( string  $data,
string  $id = NULL 
)
protected

Inherited.

@inheritDoc

Reimplemented from Drupal\dkan_common\Storage\AbstractDatabaseTable.

Definition at line 52 of file DatabaseTable.php.

◆ primaryKey()

Drupal\dkan_harvest\Storage\DatabaseTable::primaryKey ( )
protected

Inherited.

@inheritDoc

Reimplemented from Drupal\dkan_common\Storage\AbstractDatabaseTable.

Definition at line 61 of file DatabaseTable.php.

◆ retrieve()

Drupal\dkan_harvest\Storage\DatabaseTable::retrieve ( string  $id)

Inherited.

@inheritDoc

Reimplemented from Drupal\dkan_common\Storage\AbstractDatabaseTable.

Definition at line 33 of file DatabaseTable.php.