コード例 #1
0
 protected function _prepareColumns()
 {
     $this->addColumn('trigger', array('header' => $this->__('Trigger'), 'sortable' => true, 'index' => 'trigger'));
     $this->addColumn('class', array('header' => $this->__('Class'), 'sortable' => true, 'index' => 'class'));
     $this->addColumn('method', array('header' => $this->__('Method'), 'sortable' => true, 'index' => 'method'));
     return parent::_prepareColumns();
 }
コード例 #2
0
ファイル: Grid.php プロジェクト: Rodrifer/candyclub
 public function getSkinUrl($file = null, array $params = array())
 {
     if (strpos($file, 'images/') !== null) {
         $file = 'extendware/ewcore/' . $file;
     }
     return parent::getSkinUrl($file, $params);
 }
コード例 #3
0
 protected function _prepareColumns()
 {
     $this->addColumn('priority_name', array('header' => $this->__('Priority Name'), 'index' => 'priority_name', 'width' => '100px', 'sortable' => false, 'filter' => false));
     $this->addColumn('message', array('header' => $this->__('Message'), 'index' => 'message', 'renderer' => 'Extendware_EWCore_Block_Adminhtml_System_Log_Edit_Grid_Renderer_Message', 'sortable' => false, 'filter' => false));
     $this->addColumn('date', array('header' => $this->__('date'), 'index' => 'date', 'type' => 'datetime', 'width' => '155px', 'gmtoffset' => true, 'default' => ' ---- ', 'sortable' => false, 'filter' => false));
     return parent::_prepareColumns();
 }
コード例 #4
0
 protected function _prepareColumns()
 {
     $this->addColumn('type', array('header' => $this->__('Type'), 'sortable' => true, 'width' => '70px', 'index' => 'type'));
     $this->addColumn('class_key', array('header' => $this->__('Class Key'), 'sortable' => true, 'index' => 'class_key'));
     $this->addColumn('rewrite_class', array('header' => $this->__('Rewrite Class'), 'sortable' => true, 'index' => 'rewrite_class'));
     $this->addColumn('resulting_class', array('header' => $this->__('Resulting Class'), 'sortable' => true, 'index' => 'resulting_class'));
     return parent::_prepareColumns();
 }
コード例 #5
0
 protected function _prepareColumns()
 {
     $this->addColumn('name', array('header' => $this->__('Name'), 'index' => 'name', 'sortable' => false, 'filter' => false));
     $this->addColumn('relative_path', array('header' => $this->__('Path'), 'index' => 'relative_path', 'sortable' => false, 'filter' => false));
     $this->addColumn('size', array('header' => $this->__('Size'), 'index' => 'size', 'sortable' => false, 'filter' => false));
     $this->addColumn('updated_at', array('header' => $this->__('Updated'), 'index' => 'updated_at', 'type' => 'datetime', 'width' => '155px', 'gmtoffset' => true, 'default' => ' ---- ', 'sortable' => false, 'filter' => false));
     $this->addColumn('action', array('header' => $this->__('Action'), 'width' => '100px', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => $this->__('View'), 'url' => array('base' => '*/*/edit'), 'field' => 'id'), array('caption' => $this->__('Download'), 'url' => array('base' => '*/*/download'), 'field' => 'id'), array('caption' => $this->__('Delete'), 'url' => array('base' => '*/*/delete'), 'field' => 'id', 'confirm' => $this->__('Are you sure?'))), 'filter' => false, 'sortable' => false, 'is_system' => true));
     return parent::_prepareColumns();
 }
コード例 #6
0
 protected function _prepareColumns()
 {
     $this->addColumn('system_message_id', array('header' => $this->__('ID'), 'index' => 'system_message_id', 'align' => 'right', 'width' => '50px'));
     $this->addColumn('extension', array('header' => $this->__('Extension'), 'index' => 'extension', 'default' => ' ---- ', 'width' => '200px', 'type' => 'options', 'options' => $this->_getCollection()->createOptionModel('extension')->reorder('value', 'asc')->toGridOptionArray()));
     $this->addColumn('category', array('header' => $this->__('Category'), 'index' => 'category', 'width' => '125px', 'type' => 'options', 'options' => $this->_getCollection()->createOptionModel('category')->reorder('value', 'asc')->toGridOptionArray()));
     $this->addColumn('subject', array('header' => $this->__('Subject'), 'index' => 'subject', 'default' => ' ---- '));
     $this->addColumn('created_at', array('header' => $this->__('Created'), 'index' => 'created_at', 'type' => 'datetime', 'width' => '155px', 'gmtoffset' => true, 'default' => ' ---- ', 'sortable' => true, 'filter' => false));
     $this->addColumn('action', array('header' => $this->__('Action'), 'width' => '100px', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => $this->__('View Info'), 'url' => array('base' => '*/*/edit'), 'field' => 'id'), array('caption' => $this->__('Delete'), 'url' => array('base' => '*/*/delete'), 'field' => 'id', 'confirm' => $this->__('Are you sure?'))), 'filter' => false, 'sortable' => false, 'is_system' => true));
     return parent::_prepareColumns();
 }
