protected function setClass($type, &$meta)
    {
        switch ($type) {
            case ValidForm::VFORM_STRING:
                $this->setFieldMeta("class", "vf__string");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_WORD:
                $this->setFieldMeta("class", "vf__word");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_EMAIL:
                $this->setFieldMeta("class", "vf__email");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_URL:
            case ValidForm::VFORM_SIMPLEURL:
                $this->setFieldMeta("class", "vf__url");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_CUSTOM:
                $this->setFieldMeta("class", "vf__custom");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_CURRENCY:
                $this->setFieldMeta("class", "vf__currency");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_DATE:
                $this->setFieldMeta("class", "vf__date");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_NUMERIC:
                $this->setFieldMeta("class", "vf__numeric");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_INTEGER:
                $this->setFieldMeta("class", "vf__integer");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_PASSWORD:
                $this->setFieldMeta("class", "vf__password");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_HTML:
                $this->setFieldMeta("class", "vf__html");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_CUSTOM_TEXT:
                $this->setFieldMeta("class", "vf__custom");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_TEXT:
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_FILE:
                $this->setFieldMeta("class", "vf__file");
                break;
            case ValidForm::VFORM_BOOLEAN:
                $this->setFieldMeta("class", "vf__checkbox");
                break;
            case ValidForm::VFORM_RADIO_LIST:
            case ValidForm::VFORM_CHECK_LIST:
                $this->setFieldMeta("class", "vf__list");
                break;
            case ValidForm::VFORM_SELECT_LIST:
                if (! isset($meta["multiple"])) {
                    $this->setFieldMeta("class", "vf__one");
                } else {
                    $this->setFieldMeta("class", "vf__multiple");
                }

                $this->setFieldMeta("class", "vf__select");
                break;
        }
    }
protected function setClass($type, &$meta)
    {
        switch ($type) {
            case ValidForm::VFORM_STRING:
                $this->setFieldMeta("class", "vf__string");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_WORD:
                $this->setFieldMeta("class", "vf__word");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_EMAIL:
                $this->setFieldMeta("class", "vf__email");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_URL:
            case ValidForm::VFORM_SIMPLEURL:
                $this->setFieldMeta("class", "vf__url");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_CUSTOM:
                $this->setFieldMeta("class", "vf__custom");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_CURRENCY:
                $this->setFieldMeta("class", "vf__currency");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_DATE:
                $this->setFieldMeta("class", "vf__date");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_NUMERIC:
                $this->setFieldMeta("class", "vf__numeric");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_INTEGER:
                $this->setFieldMeta("class", "vf__integer");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_PASSWORD:
                $this->setFieldMeta("class", "vf__password");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_HTML:
                $this->setFieldMeta("class", "vf__html");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_CUSTOM_TEXT:
                $this->setFieldMeta("class", "vf__custom");
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_TEXT:
                $this->setFieldMeta("class", "vf__text");
                break;
            case ValidForm::VFORM_FILE:
                $this->setFieldMeta("class", "vf__file");
                break;
            case ValidForm::VFORM_BOOLEAN:
                $this->setFieldMeta("class", "vf__checkbox");
                break;
            case ValidForm::VFORM_RADIO_LIST:
            case ValidForm::VFORM_CHECK_LIST:
                $this->setFieldMeta("class", "vf__list");
                break;
            case ValidForm::VFORM_SELECT_LIST:
                if (! isset($meta["multiple"])) {
                    $this->setFieldMeta("class", "vf__one");
                } else {
                    $this->setFieldMeta("class", "vf__multiple");
                }

                $this->setFieldMeta("class", "vf__select");
                break;
        }
    }
protected function setClass ( $ type , & $ meta ) { switch ( $ type ) { case ValidForm :: VFORM_STRING : $ this -> setFieldMeta ( "class" , "vf__string" ) ; $ this -> setFieldMeta ( "class" , "vf__text" ) ; break ; case ValidForm :: VFORM_WORD : $ this -> setFieldMeta ( "class" , "vf__word" ) ; $ this -> setFieldMeta ( "class" , "vf__text" ) ; break ; case ValidForm :: VFORM_EMAIL : $ this -> setFieldMeta ( "class" , "vf__email" ) ; $ this -> setFieldMeta ( "class" , "vf__text" ) ; break ; case ValidForm :: VFORM_URL : case ValidForm :: VFORM_SIMPLEURL : $ this -> setFieldMeta ( "class" , "vf__url" ) ; $ this -> setFieldMeta ( "class" , "vf__text" ) ; break ; case ValidForm :: VFORM_CUSTOM : $ this -> setFieldMeta ( "class" , "vf__custom" ) ; $ this -> setFieldMeta ( "class" , "vf__text" ) ; break ; case ValidForm :: VFORM_CURRENCY : $ this -> setFieldMeta ( "class" , "vf__currency" ) ; $ this -> setFieldMeta ( "class" , "vf__text" ) ; break ; case ValidForm :: VFORM_DATE : $ this -> setFieldMeta ( "class" , "vf__date" ) ; $ this -> setFieldMeta ( "class" , "vf__text" ) ; break ; case ValidForm :: VFORM_NUMERIC : $ this -> setFieldMeta ( "class" , "vf__numeric" ) ; $ this -> setFieldMeta ( "class" , "vf__text" ) ; break ; case ValidForm :: VFORM_INTEGER : $ this -> setFieldMeta ( "class" , "vf__integer" ) ; $ this -> setFieldMeta ( "class" , "vf__text" ) ; break ; case ValidForm :: VFORM_PASSWORD : $ this -> setFieldMeta ( "class" , "vf__password" ) ; $ this -> setFieldMeta ( "class" , "vf__text" ) ; break ; case ValidForm :: VFORM_HTML : $ this -> setFieldMeta ( "class" , "vf__html" ) ; $ this -> setFieldMeta ( "class" , "vf__text" ) ; break ; case ValidForm :: VFORM_CUSTOM_TEXT : $ this -> setFieldMeta ( "class" , "vf__custom" ) ; $ this -> setFieldMeta ( "class" , "vf__text" ) ; break ; case ValidForm :: VFORM_TEXT : $ this -> setFieldMeta ( "class" , "vf__text" ) ; break ; case ValidForm :: VFORM_FILE : $ this -> setFieldMeta ( "class" , "vf__file" ) ; break ; case ValidForm :: VFORM_BOOLEAN : $ this -> setFieldMeta ( "class" , "vf__checkbox" ) ; break ; case ValidForm :: VFORM_RADIO_LIST : case ValidForm :: VFORM_CHECK_LIST : $ this -> setFieldMeta ( "class" , "vf__list" ) ; break ; case ValidForm :: VFORM_SELECT_LIST : if ( ! isset ( $ meta [ "multiple" ] ) ) { $ this -> setFieldMeta ( "class" , "vf__one" ) ; } else { $ this -> setFieldMeta ( "class" , "vf__multiple" ) ; } $ this -> setFieldMeta ( "class" , "vf__select" ) ; break ; } }
Set type class
@param integer $type
@param array $meta
Set type class