本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例6: additionalFields
protected function additionalFields()
{
$this->xmlWriter->writeElement('CALC_BOIL_VOLUME', $this->boolToString($this->record->getCalcBoilVolume()));
return parent::additionalFields();
}