MS_Addon_BuddyPress_Rule_ListTable

Membership List Table.

Defined (1)

The class is defined in the following location(s).

/app/addon/buddypress/rule/class-ms-addon-buddypress-rule-listtable.php  
  1. class MS_Addon_BuddyPress_Rule_ListTable extends MS_Helper_ListTable_Rule { 
  2.  
  3. /** 
  4. * List-ID is only used to generate the list HTML code. 
  5. * @var string 
  6. */ 
  7. protected $id = 'rule_buddypress'; 
  8.  
  9. /** 
  10. * Define available columns 
  11. * @since 1.1.0 
  12. * @return array 
  13. */ 
  14. public function get_columns() { 
  15. return apply_filters( 
  16. 'ms_helper_listtable_' . $this->id . '_columns',  
  17. array( 
  18. 'cb' => true,  
  19. 'name' => __( 'Type', MS_TEXT_DOMAIN ),  
  20. 'access' => true,  
  21. ); 
  22.  
  23. /** 
  24. * Return list of sortable columns. 
  25. * @since 1.1.0 
  26. * @return array 
  27. */ 
  28. public function get_sortable_columns() { 
  29. return array(); 
  30.  
  31. /** 
  32. * Render the contents of the "name" column. 
  33. * @since 1.1.0 
  34. * @param object $item Item that is displayed, provided by the model. 
  35. * @return string The HTML code. 
  36. */ 
  37. public function column_name( $item ) { 
  38. $html = sprintf( 
  39. '<div>%1$s</div><div>%2$s</div>',  
  40. esc_html( $item->name ),  
  41. esc_html( $item->description ) 
  42. ); 
  43.  
  44. return $html; 
  45.  
  46. /** 
  47. * Do not display a Title above the list. 
  48. * @since 1.1.0 
  49. */ 
  50. public function list_head() { 
  51.  
  52. /** 
  53. * Do not display a status-filter for this rule. 
  54. * @since 1.1.0 
  55. * @return array 
  56. */ 
  57. public function get_views() { 
  58. return array(); 
  59.