function StatementExecutionStartEvent::__construct

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Database/Event/StatementExecutionStartEvent.php \Drupal\Core\Database\Event\StatementExecutionStartEvent::__construct()

Constructs a StatementExecutionStartEvent object.

See 'Customizing database settings' in settings.php for an explanation of the $key and $target connection values.

Parameters

int $statementObjectId: The id of the StatementInterface object as returned by spl_object_id().

string $key: The database connection key.

string $target: The database connection target.

string $queryString: The SQL statement string being executed, with placeholders.

array $args: The placeholders' replacement values.

array $caller: A normalized debug backtrace entry representing the last non-db method called.

Overrides DatabaseEvent::__construct

File

core/lib/Drupal/Core/Database/Event/StatementExecutionStartEvent.php, line 30

Class

StatementExecutionStartEvent
Represents the start of a statement execution as an event.

Namespace

Drupal\Core\Database\Event

Code

public function __construct(int $statementObjectId, string $key, string $target, string $queryString, array $args, array $caller) {
    parent::__construct();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.