示例#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();
 }