schmunk42\giiant\generators\crud\providers\extensions\EditableProvider::getInputType PHP Method

getInputType() public method

public getInputType ( $column )
    public function getInputType($column)
    {
        switch ($column->type) {
            case 'double':
            case 'integer':
            case 'bigint':
            case 'smallint':
            case 'decimal':
            case 'char':
            case 'string':
                $inputType = 'Editable::INPUT_TEXT';
                break;
            case 'text':
                $inputType = 'Editable::INPUT_TEXTAREA ';
            case 'date':
            case 'datetime':
            case 'timestamp':
                $inputType = 'Editable::INPUT_TEXT';
                break;
        }
        if (!isset($inputType)) {
            return false;
            throw new \Exception('No Defined column type: ' . $column->type);
        }
        return $inputType;
    }