\Drupflare\Anachron\Drupal\Cache TrackedQuery

A query builder that tags what it reads when it runs, or invalidates what it writes.

Summary

Methods
Properties
Constants
__construct
__call
No public properties found
No public constants found
No protected methods found
No protected properties found
No protected constants found
tagReads
inner
table
write
No private constants found

Properties

$inner

$inner : object

Type

object

$table

$table : string

Type

string

$write

$write : bool

Type

bool

Methods

__construct()

__construct(object  $inner, string  $table, bool  $write) : mixed

Wraps a builder.

Parameters

object $inner

The builder the connection returned.

string $table

The table the builder was made for.

bool $write

True for an insert, update, delete, merge or truncate.

Returns

mixed —

__call()

__call(string  $method, array  $arguments) : mixed

Forwards a call to the builder and tags or invalidates when it executes.

Parameters

string $method

The builder method called.

array $arguments

Its arguments.

Returns

mixed —

The builder's answer, or this wrapper when the builder answered itself.

tagReads()

tagReads(object  $select) : void

Tags the tables a select reads, subqueries included.

Parameters

object $select

The select builder.

Returns

void —