bpModAbstractCore

Contains vars and methods shared by installer/frontend/backend/actions.

Defined (1)

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

/classes/bpModAbstractCore.php  
  1. class bpModAbstractCore 
  2.  
  3. /** 
  4. * BuddyPress Moderation version 
  5. * @var string 
  6. */ 
  7. var $plugin_ver = '0.1.7'; 
  8.  
  9. /** 
  10. * database tables & options version 
  11. * needed to check if install/upgrade is needed or not on activation 
  12. * @var int 
  13. */ 
  14. var $db_ver = -100; 
  15.  
  16. /** 
  17. * required version of wordpress 
  18. * @var string 
  19. */ 
  20. var $min_wp_ver = '3.2'; 
  21.  
  22. /** 
  23. * required version of buddypress 
  24. * @var string 
  25. */ 
  26. var $min_bp_ver = '1.5'; 
  27.  
  28. /** 
  29. * Name of the db table where reported contents are stored 
  30. * db prefix get added in __construct 
  31. * @var string 
  32. */ 
  33. var $contents_table = 'bp_mod_contents'; 
  34.  
  35. /** 
  36. * Name of the db table where flags are stored 
  37. * db prefix get added in __construct 
  38. * @var string 
  39. */ 
  40. var $flags_table = 'bp_mod_flags'; 
  41.  
  42. /** 
  43. * Array of the stati contents can be in 
  44. * map status slug to status label 
  45. * @var array 
  46. */ 
  47. var $content_stati; 
  48.  
  49. /** 
  50. * bpModAbstractCore constructor 
  51. */ 
  52. function __construct() 
  53. global $wpdb; 
  54.  
  55. $this->contents_table = $wpdb->base_prefix . $this->contents_table; 
  56. $this->flags_table = $wpdb->base_prefix . $this->flags_table; 
  57.  
  58. $this->content_stati = array( 
  59. 'new' => __('new', 'bp-moderation'),  
  60. 'warned' => __('author warned', 'bp-moderation'),  
  61. 'ignored' => __('ignored', 'bp-moderation'),  
  62. 'moderated' => __('moderated (unknown)', 'bp-moderation'),  
  63. 'edited' => __('moderated (edited)', 'bp-moderation'),  
  64. 'deleted' => __('moderated (deleted)', 'bp-moderation') 
  65. );