protected function createField($item)
    {
        switch ($this->typeLookup[$item['type']]) {
            case 'password':
                return $this->createPasswordField($item);
                break;
            case 'datetime-local':
            case 'time':
                return $this->createInputField($item);
                break;
            case 'radio':
                return $this->createRadioField($item);
                break;
            default: // text
                return $this->createFormField($item);
        }
    }
protected function createField($item)
    {
        switch ($this->typeLookup[$item['type']]) {
            case 'password':
                return $this->createPasswordField($item);
                break;
            case 'datetime-local':
            case 'time':
                return $this->createInputField($item);
                break;
            case 'radio':
                return $this->createRadioField($item);
                break;
            default: // text
                return $this->createFormField($item);
        }
    }
protected function createField ( $ item ) { switch ( $ this -> typeLookup [ $ item [ 'type' ] ] ) { case 'password' : return $ this -> createPasswordField ( $ item ) ; break ; case 'datetime-local' : case 'time' : return $ this -> createInputField ( $ item ) ; break ; case 'radio' : return $ this -> createRadioField ( $ item ) ; break ; default : // text return $ this -> createFormField ( $ item ) ; } }
Form field generator.

@param  string $item

@return string
Form field generator .