Class it_dbi:

/**
 * STATIC: create an object and read its record from DB.
 * @param $id ID of record to read
 * @return initialized object or null if ID not found
 */
static function get($id)
{
    return isset($id) && ($rec = new static) && $rec->read($id) ? $rec : null;
}