Ejemplo n.º 1
0
 /**
  * Get input for distance
  * @param string $distance
  * @return FormularInput 
  */
 protected function getDistanceInputCode($distance)
 {
     $FieldDistance = new FormularInput('splits[km][]', '', $distance);
     $FieldDistance->setUnit(Configuration::General()->distanceUnitSystem()->distanceUnit());
     $FieldDistance->setLayout(FormularFieldset::$LAYOUT_FIELD_INLINE);
     $FieldDistance->setParser(FormularValueParser::$PARSER_DISTANCE);
     $FieldDistance->hideLabel();
     return $FieldDistance->getCode();
 }