public function bodyToString() { if ($this->timetype == TIME_TYPE_SERVER) { $this->setSrc($this->src . '×tamp=' . (time() + date('Z'))); } return parent::bodyToString(); }
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(); }