function addChild(WFView $view) { if (!$view instanceof WFPassword) { throw new WFException("Only WFPassword child views are accepted."); } if ($this->confirmPasswordId !== NULL) { throw new WFException("WFPassword accepts only one child."); } $this->confirmPasswordId = $view->id(); $this->setValueForKey(false, 'autocomplete'); $view->setValueForKey(false, 'autocomplete'); return parent::addChild($view); }