protected function _initColumns() { $this->_columns->add(new Kwf_Grid_Column('title', trlKwf('Title'), 200)); $this->_columns->add(new Kwf_Grid_Column('current_price', trlKwf('Current Price'), 100))->setRenderer('euroMoney'); $this->_columns->add(new Kwf_Grid_Column_Visible()); parent::_initColumns(); }
protected function _initColumns() { $this->_columns->add(new Kwf_Grid_Column_Visible('visible')); $this->_columns->add(new Kwf_Grid_Column('title', trlKwf('Title'), 300)); parent::_initColumns(); $this->_columns->add(new Kwf_Grid_Column_Date('publish_date', trlKwf('Publish Date'))); }
protected function _initColumns() { $this->_columns->add(new Kwf_Grid_Column_Checkbox('visible', trlKwf('Visible'), 40))->setEditor(new Kwf_Form_Field_Checkbox()); $this->_columns->add(new Kwf_Grid_Column_Date('create_time', trlKwf('Create Date'))); $this->_columns->add(new Kwf_Grid_Column('content', trlKwf('Content'), 350)); $this->_columns->add(new Kwf_Grid_Column('name', trlKwf('Name'), 130)); $this->_columns->add(new Kwf_Grid_Column('email', trlKwf('E-Mail'), 150)); parent::_initColumns(); }
protected function _initColumns() { $this->_columns->add(new Kwf_Grid_Column('subject', trlKwf('Subject'), 300))->setSortable(false); $this->_columns->add(new Kwf_Grid_Column('create_date', trlKwf('Creation Date'), 120))->setRenderer('localizedDatetime'); $this->_columns->add(new Kwf_Grid_Column('info_short', trlKwf('Status'), 400))->setSortable(false); parent::_initColumns(); $countEditButtons = 0; foreach ($this->_columns as $column) { if ($column instanceof Kwc_Directories_Item_Directory_ControllerEditButton) { $countEditButtons++; } } if ($countEditButtons == 1) { $this->_columns->getByName('edit_0')->setEditName(trlKwf('Edit'))->setRenderer('cellButtonText')->setWidth(85); } }