/**
  * This method display default column
  *
  * @return string $item[ $column_name ]
  * @author Nicolas Juen
  */
 function column_default($item, $column_name)
 {
     $value = '';
     switch ($column_name) {
         case 'id':
         case 'email':
         case 'bounce_cat':
         case 'bounce_type':
         case 'bounce_no':
             $value = $item->{$column_name};
             break;
         case 'current_status':
             $value = Bea_Sender_Client::getStatus($item->current_status);
             break;
         case 'campaign_status':
             $value = Bea_Sender_Client::getStatus($item->campaign_current_status);
             break;
     }
     return apply_filters('manage_' . $this->screen->id . '_single_custom_column', $value, $item, $column_name);
 }
 /**
  * Define the columns that are going to be used in the table
  *
  * @return array $columns, the array of columns to use with the table
  * @author Amaury Balmer, Alexandre Sadowski
  */
 function get_columns()
 {
     return array('cb' => '<input type="checkbox" />', 'id' => __('ID', 'bea_sender'), 'current_status' => __('Status', 'bea_sender'), 'add_date' => __('Date added', 'bea_sender'), 'scheduled_from' => __('Scheduled from', 'bea_sender'), 'from' => __('From', 'bea_sender'), 'from_name' => __('From name', 'bea_sender'), 'subject' => __('Subject', 'bea_sender'), 'todo' => __('Emails to send', 'bea_sender'), 'success' => Bea_Sender_Client::getStatus('send'), 'failed' => Bea_Sender_Client::getStatus('failed'), 'bounced' => Bea_Sender_Client::getStatus('bounced'));
 }