2017-09-15 14:36:37 +03:00
|
|
|
<?php
|
2016-07-10 12:12:16 +03:00
|
|
|
|
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* Easy!Appointments - Open Source Web Scheduler
|
|
|
|
*
|
|
|
|
* @package EasyAppointments
|
|
|
|
* @author A.Tselegidis <alextselegidis@gmail.com>
|
2020-03-11 12:10:59 +03:00
|
|
|
* @copyright Copyright (c) 2013 - 2020, Alex Tselegidis
|
2016-07-10 12:12:16 +03:00
|
|
|
* @license http://opensource.org/licenses/GPL-3.0 - GPLv3
|
|
|
|
* @link http://easyappointments.org
|
|
|
|
* @since v1.2.0
|
|
|
|
* ---------------------------------------------------------------------------- */
|
|
|
|
|
2017-09-15 14:36:37 +03:00
|
|
|
namespace EA\Engine\Api\V1;
|
2016-07-10 12:12:16 +03:00
|
|
|
|
|
|
|
/**
|
2017-09-15 14:36:37 +03:00
|
|
|
* Request Class
|
2016-07-10 12:12:16 +03:00
|
|
|
*
|
2017-09-15 14:36:37 +03:00
|
|
|
* This class handles the common request handling before the data are manipulated and
|
|
|
|
* returned back with the Response class.
|
2020-05-12 21:49:15 +03:00
|
|
|
*
|
|
|
|
* @deprecated
|
2016-07-10 12:12:16 +03:00
|
|
|
*/
|
|
|
|
class Request {
|
|
|
|
/**
|
2017-09-15 14:36:37 +03:00
|
|
|
* Get request body as an associative array.
|
|
|
|
*
|
2016-07-10 12:12:16 +03:00
|
|
|
* @return array
|
|
|
|
*/
|
2020-11-16 12:54:59 +03:00
|
|
|
public function get_body()
|
2017-09-15 14:36:37 +03:00
|
|
|
{
|
|
|
|
return json_decode(file_get_contents('php://input'), TRUE);
|
2016-07-10 12:12:16 +03:00
|
|
|
}
|
|
|
|
}
|