public function __construct($name, $text, $href) { $this->text = $text; if ($href) { $this->href = elgg_normalize_url($href); } else { $this->href = $href; } $this->data['name'] = $name; }