コード例 #7
0
 protected function _prepareColumns()
 {
     $this->addColumn('schedule_id', array('header' => $this->__('ID'), 'width' => '50px', 'type' => 'text', 'index' => 'schedule_id', 'align' => 'right'));
     $this->addColumn('status', array('header' => $this->__('Status'), 'width' => '50px', 'type' => 'options', 'index' => 'status', 'options' => Mage::getSingleton('ewcore/adminhtml_data_option_cron_status')->toGridOptionArray()));
     $this->addColumn('job_code', array('header' => $this->__('Code'), 'width' => '200px', 'type' => 'options', 'index' => 'job_code', 'options' => Mage::getSingleton('ewcore/adminhtml_data_option_cron_code')->reorder('value', 'asc')->toGridOptionArray()));
     $this->addColumn('scheduled_at', array('header' => $this->__('Scheduled For'), 'index' => 'scheduled_at', 'type' => 'datetime', 'width' => '155px', 'default' => ' ---- ', 'renderer' => 'ewcore/adminhtml_widget_grid_column_renderer_datetime'));
     $this->addColumn('executed_at', array('header' => $this->__('Executed'), 'index' => 'executed_at', 'type' => 'datetime', 'width' => '155px', 'default' => ' ---- ', 'renderer' => 'ewcore/adminhtml_widget_grid_column_renderer_datetime'));
     $this->addColumn('finished_at', array('header' => $this->__('Finished'), 'index' => 'finished_at', 'type' => 'datetime', 'width' => '155px', 'default' => ' ---- ', 'default' => ' ---- ', 'renderer' => 'ewcore/adminhtml_widget_grid_column_renderer_datetime'));
     $this->addColumn('messages', array('header' => $this->__('Messages'), 'type' => 'text', 'index' => 'messages'));
     return parent::_prepareColumns();
 }
コード例 #8
0
 protected function _prepareColumns()
 {
     $this->addColumn('url_id', array('header' => $this->__('ID'), 'index' => 'url_id', 'align' => 'right', 'width' => '50px'));
     $this->addColumn('status', array('header' => $this->__('Status'), 'index' => 'status', 'type' => 'options', 'options' => Mage::getSingleton('ewcrawler/url_data_option_status')->toGridOptionArray(), 'width' => '100px'));
     $this->addColumn('protocol', array('header' => $this->__('Protocol'), 'index' => 'protocol', 'type' => 'options', 'options' => Mage::getSingleton('ewcrawler/url_data_option_protocol')->toGridOptionArray(), 'width' => '100px'));
     $this->addColumn('path', array('header' => $this->__('Path'), 'index' => 'path'));
     $this->addColumn('cookies', array('header' => $this->__('Cookies'), 'index' => 'cookies'));
     $this->addColumn('store_ids', array('type' => 'number', 'header' => $this->__('Store Ids'), 'index' => 'store_ids', 'width' => '100px', 'default' => ' ---- '));
     $this->addColumn('customer_group_ids', array('type' => 'number', 'header' => $this->__('Customer Group Ids'), 'index' => 'customer_group_ids', 'width' => '100px', 'default' => ' ---- '));
     $this->addColumn('created_at', array('header' => $this->__('Date Created'), 'index' => 'created_at', 'type' => 'datetime', 'width' => '155px', 'gmtoffset' => true, 'default' => ' ---- '));
     $this->addColumn('action', array('header' => $this->__('Action'), 'width' => '50px', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => $this->__('Edit'), 'url' => array('base' => '*/*/edit'), 'field' => 'id')), 'filter' => false, 'sortable' => false, 'is_system' => true));
     return parent::_prepareColumns();
 }
