Retrieves and loads an object from a unique key.
249 $cache[$this->classname] = array();
252 $cache[$this->classname][$key] = array();
255 $query = db_select($this->table,
't')->fields(
't')->condition($key, $value)->range(0, 1);
256 $result = $query->execute();
257 $record = $result->fetchAssoc();
258 if ($record === FALSE) {
static $cache
cache array.
Definition: common.db.logic.inc:27
loadFromRecord($record)
Loads a IcesDBObject from it record.
Definition: common.db.logic.inc:80