private function getCachedRawMailByChangesetsForArtifact(Tracker_Artifact $artifact)
 {
     if (!isset($this->cache[$artifact->getId()])) {
         $this->cache[$artifact->getId()] = array();
         foreach ($this->dao->searchByArtifactId($artifact->getId()) as $row) {
             $this->cache[$artifact->getId()][$row['changeset_id']] = $row['raw_mail'];
         }
     }
     return $this->cache[$artifact->getId()];
 }
Example #2
0
 private function linkRawMailToChangeset($raw_mail, Tracker_Artifact_Changeset $changeset)
 {
     $this->incoming_mail_dao->save($changeset->getId(), $raw_mail);
 }
Example #3
0
 private function linkRawMailToChangeset($raw_mail, Tracker_Artifact_Changeset $changeset)
 {
     $this->logger->debug('Linking created changeset (' . $changeset->getId() . ') to the raw mail.');
     $this->incoming_mail_dao->save($changeset->getId(), $raw_mail);
 }