Beispiel #1
0
 /**
  * Construct
  */
 public function __construct($default = self::MONDAY)
 {
     parent::__construct($default, array('options' => array(self::MONDAY => __('Monday'), self::SUNDAY => __('Sunday'))));
 }
Beispiel #2
0
 /**
  * Construct
  */
 public function __construct()
 {
     parent::__construct(self::ASC, array('options' => array(self::ASC => __('id (oldest first)'), self::DESC => __('id (latest first)'), self::ALPHA => __('alphabetical'))));
 }
Beispiel #3
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testInvalidOption()
 {
     $this->object->set('foobar');
 }
 /**
  * Construct
  */
 public function __construct()
 {
     parent::__construct(self::ALWAYS, array('options' => array(self::NEVER => __('never'), self::RACE => __('only for competitions'), self::ALWAYS => __('always'))));
 }
Beispiel #5
0
 /**
  * Set value
  * @param mixed $value new value
  * @throws \InvalidArgumentException
  */
 public function set($value)
 {
     parent::set($value);
     $this->UnitObject = $this->getNewPaceUnitObject($value);
 }
Beispiel #6
0
 /**
  * Construct
  * @param string $Key
  */
 public function __construct()
 {
     parent::__construct(self::AUTO, array('options' => array(0 => __('automatic'), 60 => '1:00/km', 120 => '2:00/km', 180 => '3:00/km', 240 => '4:00/km', 300 => '5:00/km', 360 => '6:00/km', 420 => '7:00/km', 480 => '8:00/km', 540 => '9:00/km', 600 => '10:00/km', 660 => '11:00/km', 720 => '12:00/km', 780 => '13:00/km', 840 => '14:00/km', 900 => '15:00/km')));
 }
Beispiel #7
0
 /**
  * Construct
  */
 public function __construct()
 {
     parent::__construct(self::HRMAX, array('options' => array(self::BPM => __('absolute value'), self::HRMAX => __('% HRmax'), self::HRRESERVE => __('% HRreserve'))));
 }
Beispiel #8
0
 /**
  * Construct
  */
 public function __construct()
 {
     parent::__construct(self::NONE, array('options' => array(self::NONE => '--- ' . __('please choose'), self::MALE => __('male'), self::FEMALE => __('female'))));
 }
Beispiel #9
0
 /**
  * Construct
  */
 public function __construct()
 {
     parent::__construct(self::WEEK, array('options' => array(self::WEEK => __('Week view'), self::MONTH => __('Month view'))));
 }
 /**
  * Construct
  */
 public function __construct()
 {
     parent::__construct(self::UPLOAD, array('options' => array(self::UPLOAD => __('Upload form'), self::GARMIN => __('Garmin-Communicator'), self::FORM => __('Standard form'))));
 }
Beispiel #11
0
 /**
  * Construct
  * @param string $default from class enum
  */
 public function __construct($default = self::METRIC)
 {
     parent::__construct($default, ['options' => [self::METRIC => __('Metric units'), self::IMPERIAL => __('Imperial units')]]);
 }
Beispiel #12
0
 /**
  * Construct
  */
 public function __construct()
 {
     parent::__construct(self::SEPERATED, array('options' => array(self::SEPERATED => __('all separated'), self::PACE_HR => __('Pace / Heart rate'), self::PACE_HR_ELEVATION => __('Pace / Heart rate / Elevation'))));
 }
Beispiel #13
0
 public function __construct()
 {
     parent::__construct(self::AS_SPEED, array('options' => array(self::LINEAR => __('linear'), self::REVERSE => __('reversed linear'), self::AS_SPEED => __('as speed'))));
 }
Beispiel #14
0
 /**
  * Construct
  */
 public function __construct()
 {
     parent::__construct('15', array('options' => array(self::NO_BREAK => __('never'), '15' => __('at too big distance (15s)'), '30' => __('at too big distance (30s)'), '60' => __('at too big distance (60s)'), '120' => __('at too big distance (120s)'), '240' => __('at too big distance (240s)'), '300' => __('at too big distance (300s)'), '600' => __('at too big distance (600s)'))));
 }
Beispiel #15
0
 /**
  * Construct
  * @param string $default
  */
 public function __construct($default = self::KG)
 {
     parent::__construct($default, array('options' => array(self::KG => __('kilograms'), self::POUNDS => __('pounds'), self::STONES => __('stones'))));
 }
 /**
  * Construct
  */
 public function __construct()
 {
     parent::__construct('200points', array('options' => array('50m' => __('every 50m a data point'), '100m' => __('every 100m a data point'), '200m' => __('every 200m a data point'), '500m' => __('every 500m a data point'), '50points' => __('max. 50 data points'), '100points' => __('max. 100 data points'), '200points' => __('max. 200 data points (recommended)'), '300points' => __('max. 300 data points'), '400points' => __('max. 400 data points'), '500points' => __('max. 500 data points'), '750points' => __('max. 750 data points'), '1000points' => __('max. 1000 data points'))));
 }
 /**
  * Construct
  */
 public function __construct()
 {
     parent::__construct('5', array('options' => array('1' => __('every data point'), '2' => __('every second data point'), '5' => __('every fifth data point (recommended)'), '10' => __('every tenth data point'), '20' => __('every twentieth data point'))));
 }
Beispiel #18
0
 /**
  * Construct
  */
 public function __construct()
 {
     parent::__construct(self::LOGARITHMIC, array('options' => array(self::LOGARITHMIC => __('logarithmic (new method since v1.5)'), self::LINEAR => __('linear (old method up to v1.4)'))));
 }
Beispiel #19
0
 /**
  * Construct
  * @param string $default
  */
 public function __construct($default = self::CELSIUS)
 {
     parent::__construct($default, array('options' => array(self::CELSIUS => __('Celsius (°C)'), self::FAHRENHEIT => __('Fahrenheit (°F)'))));
 }
Beispiel #20
0
 /**
  * Construct
  */
 public function __construct()
 {
     parent::__construct(self::THRESHOLD, array('options' => array(self::NONE => __('no smoothing'), self::THRESHOLD => __('Threshold method'), self::DOUGLAS_PEUCKER => __('Douglas-Peucker-Algorithm'))));
 }