BBoss_Global_Search_bbPress_Forums

BuddyPress Global Search - search bbpress forums **************************************.

Defined (1)

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

/includes/search-types/class.BBoss_Global_Search_bbPress_Forums.php  
  1. class BBoss_Global_Search_bbPress_Forums extends BBoss_Global_Search_bbPress { 
  2. public $type = 'forum'; 
  3.  
  4. /** 
  5. * Insures that only one instance of Class exists in memory at any 
  6. * one time. Also prevents needing to define globals all over the place. 
  7. * @since 1.0.0 
  8. *  
  9. * @return object BBoss_Global_Search_Forums 
  10. */ 
  11. public static function instance() { 
  12. // Store the instance locally to avoid private static replication 
  13. static $instance = null; 
  14.  
  15. // Only run these methods if they haven't been run previously 
  16. if (null === $instance) { 
  17. $instance = new BBoss_Global_Search_bbPress_Forums(); 
  18.  
  19. // Always return the instance 
  20. return $instance; 
  21.  
  22. /** 
  23. * A dummy constructor to prevent this class from being loaded more than once. 
  24. * @since 1.0.0 
  25. */ 
  26. private function __construct() { /** Do nothing here */ 
  27.