コード例 #1
0
ファイル: Kml.php プロジェクト: guancio/Runalyze
 /**
  * Set pause to xml
  */
 protected function setPauseToXml()
 {
     $this->addCurrentPathToXml();
     $this->CurrentPauseIndex++;
     if ($this->NumPauses > $this->CurrentPauseIndex) {
         $this->CurrentPauseTime = $this->Pauses->at($this->CurrentPauseIndex)->time();
     }
 }
コード例 #2
0
ファイル: Entity.php プロジェクト: guancio/Runalyze
 /**
  * Are there pauses?
  * @return bool
  */
 public function hasPauses()
 {
     return !$this->Pauses->isEmpty();
 }