You are here

protected static function Messaging_Store::query_select in Messaging 6.4

Build select query from main store table

1 call to Messaging_Store::query_select()
Messaging_Store::select_query in includes/messaging_store.class.inc
Run select query with given parameters

File

includes/messaging_store.class.inc, line 228
Database storage for the messaging framework

Class

Messaging_Store
Default storage and queueing system for Messaging

Code

protected static function query_select($fields = '*', $conditions = NULL, $query_params = array()) {
  $fields = is_array($fields) ? $fields : array(
    $fields,
  );
  $query['select'] = $fields;
  $query['from'][] = '{' . self::DB_TABLE . '}';
  if ($conditions) {
    $query += self::query_fields($conditions);
  }
  $query += $query_params;
  return $query;
}