/**
  * Set internal fields
  */
 protected function setFields()
 {
     if (!is_null($this->FieldTime)) {
         return;
     }
     $this->FieldTime = new FormularInputHidden($this->name, __('Time'), $this->value);
     $this->FieldDay = new FormularInput($this->getFieldDayName(), __('Date'), $this->value);
     $this->FieldDay->addCSSclass('pick-a-date');
     $this->FieldDay->setParser(FormularValueParser::$PARSER_DATE);
     $this->FieldDaytime = new FormularInput($this->getFieldDaytimeName(), __('Time of day'), $this->value);
     $this->FieldDaytime->setParser(FormularValueParser::$PARSER_DAYTIME);
 }
 /**
  * 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();
 }