get_record — Get a single record from the database.

New in version 2.1.

Db-related functions

Summary

get_record($recordType, $params = array())

Get a single record from the database.

Parameters:
  • $recordType (string) – Type of records to get.
  • $params (array) – Array of search parameters for records.
Returns:

object An object of result records (of $recordType).

Usage

Examples

See Also