Back to FtpClient class

Method __construct

public
__construct
(array $options = array())
FtpClient object constructor
Parameters
  • array $options Associative array of options to set
Since
  • 1.5
Class: FtpClient
Project: Joomla

Method __construct - Source code

/**
 * FtpClient object constructor
 *
 * @param   array  $options  Associative array of options to set
 *
 * @since   1.5
 */
public function __construct(array $options = array())
{
    // If default transfer type is not set, set it to autoascii detect
    if (!isset($options['type'])) {
        $options['type'] = FTP_BINARY;
    }
    $this->setOptions($options);
    if (FTP_NATIVE) {
        BufferStreamHandler::stream_register();
    }
}