Class Recipe
Abstract Record Parser
This sets the stage for all of our parsers. Each subclass can define a map of tags to setter methods. The parser will then call the setter methods with the values from those tags.
- BeerXML\Parser\Record
- BeerXML\Parser\Recipe
protected
|
|
protected
|
createRecordParser(),
parse(),
setComplexProperty(),
setComplexPropertySet(),
setRecordFactory(),
setXmlReader(),
setXmlString()
|
protected
string
|
$tagName | 'RECIPE' |
#
The <TAG> that a subclass parses |
protected
array
|
$simpleProperties | array(
'AGE' => 'setAge',
'AGE_TEMP' => 'setAgeTemp',
'ASST_BREWER' => 'setAsstBrewer',
'BATCH_SIZE' => 'setBatchSize',
'BOIL_SIZE' => 'setBoilSize',
'BOIL_TIME' => 'setBoilTime',
'BREWER' => 'setBrewer',
'CARBONATION' => 'setCarbonation',
'CARBONATION_TEMP' => 'setCarbonationTemp',
'EFFICIENCY' => 'setEfficiency',
'FERMENTATION_STAGES' => 'setFermentationStages',
'FG' => 'setFg',
'KEG_PRIMING_FACTOR' => 'setKegPrimingFactor',
'NAME' => 'setName',
'NOTES' => 'setNotes',
'OG' => 'setOg',
'PRIMARY_AGE' => 'setPrimaryAge',
'PRIMARY_TEMP' => 'setPrimaryTemp',
'PRIMING_SUGAR_EQUIV' => 'setPrimingSugarEquiv',
'PRIMING_SUGAR_NAME' => 'setPrimingSugarName',
'SECONDARY_AGE' => 'setSecondaryAge',
'SECONDARY_TEMP' => 'setSecondaryTemp',
'TASTE_NOTES' => 'setTasteNotes',
'TASTE_RATING' => 'setTasteRating',
'TERTIARY_AGE' => 'setTertiaryAge',
'TERTIARY_TEMP' => 'setTertiaryTemp',
'TYPE' => 'setType',
'VERSION' => 'setVersion',
) |
#
Tags that map to simple values and the corresponding setter method on the record class |
$complexProperties,
$complexPropertySets,
$recordFactory,
$xmlReader
|