function 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.

3 calls to FileTransfer::__construct()
FTP::__construct in drupal/core/lib/Drupal/Core/FileTransfer/FTP.php
Overrides Drupal\Core\FileTransfer\FileTransfer::__construct().
SSH::__construct in drupal/core/lib/Drupal/Core/FileTransfer/SSH.php
Overrides Drupal\Core\FileTransfer\FileTransfer::__construct().
TestFileTransfer::__construct in drupal/core/modules/system/lib/Drupal/system/Tests/FileTransfer/TestFileTransfer.php
Constructs a Drupal\Core\FileTransfer\FileTransfer object.
3 methods override FileTransfer::__construct()
FTP::__construct in drupal/core/lib/Drupal/Core/FileTransfer/FTP.php
Overrides Drupal\Core\FileTransfer\FileTransfer::__construct().
SSH::__construct in drupal/core/lib/Drupal/Core/FileTransfer/SSH.php
Overrides Drupal\Core\FileTransfer\FileTransfer::__construct().
TestFileTransfer::__construct in drupal/core/modules/system/lib/Drupal/system/Tests/FileTransfer/TestFileTransfer.php
Constructs a Drupal\Core\FileTransfer\FileTransfer object.

File

drupal/core/lib/Drupal/Core/FileTransfer/FileTransfer.php, line 60
Definition of Drupal\Core\FileTransfer\FileTransfer.

Class

FileTransfer
Defines the base FileTransfer class.

Namespace

Drupal\Core\FileTransfer

Code

function __construct($jail) {
  $this->jail = $jail;
}