public function getColumnEditTag($column, $params = array()) { if ($column->isComponent()) { $moduleName = $this->getModuleName(); $componentName = $column->getName(); if (false !== ($pos = strpos($componentName, '/'))) { $moduleName = substr($componentName, 0, $pos); $componentName = substr($componentName, $pos + 1); } return "get_component('{$moduleName}', '{$componentName}', array('type' => 'edit', '{$this->getSingularName()}' => \${$this->getSingularName()}))"; } return parent::getColumnEditTag($column, $params); }
public function getLinkToAction($actionName, $params, $pk_link = false) { $ret = parent::getLinkToAction($actionName, $params, $pk_link); if ($actionName === '_show') { return preg_replace('/\\/show_icon.png/', '/filter.png', $ret); } else { return $ret; } }