You are here

public static function UltimateCronPlugin::factory in Ultimate Cron 7.2

Singleton factoryLogEntry.

File

./ultimate_cron.plugin.inc, line 47
Plugin framework for Ultimate Cron.

Class

UltimateCronPlugin
This is the base class for all Ultimate Cron plugins.

Code

public static function factory($class, $name, $plugin) {
  if (empty($class::$instances[$plugin['plugin type']][$name])) {
    self::$instances[$plugin['plugin type']][$name] = new $class($name, $plugin);
  }
  return self::$instances[$plugin['plugin type']][$name];
}