Remove deprecated AJAXProxyAction::getData()
authorTim Düsterhus <duesterhus@woltlab.com>
Sun, 24 May 2015 12:48:04 +0000 (14:48 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Sun, 24 May 2015 12:48:04 +0000 (14:48 +0200)
see 07736a3a5a67f1ecb4c8bfbf60bef56fdc0b3ad1

wcfsetup/install/files/lib/action/AJAXProxyAction.class.php

index b6d53ee24e61467322e1a8483720e2082f22017a..b55791c0088715e7715585313ab9e484a98035b3 100644 (file)
@@ -75,27 +75,6 @@ class AJAXProxyAction extends AJAXInvokeAction {
                
                // execute action
                $this->response = $this->objectAction->executeAction();
-               if (isset($this->response['returnValues'])) {
-                       $this->response['returnValues'] = $this->getData($this->response['returnValues']);
-               }
-       }
-       
-       /**
-        * @deprecated  This function makes it too easy to accidentally expose private information.
-        *              It will be removed in Community Framework 2.2.
-        *              Consider using \JsonSerializable beginning with Community Framework 2.2.
-        */
-       protected function getData($response) {
-               if ($response instanceof IStorableObject) {
-                       return $response->getData();
-               }
-               if (is_array($response)) {
-                       foreach ($response as &$object) {
-                               $object = $this->getData($object);
-                       }
-                       unset($object);
-               }
-               return $response;
        }
        
        /**