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