MS_Rule_Category_ListTable

Membership List Table.

Defined (1)

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

/app/rule/category/class-ms-rule-category-listtable.php  
  1. class MS_Rule_Category_ListTable extends MS_Helper_ListTable_Rule { 
  2.  
  3. protected $id = MS_Rule_Category::RULE_ID; 
  4.  
  5. public function __construct( $model ) { 
  6. parent::__construct( $model ); 
  7. $this->name['singular'] = __( 'Category', 'membership2' ); 
  8. $this->name['plural'] = __( 'Categories', 'membership2' ); 
  9.  
  10. public function get_columns() { 
  11. return apply_filters( 
  12. "membership_helper_listtable_{$this->id}_columns",  
  13. array( 
  14. 'cb' => true,  
  15. 'name' => __( 'Category name', 'membership2' ),  
  16. 'access' => true,  
  17. ); 
  18.  
  19. public function get_sortable_columns() { 
  20. return apply_filters( 
  21. "membership_helper_listtable_{$this->id}_sortable_columns",  
  22. array( 
  23. 'name' => 'name',  
  24. 'access' => 'access',  
  25. ); 
  26.  
  27. public function column_name( $item, $column_name ) { 
  28. return $item->name; 
  29.