|
@@ -51,17 +51,18 @@ These are all the configuration options and their default values:
|
51
|
51
|
|
52
|
52
|
```
|
53
|
53
|
$api = new MySQL_CRUD_API(array(
|
|
54
|
+// these are normally configured
|
54
|
55
|
'username=>'root'
|
55
|
56
|
'password=>null,
|
56
|
57
|
'database:'',
|
57
|
58
|
'whitelist=>false,
|
58
|
59
|
'blacklist=>false,
|
59
|
|
-// for connectivity
|
|
60
|
+// for connectivity, leave out for localhost
|
60
|
61
|
'hostname'=>null,
|
61
|
62
|
'port=>null,
|
62
|
63
|
'socket=>null,
|
63
|
|
-// added for unit testing
|
64
|
|
- 'connect'=>true,
|
|
64
|
+// dependencies (added for unit testing)
|
|
65
|
+ 'mysqli'=>null,
|
65
|
66
|
'method'=>$_SERVER['REQUEST_METHOD'],
|
66
|
67
|
'request'=>$_SERVER['PATH_INFO'],
|
67
|
68
|
'get'=>$_GET,
|