ChmodInterface.php 558 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Drupal\Core\FileTransfer;
  3. /**
  4. * Defines an interface to chmod files.
  5. */
  6. interface ChmodInterface {
  7. /**
  8. * Changes the permissions of the file / directory specified in $path
  9. *
  10. * @param string $path
  11. * Path to change permissions of.
  12. * @param int $mode
  13. * The new file permission mode to be passed to chmod().
  14. * @param bool $recursive
  15. * Pass TRUE to recursively chmod the entire directory specified in $path.
  16. *
  17. * @see http://php.net/chmod
  18. */
  19. public function chmodJailed($path, $mode, $recursive);
  20. }