x = $x; $this->y = $y; $this->width = $w; $this->height = $h; $this->link = $link; $this->text = $text; } /** should be renamed to getURL() */ function getLink($raw = false) { if (preg_match(EXTERNAL_REGEX, $this->link)) { return $this->link; } else { return $raw ? $this->link : $_SERVER['PHP_SELF'].'?title='. urlencode($this->link); } } function getTitle() { return $this->link; } function getText() { return $this->text; } function getX() { return $this->x; } function getY() { return $this->y; } function getWidth() { return $this->width; } function getHeight() { return $this->height; } } ?>