public function __construct()
 {
     if (!self::$Facebook) {
         FacebookInfo::getConfig();
         self::$Facebook = new Facebook(FacebookInfo::$configs);
     }
 }
Beispiel #2
0
 /**
  * Initialize a new instance if none exists
  */
 private function __initInstance()
 {
     if (empty(self::$Facebook)) {
         self::$Facebook = new Facebook(FacebookInfo::getConfig());
     }
 }
Beispiel #3
0
  public function __construct() {
    if (empty(self::$Facebook)) {
			self::$Facebook = new Facebook(FacebookInfo::getConfig());
		}
  }
Beispiel #4
0
 public function __construct()
 {
     if (!self::$Facebook) {
         self::$Facebook = new Facebook(Configure::read('Facebook'));
     }
 }