Exemple #1
0
 private function makeTrackerInstance()
 {
     SettingsServer::setIsTrackerApiRequest();
     $storage = Factory::make('PluginName');
     SettingsServer::setIsNotTrackerApiRequest();
     return $storage;
 }
Exemple #2
0
 /**
  * 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();
 }