/**
  * get single GameUserFbProductLog instance from a DOMElement
  *
  * @param DOMElement $node
  * @return GameUserFbProductLog
  */
 public static function fromDOMElement(DOMElement $node)
 {
     $o = new GameUserFbProductLog();
     $o->assignByHash(self::domNodeToHash($node, self::$FIELD_NAMES, self::$DEFAULT_VALUES, self::$FIELD_TYPES));
     $o->notifyPristine();
     return $o;
 }
 public static function getFBProductLogs($start, $end)
 {
     $SQL = "SELECT * FROM " . TBL_GAME_USER_FB_PRODUCT_LOG . " WHERE userId NOT IN(" . ADMIN_EXCEPT_USERS . ") AND type='buy_product' AND time BETWEEN " . $start . " AND " . $end . " ORDER BY time";
     $array = GameUserFbProductLog::findBySql(DBUtils::getConnection(), $SQL);
     return $array;
 }