public function QueryAlterableInterface::addMetaData

cis7 query.inc public QueryAlterableInterface::addMetaData($key, $object)
cle7 query.inc public QueryAlterableInterface::addMetaData($key, $object)
elmsmedia7 query.inc public QueryAlterableInterface::addMetaData($key, $object)
icor7 query.inc public QueryAlterableInterface::addMetaData($key, $object)
meedjum_blog7 query.inc public QueryAlterableInterface::addMetaData($key, $object)
mooc7 query.inc public QueryAlterableInterface::addMetaData($key, $object)

Adds additional metadata to the query.

Often, a query may need to provide additional contextual data to alter hooks. Alter hooks may then use that information to decide if and how to take action.

Parameters

$key: The unique identifier for this piece of metadata. Must be a string that follows the same rules as any other PHP identifier.

$object: The additional data to add to the query. May be any valid PHP variable.

Return value

QueryAlterableInterface The called object.

2 methods override QueryAlterableInterface::addMetaData()
SelectQuery::addMetaData in includes/database/select.inc
Adds additional metadata to the query.
SelectQueryExtender::addMetaData in includes/database/select.inc
Adds additional metadata to the query.

File

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

Class

QueryAlterableInterface
Interface for a query that can be manipulated via an alter hook.

Code

public function addMetaData($key, $object);
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.