NoAbstract.php 886 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Sabre_DAVACL_Exception_NoAbstract
  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_NoAbstract extends Sabre_DAV_Exception_PreconditionFailed {
  12. /**
  13. * Adds in extra information in the xml response.
  14. *
  15. * This method adds the {DAV:}no-abstract 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:no-abstract');
  24. $errorNode->appendChild($np);
  25. }
  26. }