_prepareRow($row); } } protected function _prepareRow(&$row) { switch ($row['linkType']) { case 'cms': $page = App_Cms_Obj::getInstance()->getPageById($row['idPage']); $row['url'] = BASE_URL . '/' . $page['fullAlias']; break; case 'link': break; case 'file': $row['url'] = BASE_URL . '/userfiles/files/' . $row['file']; break; case 'none': $row['url'] = ''; break; default: break; } } public function getData($field = false) { $data = parent::getData($field); if (false === $field) { $this->_prepareRow($data); } return $data; } }