You are here

public function SelectQuery::hasAnyTag in Drupal 7

Determines if a given query has any specified tag.

Parameters

$tags: A variable number of arguments, one for each tag to check.

Return value

TRUE if this query has been marked with at least one of the specified tags, FALSE otherwise.

Overrides QueryAlterableInterface::hasAnyTag

File

includes/database/select.inc, line 991

Class

SelectQuery
Query builder for SELECT statements.

Code

public function hasAnyTag() {
  $args = func_get_args();
  return (bool) array_intersect($args, array_keys($this->alterTags));
}