public function Query::nextPlaceholder

public Query::nextPlaceholder()

Gets the next placeholder value for this query object.

Return value

int Next placeholder value.

Overrides QueryPlaceholderInterface::nextPlaceholder

File

includes/database/query.inc, line 392
Non-specific Database query code. Used by all engines.

Class

Query
Base class for query builders.

Code

public function nextPlaceholder() {
  return $this->nextPlaceholder++;
}

© 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/includes!database!query.inc/function/Query::nextPlaceholder/7.x