You are here

public static function PuSHEnvironment::instance in Feeds 6

Same name and namespace in other branches
  1. 7.2 plugins/FeedsHTTPFetcher.inc \PuSHEnvironment::instance()
  2. 7 plugins/FeedsHTTPFetcher.inc \PuSHEnvironment::instance()

Singleton.

1 call to PuSHEnvironment::instance()
FeedsHTTPFetcher::subscriber in plugins/FeedsHTTPFetcher.inc
Convenience method for instantiating a subscriber object.

File

plugins/FeedsHTTPFetcher.inc, line 277

Class

PuSHEnvironment
Provide environmental functions to the PuSHSubscriber library.

Code

public static function instance() {
  static $env;
  if (empty($env)) {
    $env = new PuSHEnvironment();
  }
  return $env;
}