protected function runProcessStep($mitglied)
 {
     $row = array();
     $replacer = new MitgliedTextReplacer($mitglied);
     foreach ($this->getFields() as $field => $template) {
         $row[$field] = $replacer->replaceText($template);
     }
     $this->getStreamHandler()->writeFile($row);
 }
 public function getKommentar()
 {
     $replacer = new MitgliedTextReplacer($this->getMitglied());
     return $replacer->replaceText(parent::getKommentar());
 }
 public function runProcessStep($mitglied)
 {
     if ($mitglied->getEintrittsdatum() <= $this->getTimestamp()) {
         $eintritt = $this->normMitgliederCountTime($mitglied->getEintrittsdatum());
         if ($eintritt < $this->getMitgliederCountStart()) {
             $this->curMitgliederCount++;
         } else {
             $this->santizeArray($this->mitgliederEintritte, $eintritt);
             $this->mitgliederEintritte[$eintritt]++;
             $this->maxMitgliederEintritte = max($this->maxMitgliederEintritte, $this->mitgliederEintritte[$eintritt]);
         }
         if ($mitglied->getAustrittsdatum() != null) {
             $austritt = $this->normMitgliederCountTime($mitglied->getAustrittsdatum());
             if ($austritt < $this->getMitgliederCountStart()) {
                 $this->curMitgliederCount--;
             } else {
                 $this->santizeArray($this->mitgliederAustritte, $austritt);
                 $this->mitgliederAustritte[$austritt]++;
                 $this->maxMitgliederAustritte = max($this->maxMitgliederAustritte, $this->mitgliederAustritte[$austritt]);
             }
         }
         // Bis zum Ende des Graphen noch nicht Ausgetreten
         if ($mitglied->getAustrittsdatum() == null || $mitglied->getAustrittsdatum() > $this->getMitgliederCountEnd()) {
             $revision = $mitglied->getLatestRevision();
             $replacer = new MitgliedTextReplacer($mitglied);
             foreach ($this->factors as $i => $factorString) {
                 $mitgliedString = $replacer->replaceText($factorString);
                 $this->santizeArray($this->mitgliederFactorCount[$i], $mitgliedString);
                 $this->mitgliederFactorCount[$i][$mitgliedString]++;
             }
         }
     }
 }