1 filetransfer.inc | FileTransfer::__get($name) |
Implementation of the magic __get() method.
If the connection isn't set to anything, this will call the connect() method and set it to and return the result; afterwards, the connection will be returned directly without using this method.
Parameters
string $name: The name of the variable to return.
Return value
string|bool: The variable specified in $name.
File
- core/
includes/ filetransfer/ filetransfer.inc, line 116 - Base FileTransfer class.
Class
- FileTransfer
- @file Base FileTransfer class.
Code
function __get($name) {
if ($name == 'connection') {
$this->connect();
return $this->connectionHandle;
}
if ($name == 'chroot') {
$this->setChroot();
return $this->chrootPath;
}
}