Overview

Namespaces

  • BeerXML
    • Exception
    • Generator
    • Parser
    • Record
  • PHP

Classes

  • Equipment
  • Fermentable
  • Hop
  • MashProfile
  • MashStep
  • Misc
  • Recipe
  • Record
  • Style
  • Water
  • Yeast

Interfaces

  • IEquipment
  • IEquipmentDisplay
  • IFermentable
  • IFermentableDisplay
  • IHop
  • IHopDisplay
  • IMashProfile
  • IMashProfileDisplay
  • IMashStep
  • IMashStepDisplay
  • IMisc
  • IMiscDisplay
  • IRecipe
  • IRecipeDisplay
  • IStyle
  • IStyleDisplay
  • IWater
  • IWaterDisplay
  • IYeast
  • IYeastDisplay
  • Overview
  • Namespace
  • Class
  • Tree

Class Record

Direct known subclasses

BeerXML\Generator\Equipment, BeerXML\Generator\Fermentable, BeerXML\Generator\Hop, BeerXML\Generator\MashProfile, BeerXML\Generator\MashStep, BeerXML\Generator\Misc, BeerXML\Generator\Recipe, BeerXML\Generator\Style, BeerXML\Generator\Water, BeerXML\Generator\Yeast
Abstract
Namespace: BeerXML\Generator
Located at BeerXML/Generator/Record.php
Methods summary
public
# setXmlWriter( XMLWriter $xmlWriter )

Parameters

$xmlWriter
XMLWriter
$xmlWriter
public
# setRecord( BeerXML\Generator\IHop|BeerXML\Generator\IFermentable|BeerXML\Generator\IEquipment|BeerXML\Generator\IYeast|BeerXML\Generator\IMisc|BeerXML\Generator\IWater|BeerXML\Generator\IStyle|BeerXML\Generator\IMashStep|BeerXML\Generator\IMashProfile|BeerXML\Generator\IRecipe $record )

Parameters

$record
BeerXML\Generator\IHop|BeerXML\Generator\IFermentable|BeerXML\Generator\IEquipment|BeerXML\Generator\IYeast|BeerXML\Generator\IMisc|BeerXML\Generator\IWater|BeerXML\Generator\IStyle|BeerXML\Generator\IMashStep|BeerXML\Generator\IMashProfile|BeerXML\Generator\IRecipe
$record
public null
# build( )

Construct the record in XMLWriter

Construct the record in XMLWriter

Returns

null
protected string
# boolToString( boolean $bool )

Converts a boolean to the string format expected by BeerXML

Converts a boolean to the string format expected by BeerXML

Parameters

$bool
boolean
$bool

Returns

string
'TRUE' or 'FALSE'
protected
# additionalFields( )

Runs before closing out the build sequence, to add fields that require logic

Runs before closing out the build sequence, to add fields that require logic

Properties summary
protected XMLWriter $xmlWriter
#
protected mixed $record
#
protected string $tagName
#
protected array $simpleValues array()
#

<TAG> => getterMethod()

<TAG> => getterMethod()

protected array $optionalSimpleValues array()
#

<TAG> => getterMethod()

<TAG> => getterMethod()

protected array $complexValues array()
#
protected array $complexValueSets array()
#

<TAG> => array('generator' => 'BeerXML\Generator\Class', 'values' => 'getRecords')

<TAG> => array('generator' => 'BeerXML\Generator\Class', 'values' => 'getRecords')

protected string $displayInterface
#

The interface for the optional display fields in Appendix A of the spec

The interface for the optional display fields in Appendix A of the spec

protected array $displayValues array()
#

<TAG> => getterMethod()

<TAG> => getterMethod()

For the optional tags from the display fields in Appendix A of the spec

php-beerxml API documentation generated by ApiGen 2.8.0