当前位置: 首页>>代码示例>>PHP>>正文


PHP Record::additionalFields方法代码示例

本文整理汇总了PHP中Record::additionalFields方法的典型用法代码示例。如果您正苦于以下问题:PHP Record::additionalFields方法的具体用法?PHP Record::additionalFields怎么用?PHP Record::additionalFields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Record的用法示例。


在下文中一共展示了Record::additionalFields方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: additionalFields

 /**
  * @{inheritDoc}
  */
 protected function additionalFields()
 {
     if ($amountIsWeight = $this->record->getAmountIsWeight()) {
         $this->xmlWriter->writeElement('AMOUNT_IS_WEIGHT', $this->boolToString($amountIsWeight));
     }
     parent::additionalFields();
 }
开发者ID:georgeh,项目名称:php-beerxml,代码行数:10,代码来源:Misc.php

示例2: additionalFields

 /**
  * @{inheritDoc}
  */
 protected function additionalFields()
 {
     if (\BeerXML\Record\MashStep::TYPE_DECOCTION != $this->record->getType()) {
         $this->xmlWriter->writeElement('INFUSE_AMOUNT', $this->record->getInfuseAmount());
     }
     return parent::additionalFields();
 }
开发者ID:georgeh,项目名称:php-beerxml,代码行数:10,代码来源:MashStep.php

示例3: additionalFields

 /**
  * @{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();
 }
开发者ID:georgeh,项目名称:php-beerxml,代码行数:18,代码来源:Recipe.php

示例4: additionalFields

 /**
  * @{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();
 }
开发者ID:georgeh,项目名称:php-beerxml,代码行数:21,代码来源:Yeast.php

示例5: additionalFields

 /**
  * @{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();
 }
开发者ID:georgeh,项目名称:php-beerxml,代码行数:9,代码来源:Fermentable.php

示例6: additionalFields

 protected function additionalFields()
 {
     $this->xmlWriter->writeElement('CALC_BOIL_VOLUME', $this->boolToString($this->record->getCalcBoilVolume()));
     return parent::additionalFields();
 }
开发者ID:georgeh,项目名称:php-beerxml,代码行数:5,代码来源:Equipment.php


注:本文中的Record::additionalFields方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。