예제 #1
0
 /**
  * @{inheritDoc}
  */
 protected function additionalFields()
 {
     if ($amountIsWeight = $this->record->getAmountIsWeight()) {
         $this->xmlWriter->writeElement('AMOUNT_IS_WEIGHT', $this->boolToString($amountIsWeight));
     }
     parent::additionalFields();
 }
예제 #2
0
 /**
  * @{inheritDoc}
  */
 protected function additionalFields()
 {
     if (\BeerXML\Record\MashStep::TYPE_DECOCTION != $this->record->getType()) {
         $this->xmlWriter->writeElement('INFUSE_AMOUNT', $this->record->getInfuseAmount());
     }
     return parent::additionalFields();
 }
예제 #3
0
 /**
  * @{inheritDoc}
  */
 protected function additionalFields()
 {
     $efficiency = $this->record->getEfficiency();
     if (!empty($efficiency) || \BeerXML\Record\Recipe::TYPE_ALL_GRAIN == $this->record->getType() || \BeerXML\Record\Recipe::TYPE_PARTIAL_MASH == $this->record->getType()) {
         $this->xmlWriter->writeElement('EFFICIENCY', $efficiency);
     }
     if ($forcedCarb = $this->record->getForcedCarbonation()) {
         $this->xmlWriter->writeElement('FORCED_CARBONATION', $this->boolToString($forcedCarb));
     }
     $date = $this->record->getDate();
     if ($date instanceof \DateTime) {
         $this->xmlWriter->writeElement('DATE', $date->format('d M y'));
     }
     parent::additionalFields();
 }
예제 #4
0
 /**
  * @{inheritDoc}
  */
 protected function additionalFields()
 {
     $amountIsWeight = $this->record->getAmountIsWeight();
     if (!is_null($amountIsWeight)) {
         $this->xmlWriter->writeElement('AMOUNT_IS_WEIGHT', $this->boolToString($amountIsWeight));
     }
     $addToSecondary = $this->record->getAddToSecondary();
     if (!is_null($addToSecondary)) {
         $this->xmlWriter->writeElement('ADD_TO_SECONDARY', $this->boolToString($addToSecondary));
     }
     if ($this->record instanceof $this->displayInterface) {
         $cultureDate = $this->record->getCultureDate();
         if ($cultureDate instanceof \DateTime) {
             $this->xmlWriter->writeElement('CULTURE_DATE', $cultureDate->format('d M y'));
         }
     }
     parent::additionalFields();
 }
예제 #5
0
 /**
  * @{inheritDoc}
  */
 protected function additionalFields()
 {
     $this->xmlWriter->writeElement('ADD_AFTER_BOIL', $this->boolToString($this->record->getAddAfterBoil()));
     $this->xmlWriter->writeElement('MAX_IN_BATCH', $this->boolToString($this->record->getRecommendMash()));
     return parent::additionalFields();
 }
예제 #6
0
 protected function additionalFields()
 {
     $this->xmlWriter->writeElement('CALC_BOIL_VOLUME', $this->boolToString($this->record->getCalcBoilVolume()));
     return parent::additionalFields();
 }