MS_Rule_Special_ListTable

Membership List Table.

Defined (1)

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

/app/rule/special/class-ms-rule-special-listtable.php  
  1. class MS_Rule_Special_ListTable extends MS_Helper_ListTable_Rule { 
  2.  
  3. protected $id = MS_Rule_Special::RULE_ID; 
  4.  
  5. public function __construct( $model ) { 
  6. parent::__construct( $model ); 
  7. $this->name['singular'] = __( 'Special Page', 'membership2' ); 
  8. $this->name['plural'] = __( 'Special Pages', 'membership2' ); 
  9.  
  10. public function get_columns() { 
  11. $columns = array( 
  12. 'cb' => true,  
  13. 'name' => __( 'Page title', 'membership2' ),  
  14. 'url' => __( 'Example', 'membership2' ),  
  15. 'access' => true,  
  16. ); 
  17.  
  18. if ( MS_Model_Membership::TYPE_DRIPPED !== $this->membership->type ) { 
  19. unset( $columns['dripped'] ); 
  20.  
  21. return apply_filters( 
  22. "ms_helper_listtable_{$this->id}_columns",  
  23. $columns 
  24. ); 
  25.  
  26. public function column_name( $item ) { 
  27. return $item->post_title; 
  28.  
  29. public function column_url( $item ) { 
  30. return $item->url; 
  31.