modxmlrpcresource.class.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /*
  3. * This file is part of MODX Revolution.
  4. *
  5. * Copyright (c) MODX, LLC. All Rights Reserved.
  6. *
  7. * For complete copyright and license information, see the COPYRIGHT and LICENSE
  8. * files found in the top-level directory of this distribution.
  9. */
  10. /**
  11. * Extends modResource to service XML-RPC client requests.
  12. *
  13. * @package modx
  14. * @subpackage xmlrpc
  15. */
  16. class modXMLRPCResource extends modResource {
  17. /**
  18. * @var array An array of services for this resource.
  19. * @access public
  20. */
  21. public $services= array ();
  22. /**
  23. * Creates a modXMLRPCResource instance.
  24. *
  25. * {@inheritdoc}
  26. */
  27. function __construct(& $xpdo) {
  28. parent :: __construct($xpdo);
  29. $this->set('class_key','modXMLRPCResource');
  30. $this->showInContextMenu = false;
  31. }
  32. /**
  33. * Overrides modResource::process to set the Response handler to
  34. * {@link modXMLRPCResponse}
  35. *
  36. * {@inheritdoc}
  37. */
  38. public function process() {
  39. $this->xpdo->getResponse('xmlrpc.modXMLRPCResponse');
  40. parent :: process();
  41. return $this->_content;
  42. }
  43. }