当前位置: 首页>>代码示例>>PHP>>正文


PHP client::logPlayerCreatedComment方法代码示例

本文整理汇总了PHP中client::logPlayerCreatedComment方法的典型用法代码示例。如果您正苦于以下问题:PHP client::logPlayerCreatedComment方法的具体用法?PHP client::logPlayerCreatedComment怎么用?PHP client::logPlayerCreatedComment使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在client的用法示例。


在下文中一共展示了client::logPlayerCreatedComment方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: createNoteComment

 public static function createNoteComment($pack)
 {
     $pack->auth->permission = "read_write";
     if (!users::authenticateUser($pack->auth)) {
         return new return_package(6, NULL, "Failed Authentication");
     }
     $pack->note_comment_id = dbconnection::queryInsert("INSERT INTO note_comments (" . "game_id," . "note_id," . "user_id," . (isset($pack->name) ? "name," : "") . (isset($pack->description) ? "description," : "") . "created" . ") VALUES (" . "'" . $pack->game_id . "'," . "'" . $pack->note_id . "'," . "'" . $pack->auth->user_id . "'," . (isset($pack->name) ? "'" . addslashes($pack->name) . "'," : "") . (isset($pack->description) ? "'" . addslashes($pack->description) . "'," : "") . "CURRENT_TIMESTAMP" . ")");
     client::logPlayerCreatedComment($pack);
     games::bumpGameVersion($pack);
     return note_comments::getNoteComment($pack);
 }
开发者ID:kimblemj,项目名称:server,代码行数:11,代码来源:note_comments.php


注:本文中的client::logPlayerCreatedComment方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。