db->fetchObjectList($sql); } public function name() { if (!$this->data) return 'Unbekannt'; $both = explode (":", $this->data->blz_kto); if (count($both) > 1) return sprintf ("%s (BLZ %s, Konto %s)", $this->data->name, $both[0], $both[1]); else return sprintf ("%s (%s)", $this->data->name, $this->data->blz_kto); } }