public static function Messaging_Object::db_load in Messaging 6.4
Load object from DB
1 call to Messaging_Object::db_load()
- Messaging_Object::object_load in includes/
messaging_object.class.inc - Load object by unique key, no static caching
File
- includes/
messaging_object.class.inc, line 245 - Drupal Messaging Framework - Base classes
Class
- Messaging_Object
- Messaging persistent object
Code
public static function db_load($table, $key, $value) {
return db_fetch_object(db_query("SELECT * FROM {" . $table . "} WHERE {$key} = %d", $value));
}