allowHTML = $allowHTML; parent::__construct($name, $title, null, $form); } /** * Returns a label containing the title, and an HTML class if given. */ function Field() { $attributes = array( 'class' => $this->extraClass(), 'id' => $this->id(), 'name' => $this->Name(), ); return $this->createTag( 'label', $attributes, ($this->getAllowHTML() ? $this->title : htmlentities($this->title)) ); } } ?>