|
@@ -81,6 +81,8 @@ $api = new PHP_CRUD_API(array(
|
81
|
81
|
'tenancy_function'=>function($cmd,$db,$tab,$col) { return null; },
|
82
|
82
|
'input_sanitizer'=>function($cmd,$db,$tab,$col,$typ,$val) { return $val; },
|
83
|
83
|
'input_validator'=>function($cmd,$db,$tab,$col,$typ,$val,$ctx) { return true; },
|
|
84
|
+// configurable options
|
|
85
|
+ 'no_extensions'=>false,
|
84
|
86
|
// dependencies (added for unit testing):
|
85
|
87
|
'db'=>null,
|
86
|
88
|
'method'=>$_SERVER['REQUEST_METHOD'],
|