org\upload\driver\Ftp::__construct PHP Метод

__construct() публичный Метод

构造函数,用于设置上传根路径
public __construct ( array $config )
$config array FTP配置
    public function __construct($config)
    {
        /* 默认FTP配置 */
        $this->config = array_merge($this->config, $config);
        /* 登录FTP服务器 */
        if (!$this->login()) {
            throw new Exception($this->error);
        }
    }