protected function typeToPDOParamType($type)
    {
        switch ($type) {
        case "boolean":
            return PDO::PARAM_BOOL;
        case "integer":
            return PDO::PARAM_STR;
        case "NULL":
            return PDO::PARAM_NULL;
        case "resource":
            return PDO::PARAM_LOB;
        case "double":
        case "string":
        default:
            return PDO::PARAM_STR;
        }
    }
protected function typeToPDOParamType($type)
    {
        switch ($type) {
        case "boolean":
            return PDO::PARAM_BOOL;
        case "integer":
            return PDO::PARAM_STR;
        case "NULL":
            return PDO::PARAM_NULL;
        case "resource":
            return PDO::PARAM_LOB;
        case "double":
        case "string":
        default:
            return PDO::PARAM_STR;
        }
    }
protected function typeToPDOParamType ( $ type ) { switch ( $ type ) { case "boolean" : return PDO :: PARAM_BOOL ; case "integer" : return PDO :: PARAM_STR ; case "NULL" : return PDO :: PARAM_NULL ; case "resource" : return PDO :: PARAM_LOB ; case "double" : case "string" : default : return PDO :: PARAM_STR ; } }
Convert type to PdoParamType

@param string $type Type

@return intger The PDO Param Type
Convert type to PdoParamType