Common\Core\Form::addPassword PHP Метод

addPassword() публичный Метод

Adds a single password field.
public addPassword ( string $name, string $value = null, integer $maxLength = null, string $class = null, string $classError = null, boolean $HTML = false ) : SpoonFormPassword
$name string The name of the field.
$value string The value for the field.
$maxLength integer The maximum length for the field.
$class string Class(es) that will be applied on the element.
$classError string Class(es) that will be applied on the element when an error occurs.
$HTML boolean Will the field contain HTML?
Результат SpoonFormPassword
    public function addPassword($name, $value = null, $maxLength = null, $class = null, $classError = null, $HTML = false)
    {
        $name = (string) $name;
        $value = $value !== null ? (string) $value : null;
        $maxLength = $maxLength !== null ? (int) $maxLength : null;
        $class = $class !== null ? (string) $class : 'form-control fork-form-password inputPassword';
        $classError = $classError !== null ? (string) $classError : 'error';
        $HTML = (bool) $HTML;
        // create and return a password field
        return parent::addPassword($name, $value, $maxLength, $class, $classError, $HTML);
    }