Exemplo n.º 1
0
 protected function _prepareColumns()
 {
     $this->addColumn('create_date', array('header' => $this->__('Creation Date'), 'align' => 'left', 'type' => 'datetime', 'index' => 'create_date'));
     $this->addColumn('task', array('header' => $this->__('Task'), 'align' => 'left', 'type' => 'options', 'index' => 'task', 'sortable' => false, 'filter_index' => 'task', 'filter_condition_callback' => array($this, 'callbackFilterTask'), 'option_groups' => $this->getActionTitles(), 'options' => $this->actionsTitles));
     $this->addColumn('description', array('header' => $this->__('Description'), 'align' => 'left', 'type' => 'text', 'index' => 'description', 'filter_index' => 'main_table.description', 'frame_callback' => array($this, 'callbackDescription')));
     $this->addColumn('type', array('header' => $this->__('Type'), 'index' => 'type', 'align' => 'right', 'type' => 'options', 'sortable' => false, 'options' => $this->_getLogTypeList(), 'frame_callback' => array($this, 'callbackColumnType')));
     return parent::_prepareColumns();
 }
Exemplo n.º 2
0
 protected function _prepareColumns()
 {
     $columnTitles = $this->getColumnTitles();
     $this->addColumn('create_date', array('header' => $columnTitles['create_date'], 'align' => 'left', 'type' => 'datetime', 'width' => '150px', 'index' => 'create_date', 'filter_index' => 'main_table.create_date'));
     $this->addColumn('action', array('header' => $columnTitles['action'], 'align' => 'left', 'type' => 'options', 'index' => 'action', 'sortable' => false, 'filter_index' => 'main_table.action', 'options' => $this->getActionTitles()));
     $this->addColumn('identifier', array('header' => $columnTitles['identifier'], 'align' => 'left', 'type' => 'text', 'index' => 'identifier', 'filter_index' => 'main_table.identifier', 'frame_callback' => array($this, 'callbackColumnIdentifier')));
     $this->addColumn('title', array('header' => $columnTitles['title'], 'align' => 'left', 'type' => 'text', 'index' => 'title', 'filter_index' => 'main_table.title', 'frame_callback' => array($this, 'callbackColumnTitle')));
     $this->addColumn('description', array('header' => $columnTitles['description'], 'align' => 'left', 'type' => 'text', 'index' => 'description', 'filter_index' => 'main_table.description', 'frame_callback' => array($this, 'callbackDescription')));
     $this->addColumn('initiator', array('header' => $columnTitles['initiator'], 'index' => 'initiator', 'align' => 'right', 'type' => 'options', 'sortable' => false, 'options' => $this->_getLogInitiatorList(), 'frame_callback' => array($this, 'callbackColumnInitiator')));
     $this->addColumn('type', array('header' => $columnTitles['type'], 'index' => 'type', 'align' => 'right', 'type' => 'options', 'sortable' => false, 'options' => $this->_getLogTypeList(), 'frame_callback' => array($this, 'callbackColumnType')));
     return parent::_prepareColumns();
 }