當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Utility::emitXML方法代碼示例

本文整理匯總了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;
}
開發者ID:juliomiy,項目名稱:gameon-web,代碼行數:18,代碼來源:t.php

示例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;
}
開發者ID:juliomiy,項目名稱:gameon-web,代碼行數:17,代碼來源:go_getgameinvites.php

示例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;
 }
開發者ID:juliomiy,項目名稱:gameon-web,代碼行數:14,代碼來源:go_usersettings.class.php

示例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;
 }
開發者ID:juliomiy,項目名稱:gameon-web,代碼行數:16,代碼來源:go_userbank.class.php

示例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;
}
開發者ID:juliomiy,項目名稱:gameon-web,代碼行數:19,代碼來源:go_postupdateuser.php

示例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;
}
開發者ID:juliomiy,項目名稱:gameon-web,代碼行數:17,代碼來源:go_getpublicgames.php

示例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;
}
開發者ID:juliomiy,項目名稱:gameon-web,代碼行數:19,代碼來源:go_postfriend.php

示例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);
}
開發者ID:juliomiy,項目名稱:gameon-web,代碼行數:31,代碼來源:go_getgamesubscribers.php

示例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;
 }
開發者ID:juliomiy,項目名稱:gameon-web,代碼行數:21,代碼來源:go_publicgame.class.php

示例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;
 }
開發者ID:juliomiy,項目名稱:gameon-web,代碼行數:14,代碼來源:go_activityreward.class.php

示例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;
}
開發者ID:juliomiy,項目名稱:gameon-web,代碼行數:10,代碼來源:go_postgamesubscribe.php


注:本文中的Utility::emitXML方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。