"label", "text" => ""); public function __construct($label) { $this->data["text"] = $label; } public function __get($key) { return isset($this->data[$key]) ? $this->data[$key] : null; } // In this element we never want print any html so make sure // render and ultimately html_element only return the empty string public function render() { return $this->html_element(); } public function html_element() { $data = $this->data; unset($data["text"]); return "
{$this->data['text']}
"; } } // End Form Script