コード例 #9
0
 protected function _prepareColumns()
 {
     $this->addColumn('job_id', array('header' => $this->__('ID'), 'index' => 'job_id', 'align' => 'right', 'width' => '50px'));
     $this->addColumn('status', array('header' => $this->__('Status'), 'index' => 'status', 'type' => 'options', 'options' => Mage::getSingleton('ewcrawler/job_data_option_status')->toGridOptionArray(), 'width' => '100px'));
     $this->addColumn('state', array('header' => $this->__('State'), 'index' => 'state', 'type' => 'options', 'options' => Mage::getSingleton('ewcrawler/job_data_option_state')->toGridOptionArray(), 'width' => '100px'));
     $this->addColumn('percent_crawled', array('type' => 'number', 'header' => $this->__('% Crawled'), 'index' => 'num_crawled_urls', 'width' => '50px', 'default' => ' ---- ', 'renderer' => 'Extendware_EWCrawler_Block_Adminhtml_Job_Grid_Renderer_PercentCrawled', 'filter' => false, 'sortable' => false));
     $this->addColumn('num_crawled_urls', array('type' => 'number', 'header' => $this->__('Crawled Urls'), 'index' => 'num_crawled_urls', 'width' => '50px', 'default' => ' ---- '));
     $this->addColumn('num_generated_urls', array('type' => 'number', 'header' => $this->__('Num Generated Urls'), 'index' => 'num_generated_urls', 'width' => '100px', 'default' => ' ---- '));
     $this->addColumn('num_logged_urls', array('type' => 'number', 'header' => $this->__('Num Logged Urls'), 'index' => 'num_logged_urls', 'width' => '100px', 'default' => ' ---- '));
     $this->addColumn('num_custom_urls', array('type' => 'number', 'header' => $this->__('Num Custom Urls'), 'index' => 'num_custom_urls', 'width' => '100px', 'default' => ' ---- '));
     $this->addColumn('started_at', array('header' => $this->__('Date Started'), 'index' => 'started_at', 'type' => 'datetime', 'width' => '155px', 'gmtoffset' => true, 'default' => ' ---- '));
     $this->addColumn('scheduled_at', array('header' => $this->__('Date Scheduled'), 'index' => 'scheduled_at', 'type' => 'datetime', 'width' => '155px', 'gmtoffset' => true, 'default' => ' ---- '));
     $this->addColumn('action', array('header' => $this->__('Action'), 'width' => '50px', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => $this->__('Edit'), 'url' => array('base' => '*/*/edit'), 'field' => 'id')), 'filter' => false, 'sortable' => false, 'is_system' => true));
     return parent::_prepareColumns();
 }
コード例 #10
0
 protected function _prepareColumns()
 {
     /*$this->addColumn('message_id', array(
           'header'    => $this->__('ID'),
       	'index'     => 'message_id',
           'align'     => 'right',
           'width'     => '50px',
       ));*/
     $this->addColumn('severity', array('header' => $this->__('Severity'), 'index' => 'severity', 'default' => ' ---- ', 'width' => '60px', 'type' => 'options', 'options' => Mage::getSingleton('ewcore/message')->getSeverityOptionModel()->toGridOptionArray(), 'renderer' => 'ewcore/adminhtml_message_grid_renderer_severity', 'sortable' => false));
     $this->addColumn('subject', array('header' => $this->__('Subject'), 'index' => 'subject', 'default' => ' ---- ', 'renderer' => 'ewcore/adminhtml_message_grid_renderer_subject', 'sortable' => false));
     $this->addColumn('category', array('header' => $this->__('Category'), 'index' => 'category', 'default' => ' ---- ', 'width' => '125px', 'type' => 'options', 'options' => $this->_getCollection()->createOptionModel('category')->reorder('value', 'asc')->toGridOptionArray(), 'sortable' => false));
     $this->addColumn('state', array('header' => $this->__('State'), 'index' => 'state', 'default' => ' ---- ', 'width' => '60px', 'type' => 'options', 'options' => Mage::getSingleton('ewcore/message')->getStateOptionModel()->toGridOptionArray(), 'sortable' => false));
     $this->addColumn('sent_at', array('header' => $this->__('Date Sent'), 'index' => 'sent_at', 'type' => 'datetime', 'width' => '155px', 'gmtoffset' => true, 'default' => ' ---- ', 'sortable' => true, 'filter' => false));
     $this->addColumn('action', array('header' => $this->__('Action'), 'width' => '100px', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => $this->__('View Message'), 'url' => array('base' => '*/*/edit'), 'field' => 'id'), array('caption' => $this->__('Mark as Read'), 'url' => array('base' => '*/*/markRead'), 'field' => 'id', 'confirm' => $this->__('Are you sure you want to mark message as read?')), array('caption' => $this->__('Delete'), 'url' => array('base' => '*/*/delete'), 'field' => 'id', 'confirm' => $this->__('Are you sure you want to delete message?'))), 'filter' => false, 'sortable' => false, 'is_system' => true));
     return parent::_prepareColumns();
 }
コード例 #11
0
ファイル: Log.php プロジェクト: platonicsolution/local-server
 protected function _prepareColumns()
 {
     $this->addColumn('created_at', array('header' => $this->__('Created'), 'index' => 'created_at', 'type' => 'datetime', 'width' => '155px', 'gmtoffset' => true, 'default' => ' ---- ', 'sortable' => false, 'filter' => false));
     $this->addColumn('message', array('header' => $this->__('Message'), 'index' => 'message', 'sortable' => false, 'filter' => false));
     return parent::_prepareColumns();
 }