DatabaseFileUsageBackend::$connection

The database connection used to store file usage information. Type: \Drupal\Core\Database\Connection File core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php, line 18 Class DatabaseFileUsageBackend Defines the database file usage backend. This is the default Drupal backend. Namespace Drupal\file\FileUsage Code protected $connection;

DatabaseFileUsageBackend

Defines the database file usage backend. This is the default Drupal backend. Hierarchy class \Drupal\file\FileUsage\FileUsageBase implements FileUsageInterfaceclass \Drupal\file\FileUsage\DatabaseFileUsageBackend File core/modules/file/src/FileUsage/DatabaseFileUsageBackend.php, line 11 Namespace Drupal\file\FileUsage Members Name Modifiers Type Description DatabaseFileUsageBackend::$connection protected property The database connection used to store file usage informat

DatabaseExceptionWrapper

This wrapper class serves only to provide additional debug information. This class will always wrap a PDOException. Hierarchy class \Drupal\Core\Database\DatabaseExceptionWrapper extends \RuntimeException implements DatabaseException File core/lib/Drupal/Core/Database/DatabaseExceptionWrapper.php, line 10 Namespace Drupal\Core\Database Members

DatabaseException

Interface for a database exception. All Database exceptions should implement this interface so that they can be caught collectively. Note that this applies only to Drupal-spawned exceptions. PDOException will not implement this interface and module developers should account for it separately. Hierarchy interface \Drupal\Core\Database\DatabaseException File core/lib/Drupal/Core/Database/DatabaseException.php, line 13 Namespace Drupal\Core\Database Members

DatabaseCacheTagsChecksum::__construct

public DatabaseCacheTagsChecksum::__construct(Connection $connection) Constructs a DatabaseCacheTagsChecksum object. Parameters \Drupal\Core\Database\Connection $connection: The database connection. File core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php, line 42 Class DatabaseCacheTagsChecksum Cache tags invalidations checksum implementation that uses the database. Namespace Drupal\Core\Cache Code public function __construct(Connection $connection) { $this->connection = $c

DatabaseCacheTagsChecksum::schemaDefinition

public DatabaseCacheTagsChecksum::schemaDefinition() Defines the schema for the {cachetags} table. File core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php, line 167 Class DatabaseCacheTagsChecksum Cache tags invalidations checksum implementation that uses the database. Namespace Drupal\Core\Cache Code public function schemaDefinition() { $schema = array( 'description' => 'Cache table for tracking cache tag invalidations.', 'fields' => array( 'tag' => arra

DatabaseCacheTagsChecksum::reset

public DatabaseCacheTagsChecksum::reset() Reset statically cached tags. This is only used by tests. Overrides CacheTagsChecksumInterface::reset File core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php, line 136 Class DatabaseCacheTagsChecksum Cache tags invalidations checksum implementation that uses the database. Namespace Drupal\Core\Cache Code public function reset() { $this->tagCache = array(); $this->invalidatedTags = array(); }

DatabaseCacheTagsChecksum::isValid

public DatabaseCacheTagsChecksum::isValid($checksum, array $tags) Returns whether the checksum is valid for the given cache tags. Used when retrieving a cache item in a cache backend, to verify that no cache tag based invalidation happened. Parameters int $checksum: The checksum that was stored together with the cache item. string[] $tags: The cache tags that were stored together with the cache item. Return value bool FALSE if cache tag invalidations happened for the passed in tags since the

DatabaseCacheTagsChecksum::invalidateTags

public DatabaseCacheTagsChecksum::invalidateTags(array $tags) Marks cache items with any of the specified tags as invalid. Parameters string[] $tags: The list of tags for which to invalidate cache items. Overrides CacheTagsInvalidatorInterface::invalidateTags File core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php, line 49 Class DatabaseCacheTagsChecksum Cache tags invalidations checksum implementation that uses the database. Namespace Drupal\Core\Cache Code public function inva

DatabaseCacheTagsChecksum::getCurrentChecksum

public DatabaseCacheTagsChecksum::getCurrentChecksum(array $tags) Returns the sum total of validations for a given set of tags. Called by a backend when storing a cache item. Parameters string[] $tags: Array of cache tags. Return value string Cache tag invalidations checksum. Overrides CacheTagsChecksumInterface::getCurrentChecksum File core/lib/Drupal/Core/Cache/DatabaseCacheTagsChecksum.php, line 78 Class DatabaseCacheTagsChecksum Cache tags invalidations checksum implementation that u