public function setAutocapitalize($state)
    {
        if (is_bool($state)) {
            if ($state === true) {
                $state = 'on';
            } else {
                $state = 'off';
            }
        }

        $this->setAttribute('autocapitalize', $state);
    }
public function setAutocapitalize($state)
    {
        if (is_bool($state)) {
            if ($state === true) {
                $state = 'on';
            } else {
                $state = 'off';
            }
        }

        $this->setAttribute('autocapitalize', $state);
    }
public function setAutocapitalize ( $ state ) { if ( is_bool ( $ state ) ) { if ( $ state === true ) { $ state = 'on' ; } else { $ state = 'off' ; } } $ this -> setAttribute ( 'autocapitalize' , $ state ) ; }
Sets the HTML input element property "autocapitalize".

@param bool $state The state to set

@author Benjamin Carl <opensource@clickalicious.de>
Sets the HTML input element property autocapitalize .