function DatabaseEvent::__construct

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

Constructs a DatabaseEvent object.

2 calls to DatabaseEvent::__construct()
StatementExecutionEndEvent::__construct in core/lib/Drupal/Core/Database/Event/StatementExecutionEndEvent.php
Constructs a StatementExecutionEndEvent object.
StatementExecutionStartEvent::__construct in core/lib/Drupal/Core/Database/Event/StatementExecutionStartEvent.php
Constructs a StatementExecutionStartEvent object.
2 methods override DatabaseEvent::__construct()
StatementExecutionEndEvent::__construct in core/lib/Drupal/Core/Database/Event/StatementExecutionEndEvent.php
Constructs a StatementExecutionEndEvent object.
StatementExecutionStartEvent::__construct in core/lib/Drupal/Core/Database/Event/StatementExecutionStartEvent.php
Constructs a StatementExecutionStartEvent object.

File

core/lib/Drupal/Core/Database/Event/DatabaseEvent.php, line 20

Class

DatabaseEvent
Represents a database event.

Namespace

Drupal\Core\Database\Event

Code

public function __construct() {
    $this->time = microtime(TRUE);
}

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