public function getInputType($type, $name)
    {
        if (in_array($name, $this->specials)) {
            return $name;
        }

        if (array_key_exists($type, $this->types)) {
            return $this->types[$type];
        }

        return in_array($type, $this->inputs) ? $type : 'text';
    }
public function getInputType($type, $name)
    {
        if (in_array($name, $this->specials)) {
            return $name;
        }

        if (array_key_exists($type, $this->types)) {
            return $this->types[$type];
        }

        return in_array($type, $this->inputs) ? $type : 'text';
    }
public function getInputType ( $ type , $ name ) { if ( in_array ( $ name , $ this -> specials ) ) { return $ name ; } if ( array_key_exists ( $ type , $ this -> types ) ) { return $ this -> types [ $ type ] ; } return in_array ( $ type , $ this -> inputs ) ? $ type : 'text' ; }
Get input type.

@param string $type
@param string $name

@return string
Get input type .