- $i = DB_DataObject::factory($cls);
- if (empty($i)) {
- // TRANS: Exception thrown when a program code class (%s) cannot be instantiated.
- throw new Exception(sprintf(_('Cannot instantiate class %s.'),$cls));
- }
- $i->whereAddIn($keyCol, $toFetch, $i->columnType($keyCol));
- if ($i->find()) {
- sprintf("listGet() got {$i->N} results for class $cls key $keyCol");