Ejemplo n.º 1
0
 /**
  * Read settings from configuration
  */
 public function readSettingsFromConfiguration()
 {
     $this->VDOT = Configuration::Data()->vdot();
     $BasicEndurance = Configuration::BasicEndurance();
     $this->MIN_KM_FOR_LONGJOG = $BasicEndurance->minKmForLongjog();
     $this->DAYS_FOR_WEEK_KM = $BasicEndurance->daysForWeekKm();
     $this->DAYS_FOR_WEEK_KM_MIN = $BasicEndurance->daysForWeekKmMin();
     $this->DAYS_FOR_LONGJOGS = $BasicEndurance->daysForLongjogs();
     $this->PERCENTAGE_WEEK_KM = $BasicEndurance->percentageWeekKm();
     $this->PERCENTAGE_LONGJOGS = $BasicEndurance->percentageLongjogs();
 }
Ejemplo n.º 2
0
 /**
  * All categories
  * @return ConfigurationCategory[]
  */
 private function allCategories()
 {
     return array(Configuration::General(), Configuration::Privacy(), Configuration::ActivityView(), Configuration::ActivityForm(), Configuration::Design(), Configuration::DataBrowser(), Configuration::Vdot(), Configuration::Trimp(), Configuration::BasicEndurance(), Configuration::Misc());
 }