Ejemplo n.º 1
0
 function getNoteComments($noteId, $playerId)
 {
     $query = "SELECT note_id FROM notes WHERE incomplete = '0' AND parent_note_id = '{$noteId}'";
     $result = Module::query($query);
     if (mysql_error()) {
         return new returnData(1, NULL, mysql_error());
     }
     $comments = array();
     while ($commentNoteId = mysql_fetch_object($result)) {
         $comment = Notes::getFullNoteObject($commentNoteId->note_id, $playerId);
         $comments[] = $comment;
     }
     return $comments;
 }