/** * Registers the validator with page. * @param mixed event parameter */ public function onInit($param) { parent::onInit($param); $this->getPage()->getValidators()->add($this); $this->_registered = true; }