/** * Init configuration */ protected function initConfiguration() { $ShowPaces = new PluginConfigurationValueBool('show_trainingpaces', __('Show: Paces')); $ShowPaces->setTooltip(__('Paces based on your curent VDOT')); $ShowPaces->setDefaultValue(true); $ShowTrimp = new PluginConfigurationValueBool('show_trimpvalues', __('Show: ATL/CTL/TSB')); $ShowTrimp->setTooltip(__('Show actual/chronical training load and stress balance (based on TRIMP)')); $ShowTrimp->setDefaultValue(true); $ShowTrimpExtra = new PluginConfigurationValueBool('show_trimpvalues_extra', __('Show: Monotony/TS')); $ShowTrimpExtra->setTooltip(__('Show monotony and training strain (based on TRIMP)')); $ShowTrimpExtra->setDefaultValue(true); $ShowVDOT = new PluginConfigurationValueBool('show_vdot', __('Show: VDOT')); $ShowVDOT->setTooltip(__('Predict current VDOT value')); $ShowVDOT->setDefaultValue(true); $ShowBE = new PluginConfigurationValueBool('show_basicendurance', __('Show: Basic endurance')); $ShowBE->setTooltip(__('Guess current basic endurance')); $ShowBE->setDefaultValue(true); $ShowJD = new PluginConfigurationValueBool('show_jd_intensity', __('Show: Training points')); $ShowJD->setTooltip(__('Training intensity by Jack Daniels')); $ShowJD->setDefaultValue(true); $Configuration = new PluginConfiguration($this->id()); $Configuration->addValue($ShowPaces); $Configuration->addValue($ShowTrimp); $Configuration->addValue($ShowTrimpExtra); $Configuration->addValue($ShowVDOT); $Configuration->addValue($ShowBE); $Configuration->addValue($ShowJD); $this->setConfiguration($Configuration); }
/** * Init configuration */ protected function initConfiguration() { $OldTableView = new PluginConfigurationValueBool('show_as_table', __('Old table view')); $OldTableView->setDefaultValue(false); $Configuration = new PluginConfiguration($this->id()); $Configuration->addValue($OldTableView); $this->setConfiguration($Configuration); }
/** * Init configuration */ protected function initConfiguration() { $Distances = new PluginConfigurationValueArray('distances', __('Distances to predict')); $Distances->setDefaultValue(array(1, 3, 5, 10, 21.1, 42.2)); $Model = new PluginConfigurationValueSelect('model', __('Prediction model')); $Model->setOptions(array('jd' => 'Jack Daniels', 'cpp' => 'Robert Bock (CPP)', 'steffny' => 'Herbert Steffny', 'cameron' => 'David Cameron')); $Model->setDefaultValue('jd'); $BasicEndurance = new PluginConfigurationValueBool('use_be', __('Use basic endurance'), __('Use basic endurance factor to adapt prognosis for long distances (Jack Daniels only).')); $BasicEndurance->setDefaultValue(true); $Configuration = new PluginConfiguration($this->id()); $Configuration->addValue($Distances); $Configuration->addValue($Model); $Configuration->addValue($BasicEndurance); $this->setConfiguration($Configuration); }