protected function _prepareColumns() { $this->addColumn('id', array('header' => $this->__('ID'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'id', 'filter_index' => 'main_table.id')); $this->addColumn('title', array('header' => $this->__('Title / Info'), 'align' => 'left', 'type' => 'text', 'index' => 'title', 'escape' => true, 'filter_index' => 'main_table.title', 'frame_callback' => array($this, 'callbackColumnTitle'), 'filter_condition_callback' => array($this, 'callbackFilterTitle'))); if ($this->getHelper('View\\Ebay')->isAdvancedMode() && $this->getHelper('View\\Ebay')->isFeedbacksShouldBeShown()) { $this->addColumn('feedbacks', array('header' => $this->__('Feedback'), 'align' => 'center', 'width' => '120px', 'type' => 'text', 'sortable' => false, 'filter' => false, 'frame_callback' => array($this, 'callbackColumnFeedbacks'))); } return parent::_prepareColumns(); }
protected function _prepareColumns() { $this->addColumn('id', array('header' => $this->__('ID'), 'align' => 'right', 'width' => '100px', 'type' => 'number', 'index' => 'id', 'filter_index' => 'main_table.id')); $this->addColumn('title', array('header' => $this->__('Title / Info'), 'align' => 'left', 'type' => 'text', 'index' => 'title', 'escape' => true, 'filter_index' => 'main_table.title', 'frame_callback' => array($this, 'callbackColumnTitle'), 'filter_condition_callback' => array($this, 'callbackFilterTitle'))); return parent::_prepareColumns(); }