private function makeTrackerInstance() { SettingsServer::setIsTrackerApiRequest(); $storage = Factory::make('PluginName'); SettingsServer::setIsNotTrackerApiRequest(); return $storage; }
/** * Constructor. */ public function __construct($pluginName = null) { if (!empty($pluginName)) { $this->pluginName = $pluginName; } else { $classname = get_class($this); $parts = explode('\\', $classname); if (3 <= count($parts)) { $this->pluginName = $parts[2]; } } $this->storage = Storage\Factory::make($this->pluginName); $this->init(); }