|
3 | 3 | /** @generate-class-entries */
|
4 | 4 |
|
5 | 5 | namespace FTP {
|
| 6 | + |
6 | 7 | /** @strict-properties */
|
7 | 8 | final class Connection
|
8 | 9 | {
|
9 | 10 | }
|
| 11 | + |
10 | 12 | }
|
11 | 13 |
|
12 | 14 | namespace {
|
13 | 15 |
|
14 |
| -function ftp_connect(string $hostname, int $port = 21, int $timeout = 90): FTP\Connection|false {} |
15 |
| - |
16 |
| -#ifdef HAVE_FTP_SSL |
17 |
| -function ftp_ssl_connect(string $hostname, int $port = 21, int $timeout = 90): FTP\Connection|false {} |
18 |
| -#endif |
19 |
| - |
20 |
| -function ftp_login(FTP\Connection $ftp, string $username, string $password): bool {} |
21 |
| -function ftp_pwd(FTP\Connection $ftp): string|false {} |
22 |
| -function ftp_cdup(FTP\Connection $ftp): bool {} |
23 |
| -function ftp_chdir(FTP\Connection $ftp, string $directory): bool {} |
24 |
| -function ftp_exec(FTP\Connection $ftp, string $command): bool {} |
25 |
| -function ftp_raw(FTP\Connection $ftp, string $command): array {} |
26 |
| -function ftp_mkdir(FTP\Connection $ftp, string $directory): string|false {} |
27 |
| -function ftp_rmdir(FTP\Connection $ftp, string $directory): bool {} |
28 |
| -function ftp_chmod(FTP\Connection $ftp, int $permissions, string $filename): int|false {} |
29 |
| - |
30 |
| -/** @param string $response */ |
31 |
| -function ftp_alloc(FTP\Connection $ftp, int $size, &$response = null): bool {} |
32 |
| -function ftp_nlist(FTP\Connection $ftp, string $directory): array|false {} |
33 |
| -function ftp_rawlist(FTP\Connection $ftp, string $directory, bool $recursive = false): array|false {} |
34 |
| -function ftp_mlsd(FTP\Connection $ftp, string $directory): array|false {} |
35 |
| -function ftp_systype(FTP\Connection $ftp): string|false {} |
36 |
| - |
37 |
| -/** @param resource $stream */ |
38 |
| -function ftp_fget(FTP\Connection $ftp, $stream, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): bool {} |
39 |
| - |
40 |
| -/** @param resource $stream */ |
41 |
| -function ftp_nb_fget(FTP\Connection $ftp, $stream, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): int {} |
42 |
| -function ftp_pasv(FTP\Connection $ftp, bool $enable): bool {} |
43 |
| -function ftp_get(FTP\Connection $ftp, string $local_filename, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): bool {} |
44 |
| -function ftp_nb_get(FTP\Connection $ftp, string $local_filename, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): int {} |
45 |
| -function ftp_nb_continue(FTP\Connection $ftp): int {} |
46 |
| - |
47 |
| -/** @param resource $stream */ |
48 |
| -function ftp_fput(FTP\Connection $ftp, string $remote_filename, $stream, int $mode = FTP_BINARY, int $offset = 0): bool {} |
49 |
| - |
50 |
| -/** @param resource $stream */ |
51 |
| -function ftp_nb_fput(FTP\Connection $ftp, string $remote_filename, $stream, int $mode = FTP_BINARY, int $offset = 0): int {} |
52 |
| -function ftp_put(FTP\Connection $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY, int $offset = 0): bool {} |
53 |
| -function ftp_append(FTP\Connection $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY): bool {} |
54 |
| -function ftp_nb_put(FTP\Connection $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY, int $offset = 0): int|false {} |
55 |
| -function ftp_size(FTP\Connection $ftp, string $filename): int {} |
56 |
| -function ftp_mdtm(FTP\Connection $ftp, string $filename): int {} |
57 |
| -function ftp_rename(FTP\Connection $ftp, string $from, string $to): bool {} |
58 |
| -function ftp_delete(FTP\Connection $ftp, string $filename): bool {} |
59 |
| -function ftp_site(FTP\Connection $ftp, string $command): bool {} |
60 |
| -function ftp_close(FTP\Connection $ftp): bool {} |
61 |
| - |
62 |
| -/** @alias ftp_close */ |
63 |
| -function ftp_quit(FTP\Connection $ftp): bool {} |
64 |
| - |
65 |
| -/** @param int|bool $value */ |
66 |
| -function ftp_set_option(FTP\Connection $ftp, int $option, $value): bool {} |
67 |
| -function ftp_get_option(FTP\Connection $ftp, int $option): int|bool {} |
| 16 | + function ftp_connect(string $hostname, int $port = 21, int $timeout = 90): FTP\Connection|false {} |
| 17 | + |
| 18 | + #ifdef HAVE_FTP_SSL |
| 19 | + function ftp_ssl_connect(string $hostname, int $port = 21, int $timeout = 90): FTP\Connection|false {} |
| 20 | + #endif |
| 21 | + |
| 22 | + function ftp_login(FTP\Connection $ftp, string $username, string $password): bool {} |
| 23 | + function ftp_pwd(FTP\Connection $ftp): string|false {} |
| 24 | + function ftp_cdup(FTP\Connection $ftp): bool {} |
| 25 | + function ftp_chdir(FTP\Connection $ftp, string $directory): bool {} |
| 26 | + function ftp_exec(FTP\Connection $ftp, string $command): bool {} |
| 27 | + function ftp_raw(FTP\Connection $ftp, string $command): array {} |
| 28 | + function ftp_mkdir(FTP\Connection $ftp, string $directory): string|false {} |
| 29 | + function ftp_rmdir(FTP\Connection $ftp, string $directory): bool {} |
| 30 | + function ftp_chmod(FTP\Connection $ftp, int $permissions, string $filename): int|false {} |
| 31 | + |
| 32 | + /** @param string $response */ |
| 33 | + function ftp_alloc(FTP\Connection $ftp, int $size, &$response = null): bool {} |
| 34 | + function ftp_nlist(FTP\Connection $ftp, string $directory): array|false {} |
| 35 | + function ftp_rawlist(FTP\Connection $ftp, string $directory, bool $recursive = false): array|false {} |
| 36 | + function ftp_mlsd(FTP\Connection $ftp, string $directory): array|false {} |
| 37 | + function ftp_systype(FTP\Connection $ftp): string|false {} |
| 38 | + |
| 39 | + /** @param resource $stream */ |
| 40 | + function ftp_fget(FTP\Connection $ftp, $stream, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): bool {} |
| 41 | + |
| 42 | + /** @param resource $stream */ |
| 43 | + function ftp_nb_fget(FTP\Connection $ftp, $stream, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): int {} |
| 44 | + function ftp_pasv(FTP\Connection $ftp, bool $enable): bool {} |
| 45 | + function ftp_get(FTP\Connection $ftp, string $local_filename, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): bool {} |
| 46 | + function ftp_nb_get(FTP\Connection $ftp, string $local_filename, string $remote_filename, int $mode = FTP_BINARY, int $offset = 0): int {} |
| 47 | + function ftp_nb_continue(FTP\Connection $ftp): int {} |
| 48 | + |
| 49 | + /** @param resource $stream */ |
| 50 | + function ftp_fput(FTP\Connection $ftp, string $remote_filename, $stream, int $mode = FTP_BINARY, int $offset = 0): bool {} |
| 51 | + |
| 52 | + /** @param resource $stream */ |
| 53 | + function ftp_nb_fput(FTP\Connection $ftp, string $remote_filename, $stream, int $mode = FTP_BINARY, int $offset = 0): int {} |
| 54 | + function ftp_put(FTP\Connection $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY, int $offset = 0): bool {} |
| 55 | + function ftp_append(FTP\Connection $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY): bool {} |
| 56 | + function ftp_nb_put(FTP\Connection $ftp, string $remote_filename, string $local_filename, int $mode = FTP_BINARY, int $offset = 0): int|false {} |
| 57 | + function ftp_size(FTP\Connection $ftp, string $filename): int {} |
| 58 | + function ftp_mdtm(FTP\Connection $ftp, string $filename): int {} |
| 59 | + function ftp_rename(FTP\Connection $ftp, string $from, string $to): bool {} |
| 60 | + function ftp_delete(FTP\Connection $ftp, string $filename): bool {} |
| 61 | + function ftp_site(FTP\Connection $ftp, string $command): bool {} |
| 62 | + function ftp_close(FTP\Connection $ftp): bool {} |
| 63 | + |
| 64 | + /** @alias ftp_close */ |
| 65 | + function ftp_quit(FTP\Connection $ftp): bool {} |
| 66 | + |
| 67 | + /** @param int|bool $value */ |
| 68 | + function ftp_set_option(FTP\Connection $ftp, int $option, $value): bool {} |
| 69 | + function ftp_get_option(FTP\Connection $ftp, int $option): int|bool {} |
68 | 70 |
|
69 | 71 | }
|
0 commit comments