function _invoice_api_get_request_data in Invoice 7
Returns the request data
@staticvar null|array $data
Return value
null|array
3 calls to _invoice_api_get_request_data()
- _invoice_api_check_allowed_templates in ./
invoice_api.inc - Checks if the authenticated username has access to the defined template name
- _invoice_api_invoice_post in ./
invoice_api.inc - Handles POST request
- _invoice_api_invoice_put in ./
invoice_api.inc - Handles PUT request
File
- ./
invoice_api.inc, line 193
Code
function _invoice_api_get_request_data() {
static $data = null;
if (null === $data) {
$data = json_decode(file_get_contents('php://input'), true);
}
return $data;
}