protected function defineType(string $strType)
    {
        switch ($strType) {
            case 'select':
            case 'textarea':
                $this->strElementType = $strType;
                break;
            case 'checkbox':
            case 'hidden':
            case 'radio':
            case 'text':
            default:
                $this->strElementType = 'input';
                $this->aAttribs['type'] = $strType;
                break;
        }
    }
protected function defineType(string $strType)
    {
        switch ($strType) {
            case 'select':
            case 'textarea':
                $this->strElementType = $strType;
                break;
            case 'checkbox':
            case 'hidden':
            case 'radio':
            case 'text':
            default:
                $this->strElementType = 'input';
                $this->aAttribs['type'] = $strType;
                break;
        }
    }
protected function defineType ( string $ strType ) { switch ( $ strType ) { case 'select' : case 'textarea' : $ this -> strElementType = $ strType ; break ; case 'checkbox' : case 'hidden' : case 'radio' : case 'text' : default : $ this -> strElementType = 'input' ; $ this -> aAttribs [ 'type' ] = $ strType ; break ; } }
Init the HTML element type.

@param string $strType Type of HTML element.
Init the HTML element type .