Exemplo n.º 1
0
 public static function getInstance()
 {
     if (self::$Instance === null) {
         self::$Instance = new PeopleTagManager();
     }
     return self::$Instance;
 }
Exemplo n.º 2
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();
     }
 }