R55483 - in /trunk/phpgwapi/inc: class.egw_json.inc.php class.xajaxResponse.inc.php

Author: ralfbecker
New Revision: 55483

URL: http://svn.stylite.de/viewvc/egroupware?rev=55483&view=rev
Log:
make ancient xajaxResponse autoloadable, as json.php no longer loads it by default, because it uses new Api\Json* classes and methods

Added:
trunk/phpgwapi/inc/class.xajaxResponse.inc.php
- copied, changed from r55478, trunk/phpgwapi/inc/class.egw_json.inc.php
Modified:
trunk/phpgwapi/inc/class.egw_json.inc.php

Modified: trunk/phpgwapi/inc/class.egw_json.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/phpgwapi/inc/class.egw_json.inc.php?rev=55483&r1=55482&r2=55483&view=diff

— trunk/phpgwapi/inc/class.egw_json.inc.php (original)
+++ trunk/phpgwapi/inc/class.egw_json.inc.php Tue Mar 22 10:31:20 2016
@@ -21,6 +21,8 @@

/**

  • Class used to send ajax responses
    • @deprecated use Api\Json\Response
      */
      class egw_json_response extends Json\Response
      {
      @@ -32,34 +34,3 @@
      // do nothing, as output is triggered by egw::__destruct()
      }
      }

-/**

    • Deprecated legacy xajax wrapper functions for the new egw_json interface
    • @deprecated use Api\Json\Response methods
  • */
    -class xajaxResponse
    -{
  • public function __call($name, $args)
  • {
  •   if (substr($name, 0, 3) == 'add')
    
  •   {
    
  •   	$name = substr($name, 3);
    
  •   	$name[0] = strtolower($name[0]);
    
  •   }
    
  •   return call_user_func_array(array(egw_json_response::get(), $name), $args);
    
  • }
  • public function addScriptCall()
  • {
  •   $args = func_get_args();
    
  •   $func = array_shift($args);
    
  •   return call_user_func(array(egw_json_response::get(), 'apply'), $func, $args);
    
  • }
  • public function getXML()
  • {
  •   return '';
    
  • }
    -}

Copied: trunk/phpgwapi/inc/class.xajaxResponse.inc.php (from r55478, trunk/phpgwapi/inc/class.egw_json.inc.php)
URL: http://svn.stylite.de/viewvc/egroupware/trunk/phpgwapi/inc/class.xajaxResponse.inc.php?p2=trunk/phpgwapi/inc/class.xajaxResponse.inc.php&p1=trunk/phpgwapi/inc/class.egw_json.inc.php&r1=55478&r2=55483&rev=55483&view=diff

— trunk/phpgwapi/inc/class.egw_json.inc.php (original)
+++ trunk/phpgwapi/inc/class.xajaxResponse.inc.php Tue Mar 22 10:31:20 2016
@@ -1,6 +1,6 @@

<?php /** - * EGroupware API: JSON - Contains functions and classes for doing JSON requests. + * EGroupware API: JSON - Deprecated legacy xajax wrapper functions * * @link http://www.egroupware.org * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License @@ -9,29 +9,6 @@ * @author Andreas Stoeckel * @version $Id$ */ - -use EGroupware\Api\Json; - -/** - * Class handling JSON requests to the server - * - * @deprecated use Api\Json\Request - */ -class egw_json_request extends Json\Request {} - -/** - * Class used to send ajax responses - */ -class egw_json_response extends Json\Response -{ - /** - * xAjax compatibility function - */ - public function printOutput() - { - // do nothing, as output is triggered by egw::__destruct() - } -} /** * Deprecated legacy xajax wrapper functions for the new egw_json interface ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 _______________________________________________ eGroupWare-cvs mailing list eGroupWare-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/egroupware-cvs