ChmodInterface.php

Definition of Drupal\Core\FileTransfer\ChmodInterface.

Namespace

Drupal\Core\FileTransfer

File

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

Interfaces

Namesort descending Description
ChmodInterface Defines an interface to chmod files.