INode.php 926 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * The INode interface is the base interface, and the parent class of both ICollection and IFile
  4. *
  5. * @package Sabre
  6. * @subpackage DAV
  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. interface Sabre_DAV_INode {
  12. /**
  13. * Deleted the current node
  14. *
  15. * @return void
  16. */
  17. function delete();
  18. /**
  19. * Returns the name of the node.
  20. *
  21. * This is used to generate the url.
  22. *
  23. * @return string
  24. */
  25. function getName();
  26. /**
  27. * Renames the node
  28. *
  29. * @param string $name The new name
  30. * @return void
  31. */
  32. function setName($name);
  33. /**
  34. * Returns the last modification time, as a unix timestamp
  35. *
  36. * @return int
  37. */
  38. function getLastModified();
  39. }