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