You are here

public static function PuSHEnvironment::instance in Feeds 7

Same name and namespace in other branches
  1. 6 plugins/FeedsHTTPFetcher.inc \PuSHEnvironment::instance()
  2. 7.2 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 274

Class

PuSHEnvironment
Provide environmental functions to the PuSHSubscriber library.

Code

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