function FileTransfer::__construct
Same name in other branches
- 7.x includes/filetransfer/filetransfer.inc \FileTransfer::__construct()
- 9 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::__construct()
- 10 core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::__construct()
- 11.x core/lib/Drupal/Core/FileTransfer/FileTransfer.php \Drupal\Core\FileTransfer\FileTransfer::__construct()
Constructs a Drupal\Core\FileTransfer\FileTransfer object.
Parameters
$jail: The full path where all file operations performed by this object will be restricted to. This prevents the FileTransfer classes from being able to touch other parts of the filesystem.
4 calls to FileTransfer::__construct()
- FTP::__construct in core/
lib/ Drupal/ Core/ FileTransfer/ FTP.php - Local::__construct in core/
lib/ Drupal/ Core/ FileTransfer/ Local.php - SSH::__construct in core/
lib/ Drupal/ Core/ FileTransfer/ SSH.php - TestFileTransfer::__construct in core/
modules/ system/ tests/ src/ Functional/ FileTransfer/ TestFileTransfer.php
4 methods override FileTransfer::__construct()
- FTP::__construct in core/
lib/ Drupal/ Core/ FileTransfer/ FTP.php - Local::__construct in core/
lib/ Drupal/ Core/ FileTransfer/ Local.php - SSH::__construct in core/
lib/ Drupal/ Core/ FileTransfer/ SSH.php - TestFileTransfer::__construct in core/
modules/ system/ tests/ src/ Functional/ FileTransfer/ TestFileTransfer.php
File
-
core/
lib/ Drupal/ Core/ FileTransfer/ FileTransfer.php, line 52
Class
- FileTransfer
- Defines the base FileTransfer class.
Namespace
Drupal\Core\FileTransferCode
public function __construct($jail) {
$this->jail = $jail;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.