コード例 #1
0
ファイル: VdotIcon.php プロジェクト: n0rthface/Runalyze
 /**
  * Vdot Icon
  * @param float $vdotValue
  * @param float $currentShape
  */
 public function __construct($vdotValue = null, $currentShape = null)
 {
     parent::__construct(self::BASE_CLASS);
     if (!is_null($vdotValue)) {
         $this->setDirectionBasedOn($vdotValue, $currentShape);
         $this->setTooltipFor($vdotValue);
     }
 }
コード例 #2
0
ファイル: WeatherIcon.php プロジェクト: rob-st/Runalyze
 /**
  * Weather Icon
  * @param bool $isNight
  */
 public function __construct($isNight = false)
 {
     parent::__construct('');
     $this->setLayer();
     if ($isNight == true) {
         $this->setAsNight();
     }
 }
コード例 #3
0
ファイル: WeatherIcon.php プロジェクト: guancio/Runalyze
 /**
  * Weather Icon
  */
 public function __construct()
 {
     parent::__construct('');
     $this->setLayer();
 }
コード例 #4
0
ファイル: SportIcon.php プロジェクト: guancio/Runalyze
 /**
  * Sport icon
  * @param string $filename
  */
 public function __construct($filename)
 {
     parent::__construct('');
     $this->Filename = $filename;
 }