View sourcecode

The following files exists in this folder. Click to view.

CFormElementPassword.php

1 lines ASCII Unix (LF)
1
<?php

namespace Mos\HTMLForm;

/**
 * Form element
 */
class CFormElementPassword extends CFormElement
{

    /**
     * Constructor
     *
     * @param string $name       of the element.
     * @param array  $attributes to set to the element. Default is an empty array.
     */
    public function __construct($name, $attributes = [])
    {
        parent::__construct($name, $attributes);
        $this['type'] = 'password';
        $this->UseNameAsDefaultLabel();
    }
}