Пример #1
0
 public function __construct()
 {
     if ($this->provider === null) {
         $this->provider = new SQLImpressionsProvider();
     }
     if ($this->peopleTagManager === null) {
         $this->peopleTagManager = PeopleTagManager::getInstance();
     }
     if ($this->impressionTagManager === null) {
         $this->impressionTagManager = ImpressionTagManager::getInstance();
     }
 }
Пример #2
0
 public static function getInstance()
 {
     if (self::$Instance === null) {
         self::$Instance = new ImpressionTagManager();
     }
     return self::$Instance;
 }