@@ -166,7 +166,7 @@ class DB
166
166
* leve of transaction
167
167
* @var unknown
168
168
*/
169
- private $ transationNestedLevel = 0 ;
169
+ private $ transactionNestedLevel = 0 ;
170
170
171
171
/**
172
172
* returns instance of certain db type
@@ -314,11 +314,6 @@ function _getSupportedList()
314
314
{
315
315
$ db_type = $ supported_list [$ i ];
316
316
317
- if (version_compare (phpversion (), '5.0 ' ) < 0 && preg_match ('/pdo/i ' , $ db_type ))
318
- {
319
- continue ;
320
- }
321
-
322
317
$ class_name = sprintf ("DB%s%s " , strtoupper (substr ($ db_type , 0 , 1 )), strtolower (substr ($ db_type , 1 )));
323
318
$ class_file = sprintf (_XE_PATH_ . "classes/db/%s.class.php " , $ class_name );
324
319
if (!file_exists ($ class_file ))
@@ -1142,10 +1137,10 @@ function begin()
1142
1137
return ;
1143
1138
}
1144
1139
1145
- if ($ this ->_begin ($ this ->transationNestedLevel ))
1140
+ if ($ this ->_begin ($ this ->transactionNestedLevel ))
1146
1141
{
1147
1142
$ this ->transaction_started = TRUE ;
1148
- $ this ->transationNestedLevel ++;
1143
+ $ this ->transactionNestedLevel ++;
1149
1144
}
1150
1145
}
1151
1146
@@ -1169,11 +1164,11 @@ function rollback()
1169
1164
{
1170
1165
return ;
1171
1166
}
1172
- if ($ this ->_rollback ($ this ->transationNestedLevel ))
1167
+ if ($ this ->_rollback ($ this ->transactionNestedLevel ))
1173
1168
{
1174
- $ this ->transationNestedLevel --;
1169
+ $ this ->transactionNestedLevel --;
1175
1170
1176
- if (!$ this ->transationNestedLevel )
1171
+ if (!$ this ->transactionNestedLevel )
1177
1172
{
1178
1173
$ this ->transaction_started = FALSE ;
1179
1174
}
@@ -1201,14 +1196,14 @@ function commit($force = FALSE)
1201
1196
{
1202
1197
return ;
1203
1198
}
1204
- if ($ this ->transationNestedLevel == 1 && $ this ->_commit ())
1199
+ if ($ this ->transactionNestedLevel == 1 && $ this ->_commit ())
1205
1200
{
1206
1201
$ this ->transaction_started = FALSE ;
1207
- $ this ->transationNestedLevel = 0 ;
1202
+ $ this ->transactionNestedLevel = 0 ;
1208
1203
}
1209
1204
else
1210
1205
{
1211
- $ this ->transationNestedLevel --;
1206
+ $ this ->transactionNestedLevel --;
1212
1207
}
1213
1208
}
1214
1209
0 commit comments