W3cubDocs

/Drupal 8

public function Select::getArguments

public Select::getArguments(PlaceholderInterface $queryPlaceholder = NULL)

Compiles and returns an associative array of the arguments for this prepared statement.

Parameters

$queryPlaceholder: When collecting the arguments of a subquery, the main placeholder object should be passed as this parameter.

Return value

An associative array of all placeholder arguments for this query.

Overrides SelectInterface::getArguments

File

core/lib/Drupal/Core/Database/Query/Select.php, line 428

Class

Select
Query builder for SELECT statements.

Namespace

Drupal\Core\Database\Query

Code

public function getArguments(PlaceholderInterface $queryPlaceholder = NULL) {
  if (!isset($queryPlaceholder)) {
    $queryPlaceholder = $this;
  }
  $this->compile($this->connection, $queryPlaceholder);
  return $this->arguments();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Query!Select.php/function/Select::getArguments/8.1.x