abstract class FTP

Defines the base class for FTP implementations.

Hierarchy

  • class \Drupal\Core\FileTransfer\FileTransfer
    • class \Drupal\Core\FileTransfer\FTP

Expanded class hierarchy of FTP

1 string reference to 'FTP'

File

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

Namespace

Drupal\Core\FileTransfer
View source

Members

Namesort descending Modifiers Type Description Overrides
FileTransfer::$hostname protected property The hostname for this file transfer.
FileTransfer::$password protected property The password for this file transfer. 1
FileTransfer::$port protected property The port for this file transfer. 1
FileTransfer::$username protected property The username for this file transfer. 1
FileTransfer::checkPath final protected function Checks that the path is inside the jail and throws an exception if not.
FileTransfer::chmod final public function Changes the permissions of the specified $path (file or directory).
FileTransfer::connect abstract protected function Connects to the server. 4
FileTransfer::copyDirectory final public function Copies a directory.
FileTransfer::copyDirectoryJailed protected function Copies a directory. 1
FileTransfer::copyFile final public function Copies a file.
FileTransfer::copyFileJailed abstract protected function Copies a file. 4
FileTransfer::createDirectory final public function Creates a directory.
FileTransfer::createDirectoryJailed abstract protected function Creates a directory. 4
FileTransfer::findChroot function Returns the chroot property for this connection.
FileTransfer::fixRemotePath final protected function Returns a modified path suitable for passing to the server.
FileTransfer::isDirectory abstract public function Checks if a particular path is a directory. 4
FileTransfer::isFile abstract public function Checks if a particular path is a file (not a directory). 4
FileTransfer::removeDirectory final public function Removes a directory.
FileTransfer::removeDirectoryJailed abstract protected function Removes a directory. 4
FileTransfer::removeFile final public function Removes a file.
FileTransfer::removeFileJailed abstract protected function Removes a file. 4
FileTransfer::sanitizePath function Changes backslashes to slashes, also removes a trailing slash.
FileTransfer::setChroot function Sets the chroot and changes the jail to match the correct path scheme.
FileTransfer::__get function Implements the magic __get() method.
FTP::factory static function Overrides Drupal\Core\FileTransfer\FileTransfer::factory(). Overrides FileTransfer::factory
FTP::getSettingsForm public function Overrides Drupal\Core\FileTransfer\FileTransfer::getSettingsForm(). Overrides FileTransfer::getSettingsForm
FTP::__construct public function Overrides Drupal\Core\FileTransfer\FileTransfer::__construct(). Overrides FileTransfer::__construct