コード例 #1
0
 private function createCommentNode(array $row)
 {
     $comment_node = $this->node_helper->createElement('comment');
     $this->node_helper->appendSubmittedBy($comment_node, $row['submitted_by'], $row['is_anonymous']);
     $this->node_helper->appendSubmittedOn($comment_node, $row['date']);
     $comment = Encoding_SupportedXmlCharEncoding::getXMLCompatibleString($row['comment']);
     $body = $this->node_helper->getNodeWithValue('body', $comment);
     $body->setAttribute('format', $this->getFormat($row['format']));
     $comment_node->appendChild($body);
     return $comment_node;
 }
コード例 #2
0
 private function getBareChangeset($submitted_by, $is_anonymous, $submitted_on)
 {
     $changeset_node = $this->node_helper->createElement('changeset');
     $this->node_helper->appendSubmittedBy($changeset_node, $submitted_by, $is_anonymous);
     $this->node_helper->appendSubmittedOn($changeset_node, $submitted_on);
     $this->comment_exporter->createRootNode($changeset_node);
     return $changeset_node;
 }