当前位置: 首页>>代码示例>>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;未经允许,请勿转载。