Yes, most of the deprecated functions are listed in the MODX Object Reference in the Appendix with suggested alternatives.
Here's the section on that one (the first one is free)
getTemplateVars([array $idnames = array()], [$fields = "*"],
[$resourceId = ""], [$published = 1], [$sort = "tv.rank,
tvtpl.rank"], [$dir = "ASC,ASC"]) — Deprecated. Use $modx->getObject() and $obj->getMany('TemplateVars').
Example:
$obj = $modx->getObject('modResource', array('name'=>'MyDoc');
$id = $obj->get('id');
$tvs = $obj->getMany('TemplateVars');
foreach ($tvs as $tv) {
$rawValue = $tv->getValue($id);
$processedValue = $tv->renderOutput($id);
}
For the current resource, it would be this:
$tvs = $modx->resource->getMany('TemplateVars');
foreach ($tvs as $tv) {
$rawValue = $tv->getValue($modx->resource->get('id'));
$processedValue = $tv->renderOutput($modx->resource->get('id'));
}
[ed. note: BobRay last edited this post 12 years, 5 months ago.]