public function render(Varien_Object $row) { $text = array(); $catIds = $row->getCatIds(); $allCats = Mage::getSingleton('downloads/resource_categories')->getOptionArray(); if ($catIds && is_string($catIds)) { foreach (explode(',', $catIds) as $id) { if (isset($allCats[$id])) { $text[] = str_replace(' ', '', $allCats[$id]); } } } return implode(', ', $text); }