/** * @param string caption */ public function __construct($caption = NULL) { $this->monitor('NForm'); parent::__construct(); $this->control = NHtml::el('input'); $this->label = NHtml::el('label'); $this->caption = $caption; $this->rules = new NRules($this); }