Public Member Functions | |
| __construct (Connection $connection) | |
| retrieve (string $id) | |
| 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 () | |
| getNonSerialFields () | |
Protected Attributes | |
| $connection | |
AbstractDatabaseTable class.
Definition at line 16 of file AbstractDatabaseTable.php.
| Drupal\dkan_common\Storage\AbstractDatabaseTable::__construct | ( | Connection | $connection | ) |
Constructor.
| \Drupal\Core\Database\Connection | $connection | Drupal database connection object. |
Definition at line 49 of file AbstractDatabaseTable.php.
| Drupal\dkan_common\Storage\AbstractDatabaseTable::count | ( | ) |
Count rows in table.
Definition at line 192 of file AbstractDatabaseTable.php.
| Drupal\dkan_common\Storage\AbstractDatabaseTable::destroy | ( | ) |
|
protected |
Private.
Reimplemented in Drupal\dkan_datastore\Storage\DatabaseTable.
Definition at line 167 of file AbstractDatabaseTable.php.
|
abstractprotected |
Get the full name of datastore db table.
Reimplemented in Drupal\dkan_datastore\Storage\DatabaseTable, Drupal\dkan_harvest\Storage\DatabaseTable, and Drupal\dkan_datastore\Storage\JobStore.
|
abstractprotected |
Prepare data.
Transform the string data given into what should be use by the insert query.
Reimplemented in Drupal\dkan_datastore\Storage\DatabaseTable, Drupal\dkan_datastore\Storage\JobStore, and Drupal\dkan_harvest\Storage\DatabaseTable.
|
abstractprotected |
Get the primary key used in the table.
Reimplemented in Drupal\dkan_datastore\Storage\DatabaseTable, Drupal\dkan_datastore\Storage\JobStore, and Drupal\dkan_harvest\Storage\DatabaseTable.
| Drupal\dkan_common\Storage\AbstractDatabaseTable::query | ( | Query | $query | ) |
Run a query on the database table.
| \Drupal\dkan_datastore\Storage\Query | $query | Query obejct. |
Definition at line 204 of file AbstractDatabaseTable.php.
| Drupal\dkan_common\Storage\AbstractDatabaseTable::remove | ( | string | $id | ) |
| Drupal\dkan_common\Storage\AbstractDatabaseTable::retrieve | ( | string | $id | ) |
Inherited.
@inheritDoc
Reimplemented in Drupal\dkan_harvest\Storage\DatabaseTable, and Drupal\dkan_datastore\Storage\JobStore.
Definition at line 62 of file AbstractDatabaseTable.php.
| Drupal\dkan_common\Storage\AbstractDatabaseTable::retrieveAll | ( | ) |
| Drupal\dkan_common\Storage\AbstractDatabaseTable::store | ( | $data, | |
| string | $id = NULL |
||
| ) |
Store data.
Definition at line 105 of file AbstractDatabaseTable.php.
| Drupal\dkan_common\Storage\AbstractDatabaseTable::storeMultiple | ( | array | $data | ) |
Prepare to store possibly multiple values.
| array | $data | Array of values to be inserted into the database. |
Definition at line 146 of file AbstractDatabaseTable.php.
|
protected |
Definition at line 20 of file AbstractDatabaseTable.php.