\Drupflare\Anachron\Drupal\Cache QueryTables

Names the tables a Drupal 7 query string touches, which is what a cache tag is built from.

Drupal 7 wrapped every table in braces, so the names come from there, joins and subselects included. A query that names a table outside braces cannot be read this way and answers null, which callers treat as an access they cannot tag.

Summary

Methods
Properties
Constants
tables
isWrite
No public properties found
No public constants found
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Methods

tables()

tables(string  $sql) : list<string>|null

Names the tables a query string touches.

Parameters

string $sql

Returns

list|null —

The table names, or null when the query reads or writes a table without braces.

isWrite()

isWrite(string  $sql) : bool

Tells whether a query string writes.

Parameters

string $sql

Returns

bool —