/** * Adds single-line text input control used for sensitive input such as passwords. * @param string control name * @param string label * @param int width of the control * @param int maximum number of characters the user may enter * @return TextInput */ public function addPassword($name, $label = NULL, $cols = NULL, $maxLength = NULL) { $control = new TextInput($label, $cols, $maxLength); $control->setType('password'); return $this[$name] = $control; }