예제 #1
0
파일: notes.php 프로젝트: kimblemj/server
 private static function getNoteCommentsAPI($noteId, $playerId)
 {
     $query = "SELECT note_id FROM notes WHERE parent_note_id = '{$noteId}'";
     $result = Module::query($query);
     $comments = array();
     while ($commentNoteId = mysql_fetch_object($result)) {
         $comment = Notes::getDetailedFullNoteObject($commentNoteId->note_id, $playerId);
         $comments[] = $comment;
     }
     return $comments;
 }