NotSupportedPrivilege.php 932 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Sabre_DAVACL_Exception_NotSupportedPrivilege
  4. *
  5. * @package Sabre
  6. * @subpackage DAVACL
  7. * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
  8. * @author Evert Pot (http://www.rooftopsolutions.nl/)
  9. * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
  10. */
  11. class Sabre_DAVACL_Exception_NotSupportedPrivilege extends Sabre_DAV_Exception_PreconditionFailed {
  12. /**
  13. * Adds in extra information in the xml response.
  14. *
  15. * This method adds the {DAV:}not-supported-privilege element as defined in rfc3744
  16. *
  17. * @param Sabre_DAV_Server $server
  18. * @param DOMElement $errorNode
  19. * @return void
  20. */
  21. public function serialize(Sabre_DAV_Server $server,DOMElement $errorNode) {
  22. $doc = $errorNode->ownerDocument;
  23. $np = $doc->createElementNS('DAV:','d:not-supported-privilege');
  24. $errorNode->appendChild($np);
  25. }
  26. }