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
 1: <?php
 2: 
 3: 
 4: namespace BeerXML\Generator;
 5: 
 6: 
 7: class Equipment extends Record
 8: {
 9:     protected $tagName = 'EQUIPMENT';
10: 
11:     /**
12:      * @var \BeerXML\Record\Equipment
13:      */
14:     protected $record;
15: 
16:     /**
17:      * <TAG> => getterMethod
18:      *
19:      * @var array
20:      */
21:     protected $simpleValues = array(
22:         'NAME'       => 'getName',
23:         'VERSION'    => 'getVersion',
24:         'BATCH_SIZE' => 'getBatchSize',
25:         'BOIL_SIZE'  => 'getBoilSize',
26:     );
27: 
28:     protected $optionalSimpleValues = array(
29:         'BOIL_TIME'         => 'getBoilTime',
30:         'TUN_VOLUME'        => 'getTunVolume',
31:         'TUN_VOLUME'        => 'getTunVolume',
32:         'TUN_WEIGHT'        => 'getTunWeight',
33:         'TUN_SPECIFIC_HEAT' => 'getTunSpecificHeat',
34:         'TOP_UP_WATER'      => 'getTopUpWater',
35:         'TRUB_CHILLER_LOSS' => 'getTrubChillerLoss',
36:         'EVAP_RATE'         => 'getEvapRate',
37:         'LAUTER_DEADSPACE'  => 'getLauterDeadspace',
38:         'TOP_UP_KETTLE'     => 'getTopUpKettle',
39:         'HOP_UTILIZATION'   => 'getHopUtilization',
40:         'NOTES'             => 'getNotes',
41:     );
42: 
43:     protected $displayInterface = 'BeerXML\Generator\IEquipmentDisplay';
44: 
45:     protected $displayValues = array(
46:         'DISPLAY_BOIL_SIZE'         => 'getDisplayBoilSize',
47:         'DISPLAY_BATCH_SIZE'        => 'getDisplayBatchSize',
48:         'DISPLAY_TUN_VOLUME'        => 'getDisplayTunVolume',
49:         'DISPLAY_TUN_WEIGHT'        => 'getDisplayTunWeight',
50:         'DISPLAY_TOP_UP_WATER'      => 'getDisplayTopUpWater',
51:         'DISPLAY_TRUB_CHILLER_LOSS' => 'getDisplayTrubChillerLoss',
52:         'DISPLAY_LAUTER_DEADSPACE'  => 'getDisplayLauterDeadspace',
53:         'DISPLAY_TOP_UP_KETTLE'     => 'getDisplayTopUpKettle',
54:     );
55: 
56:     protected function additionalFields()
57:     {
58:         $this->xmlWriter->writeElement('CALC_BOIL_VOLUME', $this->boolToString($this->record->getCalcBoilVolume()));
59: 
60:         return parent::additionalFields();
61:     }
62: 
63: }
php-beerxml API documentation generated by ApiGen 2.8.0