TrustedHostsRequestFactory::$host

The host of the main request. Type: string File core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php, line 27 Class TrustedHostsRequestFactory Provides a request factory for requests using host verification. Namespace Drupal\Core\Http Code protected $host;

TrustedHostsRequestFactory

Provides a request factory for requests using host verification. Because the trusted host patterns for requests are stored statically, they are consulted even for fake request created with Request::create(), whose host is 'localhost' by default. Such requests would fail host verification unless 'localhost' matches one of the trusted host patterns. To circumvent this problem, this factory injects the server variables from the main request into each newly created request, so that the host is corr

Truncate::execute

public Truncate::execute() Executes the TRUNCATE query. Return value Return value is dependent on the database type. Overrides Truncate::execute File core/lib/Drupal/Core/Database/Driver/pgsql/Truncate.php, line 15 Class Truncate PostgreSQL implementation of \Drupal\Core\Database\Query\Truncate. Namespace Drupal\Core\Database\Driver\pgsql Code public function execute() { $this->connection->addSavepoint(); try { $result = parent::execute(); } catch (\Exception $e) {

Truncate::compile

public Truncate::compile(Connection $connection, PlaceholderInterface $queryPlaceholder) File core/lib/Drupal/Core/Database/Query/Truncate.php, line 40 Class Truncate General class for an abstracted TRUNCATE operation. Namespace Drupal\Core\Database\Query Code public function compile(Connection $connection, PlaceholderInterface $queryPlaceholder) { return $this->condition->compile($connection, $queryPlaceholder); }

Truncate::execute

public Truncate::execute() Executes the TRUNCATE query. Return value Return value is dependent on the database type. Overrides Query::execute File core/lib/Drupal/Core/Database/Query/Truncate.php, line 57 Class Truncate General class for an abstracted TRUNCATE operation. Namespace Drupal\Core\Database\Query Code public function execute() { return $this->connection->query((string) $this, array(), $this->queryOptions); }

Truncate::$table

The table to truncate. Type: string File core/lib/Drupal/Core/Database/Query/Truncate.php, line 19 Class Truncate General class for an abstracted TRUNCATE operation. Namespace Drupal\Core\Database\Query Code protected $table;

Truncate::compiled

public Truncate::compiled() File core/lib/Drupal/Core/Database/Query/Truncate.php, line 47 Class Truncate General class for an abstracted TRUNCATE operation. Namespace Drupal\Core\Database\Query Code public function compiled() { return $this->condition->compiled(); }

Truncate::__construct

public Truncate::__construct(Connection $connection, $table, array $options = array()) Constructs a Truncate query object. Parameters \Drupal\Core\Database\Connection $connection: A Connection object. string $table: Name of the table to associate with this query. array $options: Array of database options. Overrides Query::__construct File core/lib/Drupal/Core/Database/Query/Truncate.php, line 31 Class Truncate General class for an abstracted TRUNCATE operation. Namespace Drupal\Core\Da

Truncate

PostgreSQL implementation of \Drupal\Core\Database\Query\Truncate. Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Truncateclass \Drupal\Core\Database\Driver\pgsql\Truncate File core/lib/Drupal/Core/Database/Driver/pgsql/Truncate.php, line 10 Namespace Drupal\Core\Database\Driver\pgsql Members Name Modifiers Type Description Query::$comments protected property An array of comments that can be prepended

Truncate

SQLite implementation of \Drupal\Core\Database\Query\Truncate. SQLite doesn't support TRUNCATE, but a DELETE query with no condition has exactly the effect (it is implemented by DROPing the table). Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Truncateclass \Drupal\Core\Database\Driver\sqlite\Truncate File core/lib/Drupal/Core/Database/Driver/sqlite/Truncate.php, line 13 Namespace Drupal\Core\Database\Driver\sqlite