private function _getListAction($path) { @($ticket_id = DevblocksPlatform::importGPC($_REQUEST['ticket_id'], 'integer', 0)); if (0 == $ticket_id) { $this->_error("Ticket ID was not provided."); } $ticket_comments = DAO_TicketComment::getWhere(sprintf("%s = %d", DAO_TicketComment::TICKET_ID, $ticket_id)); $xml_out = new SimpleXMLElement("<comments></comments>"); foreach ($ticket_comments as $comment) { $xml_comment = $xml_out->addChild('comment'); $xml_comment->addChild('id', $comment->id); $xml_comment->addChild('ticket_id', $comment->ticket_id); $xml_comment->addChild('created', $comment->created); $xml_comment->addChild('address_id', $comment->address_id); $xml_comment->addChild('comment', $comment->comment); } $this->_render($xml_out->asXML()); }