aaronjwood/QForm

View on GitHub
class/Password.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

class Password extends Element {
    
    /**
     * Checks the attributes, generates a label, and creates the element
     */
    protected function constructElement($attributes) {
        $this->checkAttributes($attributes, $this);
        $this->html .= $this->checkLabel($this->label, "<input type='password'{$attributes['name']}{$attributes['id']}{$attributes['value']} />");
    }
    
}

?>