MS_Rule_Content_ListTable

Membership List Table.

Defined (1)

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

/app/rule/content/class-ms-rule-content-listtable.php  
  1. class MS_Rule_Content_ListTable extends MS_Helper_ListTable_Rule { 
  2.  
  3. protected $id = MS_Rule_Content::RULE_ID; 
  4.  
  5. public function __construct( $model ) { 
  6. parent::__construct( $model ); 
  7. $this->name['singular'] = __( 'Content Part', 'membership2' ); 
  8. $this->name['plural'] = __( 'Content Parts', 'membership2' ); 
  9.  
  10. public function get_columns() { 
  11. $columns = array( 
  12. 'cb' => true,  
  13. 'name' => __( 'Content Part', 'membership2' ),  
  14. 'access' => true,  
  15. ); 
  16.  
  17. if ( MS_Model_Membership::TYPE_DRIPPED !== $this->membership->type ) { 
  18. unset( $columns['dripped'] ); 
  19.  
  20. return apply_filters( 
  21. "ms_helper_listtable_{$this->id}_columns",  
  22. $columns 
  23. ); 
  24.  
  25. public function column_name( $item ) { 
  26. return $item->name; 
  27.  
  28. /** 
  29. * This rule has only one view. 
  30. * @since 1.0.0 
  31. */ 
  32. public function get_views() { 
  33. return array(); 
  34.