コード例 #1
0
ファイル: XMLImport.class.php プロジェクト: ndjido/tuleap
 private function updateComments(Tracker_Artifact_Changeset $changeset, SimpleXMLElement $xml_changeset)
 {
     if (isset($xml_changeset->comments) && count($xml_changeset->comments->comment) > 1) {
         $all_comments = $xml_changeset->comments->comment;
         for ($i = 1; $i < count($all_comments); ++$i) {
             $changeset->updateComment((string) $all_comments[$i]->body, $this->getSubmittedBy($all_comments[$i]), (string) $all_comments[$i]->body['format'], $this->getSubmittedOn($all_comments[$i]));
         }
     }
 }