本文整理汇总了PHP中Utility::emitXML方法的典型用法代码示例。如果您正苦于以下问题:PHP Utility::emitXML方法的具体用法?PHP Utility::emitXML怎么用?PHP Utility::emitXML使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utility
的用法示例。
在下文中一共展示了Utility::emitXML方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: mydie
function mydie($msg, $statusCode = "500", $link = null)
{
global $LOG;
ob_end_clean();
$LOG->log("{$sql}", PEAR_LOG_ERR);
if (isset($link)) {
$link->close();
}
ob_start();
header("Content-Type: text/xml");
// header("HTTP/1.1" . $statusCode . " Internal Server Error");
Utility::emitXML("", 'games', 0);
Utility::emitXML("{$statusCode}", 'status_code');
Utility::emitXML("{$msg}", 'status_message');
Utility::emitXML("", 'games', 0);
ob_end_flush();
die;
}
示例2: mydie
function mydie($message, $statusCode = 500, $link = null)
{
global $LOG;
$LOG->log("{$message}", PEAR_LOG_ERR);
ob_end_clean();
if (isset($link)) {
$link->close();
}
ob_start();
header("Content-Type: text/xml");
Utility::emitXML("", "game_invites", 0);
Utility::emitXML($statusCode, "status_code");
Utility::emitXML("{$message}", "status_message");
Utility::emitXML("", "game_invites", 0);
ob_end_flush();
exit;
}
示例3: mydie
private function mydie($message, $link, $statusCode = 500)
{
if ($link) {
$link->close();
}
$this->LOG->log("{$message}", PEAR_LOG_ERR);
header("Content-Type: text/xml");
header('HTTP/1.1 $statusCode Internal Server Error');
Utility::emitXML("", "usersettings", 0);
Utility::emitXML("{$statusCode}", "status_code");
Utility::emitXML("{$message}", "status_message");
Utility::emitXML("", "usersettings", 0);
exit;
}
示例4: toStringXML
private function toStringXML()
{
$xml = "";
Utility::$emitForm = "string";
$xml .= Utility::emitXML("", "userbank", 0);
$xml .= Utility::emitXML($this->getLastCode(), "status_code");
$xml .= Utility::emitXML($this->getLastMessage(), "status_message");
$xml .= Utility::emitXML($this->getUserID(), "userid");
$xml .= Utility::emitXML($this->getBankBalance(), "bankbalance");
$xml .= Utility::emitXML($this->getAvailableToWager(), "availabletowager");
$xml .= Utility::emitXML($this->getCurrentInPlayWager(), "currentinplaywager");
$xml .= Utility::emitXML($this->getOverDraftLine(), "overdraftline");
$xml .= Utility::emitXML($this->getOverDraftLineUsed(), "overdraftlineused");
$xml .= Utility::emitXML("", "userbank", 0);
return $xml;
}
示例5: mydie
function mydie($message, $statusCode = 500)
{
global $LOG;
global $link;
ob_end_clean();
if ($link) {
$link->close();
}
$LOG->log("{$message}", PEAR_LOG_ERR);
ob_start();
header("Content-Type: text/xml");
// header('HTTP/1.1 $statusCode Internal Server Error');
Utility::emitXML("", "insert_user", 0);
Utility::emitXML("{$statusCode}", "status_code");
Utility::emitXML("{$message}", "status_message");
Utility::emitXML("", "insert_user", 0);
ob_end_flush();
exit;
}
示例6: mydie
function mydie($msg, $link = null)
{
global $LOG;
ob_end_clean();
$LOG->log("{$msg}", PEAR_LOG_ERR);
if (isset($link)) {
$link->close();
}
ob_start();
header("content-type: text/xml");
Utility::emitXML("", 'publicgames', 0);
Utility::emitXML("500", 'statuscode');
Utility::emitXML("{$msg}", 'statusmessage');
Utility::emitXML("", 'publicgames', 0);
ob_end_flush();
die;
}
示例7: mydie
function mydie($message, $statusCode = 500, $link = null)
{
global $LOG;
ob_end_clean();
header("Cache-Control: no-cache, must-revalidate");
header("Content-Type: text/xml");
$LOG->log("{$message}", PEAR_LOG_ERR);
if (isset($link)) {
$link->close();
}
ob_start();
header("Content-Type: text/xml");
Utility::emitXML("", "insert_game", 0);
Utility::emitXML($statusCode, "status_code");
Utility::emitXML("{$message}", "status_message");
Utility::emitXML("", "insert_game", 0);
ob_end_flush();
exit;
}
示例8: while
/* Fetch the results of the query */
echo '<?xml version="1.0"?>';
Utility::emitXML("", 'gamesubscribers', 0);
$recordsEmitted = 0;
while ($row = mysqli_fetch_assoc($cursor)) {
Utility::emitXML("", 'game', 0);
Utility::emitXML($row['gameID'], "gameid");
Utility::emitXML($row['userID'], "userid");
Utility::emitXML($row['userName'], "username");
//Utility::emitXML($row['position'],"position"); //temp
Utility::emitXML($row['wagerUnits'], "wagerunits");
Utility::emitXML("", 'game', 0);
$recordsEmitted++;
}
//while
Utility::emitXML("", "gamesubscribers", 0);
$cursor->close();
$link->close();
/* Close Database */
ob_end_flush();
exit;
function mydie($msg, $link = null)
{
global $LOG;
ob_end_clean();
$LOG->log("{$sql}", PEAR_LOG_ERR);
if (isset($link)) {
$link->close();
}
die($msg);
}
示例9: toStringXML
private function toStringXML()
{
$xml = "";
Utility::$emitForm = "string";
$xml .= Utility::emitXML("", "publicgame", 0);
$xml .= Utility::emitXML($this->getGameID(), "gameid");
$xml .= Utility::emitXML($this->getTitle(), "title");
$xml .= Utility::emitXML($this->getEventName(), "eventname");
$xml .= Utility::emitXML($this->getEventDate(), "eventdate");
$xml .= Utility::emitXML($this->getDescription(), "description");
$xml .= Utility::emitXML($this->getHomeTeam(), "hometeam");
$xml .= Utility::emitXML($this->getVisitingTeam(), "visitingteam");
$xml .= Utility::emitXML($this->getTypeName(), "type");
$xml .= Utility::emitXML($this->getSportName(), "sport");
$xml .= Utility::emitXML($this->getLeagueName(), "league");
$xml .= Utility::emitXML($this->getLeagueID(), "leagueid");
$xml .= Utility::emitXML($this->getFavorite(), "favorite");
$xml .= Utility::emitXML($this->getNumberofSubscribers(), "numbersubscribers");
$xml .= Utility::emitXML("", "publicgame", 0);
return $xml;
}
示例10: toStringXML
private function toStringXML()
{
$xml = "";
Utility::$emitForm = "string";
$xml .= Utility::emitXML("", "activityreward", 0);
$xml .= Utility::emitXML($this->getLastCode(), "status_code");
$xml .= Utility::emitXML($this->getLastMessage(), "status_message");
$xml .= Utility::emitXML($this->getActivityRewardID(), "activityrewardid");
$xml .= Utility::emitXML($this->getActivityRewardName(), "activityrewardname");
$xml .= Utility::emitXML($this->getActivityRewardAmount(), "activityrewardamount");
$xml .= Utility::emitXML($this->getActivityRewardType(), "activityrewardtype");
$xml .= Utility::emitXML("", "activityreward", 0);
return $xml;
}
示例11: mydie
function mydie($message, $statusCode = 500)
{
Utility::emitXML("", "insert_game_subscriber", 0);
Utility::emitXML("{$statusCode}", "status_code");
Utility::emitXML("{$message}", "status_message");
Utility::emitXML("", "insert_game_subscriber", 0);
$LOG->log("{$message}", PEAR_LOG_ERR);
ob_end_flush();
exit;
}