1 select.inc public SelectQuery::getArguments(QueryPlaceholderInterface $queryPlaceholder = NULL)

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

Parameters

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

Return value

array: An associative array of all placeholder arguments for this query.

Overrides SelectQueryInterface::getArguments

File

core/includes/database/select.inc, line 1549
Contains classes and interfaces for Select queries.

Class

SelectQuery
Query builder for SELECT statements.

Code

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