why can't you use getResources or pdoResources, if you want to list resources with TVs?
If performance counts, you will need some more or less complicated joins to get TV-values, too.
pdoResources or getResources does this automatically for you.
It is also possible with
$fields[$tvname] = $resource->getTVValue($tvname);
But this would create a query to the db for each TV and each resource.
If you need a very customized version of pdoResources for some reason, you can create it with a pdoTools-include.
See pdoResources for an example.