2010-06-01 14:38:41 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2012-03-06 08:32:51 +01:00
|
|
|
* EGroupware API: JSON - Contains functions and classes for doing JSON requests.
|
2010-06-01 14:38:41 +02:00
|
|
|
*
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
2010-06-16 08:44:19 +02:00
|
|
|
* @package api
|
2010-06-01 14:38:41 +02:00
|
|
|
* @subpackage ajax
|
2010-06-01 20:54:31 +02:00
|
|
|
* @author Andreas Stoeckel <as@stylite.de>
|
2010-06-01 16:20:55 +02:00
|
|
|
* @version $Id$
|
2010-06-01 14:38:41 +02:00
|
|
|
*/
|
|
|
|
|
2016-03-20 14:02:55 +01:00
|
|
|
use EGroupware\Api\Json;
|
2010-06-01 14:38:41 +02:00
|
|
|
|
2010-06-01 20:54:31 +02:00
|
|
|
/**
|
2016-03-20 14:02:55 +01:00
|
|
|
* Class handling JSON requests to the server
|
|
|
|
*
|
|
|
|
* @deprecated use Api\Json\Request
|
2010-06-01 20:54:31 +02:00
|
|
|
*/
|
2016-03-20 14:02:55 +01:00
|
|
|
class egw_json_request extends Json\Request {}
|
2014-08-22 16:29:18 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class used to send ajax responses
|
2016-03-22 10:31:20 +01:00
|
|
|
*
|
|
|
|
* @deprecated use Api\Json\Response
|
2014-08-22 16:29:18 +02:00
|
|
|
*/
|
2016-03-20 14:02:55 +01:00
|
|
|
class egw_json_response extends Json\Response
|
2014-08-22 16:29:18 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* xAjax compatibility function
|
|
|
|
*/
|
|
|
|
public function printOutput()
|
|
|
|
{
|
|
|
|
// do nothing, as output is triggered by egw::__destruct()
|
|
|
|
}
|
2010-06-01 14:38:41 +02:00
|
|
|
}
|