public function __construct($width = 200, $height = 200, $timetype = TIME_TYPE_LOCAL, $url = NULL) { $this->timetype = null; if (!is_numeric($width) || $width < 24) { $width = 200; } if (!is_numeric($height) || $height < 24) { $height = 200; } $this->src = 'images/flash/zbxclock.swf?analog=1&smooth=1'; if (!is_null($url)) { $this->src .= '&url=' . urlencode($url); } parent::__construct($this->src, $width, $height); $this->setTimeType($timetype); }
public function __construct($width = 200, $height = 200, $url = null) { $this->timetype = null; if (!is_numeric($width) || $width < 24) { $width = 200; } if (!is_numeric($height) || $height < 24) { $height = 200; } $this->src = 'images/flash/zbxclock.swf?analog=1&smooth=1'; if (!is_null($url)) { $this->src .= '&url=' . urlencode($url); } $this->timeError = null; $this->timeType = null; $this->timeZone = null; $this->timeOffset = null; parent::__construct($this->src, $width, $height); }