コード例 #1
0
ファイル: class.cflashclock.php プロジェクト: rennhak/zabbix
 public function bodyToString()
 {
     if ($this->timetype == TIME_TYPE_SERVER) {
         $this->setSrc($this->src . '&timestamp=' . (time() + date('Z')));
     }
     return parent::bodyToString();
 }
コード例 #2
0
 public function bodyToString()
 {
     $src = $this->src;
     if (!empty($this->timeError)) {
         $src .= '&timeerror=' . $this->timeError;
     }
     if (!empty($this->timeType)) {
         $src .= '&timetype=' . urlencode($this->timeType);
     }
     if (!is_null($this->timeZone)) {
         $src .= '&timezone=' . urlencode($this->timeZone);
     }
     if (!is_null($this->timeOffset)) {
         $src .= '&timeoffset=' . $this->timeOffset;
     }
     $this->setSrc($src);
     return parent::bodyToString();
 }