/**
  * get single GameFbRealTime instance from a DOMElement
  *
  * @param DOMElement $node
  * @return GameFbRealTime
  */
 public static function fromDOMElement(DOMElement $node)
 {
     $o = new GameFbRealTime();
     $o->assignByHash(self::domNodeToHash($node, self::$FIELD_NAMES, self::$DEFAULT_VALUES, self::$FIELD_TYPES));
     $o->notifyPristine();
     return $o;
 }
Ejemplo n.º 2
0
<?php

define("__ROOT__", __DIR__ . "/../");
require_once __ROOT__ . 'config/constants.php';
require_once __ROOT__ . 'utils/Functions.php';
require_once __ROOT__ . "models/GameFbRealTime.class.php";
$fb = new GameFbRealTime();
$fb->setGetData(json_encode($_GET));
$fb->setPostData(json_encode($_POST));
$fb->setTime(time());
$fb->insertIntoDatabase(DBUtils::getConnection());
if (isset($_GET["hub_challenge"])) {
    echo $_GET["hub_challenge"];
}