2
2
3
3
/** @generate-class-entries */
4
4
5
- /** @strict-properties */
6
- final class LDAP
7
- {
5
+ namespace LDAP {
6
+ /** @strict-properties */
7
+ final class LDAP
8
+ {
9
+ }
10
+
11
+ /** @strict-properties */
12
+ final class Result
13
+ {
14
+ }
15
+
16
+ /** @strict-properties */
17
+ final class ResultEntry
18
+ {
19
+ }
8
20
}
9
21
10
- /** @strict-properties */
11
- final class LDAPResult
12
- {
13
- }
14
-
15
- /** @strict-properties */
16
- final class LDAPResultEntry
17
- {
18
- }
22
+ namespace {
19
23
20
24
#ifdef HAVE_ORALDAP
21
- function ldap_connect (?string $ uri = null , int $ port = 389 , string $ wallet = UNKNOWN , string $ password = UNKNOWN , int $ auth_mode = GSLC_SSL_NO_AUTH ): LDAP |false {}
25
+ function ldap_connect (?string $ uri = null , int $ port = 389 , string $ wallet = UNKNOWN , string $ password = UNKNOWN , int $ auth_mode = GSLC_SSL_NO_AUTH ): LDAP \ LDAP |false {}
22
26
#else
23
- function ldap_connect (?string $ uri = null , int $ port = 389 ): LDAP |false {}
27
+ function ldap_connect (?string $ uri = null , int $ port = 389 ): LDAP \ LDAP |false {}
24
28
#endif
25
29
26
- function ldap_unbind (LDAP $ ldap ): bool {}
30
+ function ldap_unbind (LDAP \ LDAP $ ldap ): bool {}
27
31
28
32
/** @alias ldap_unbind */
29
- function ldap_close (LDAP $ ldap ): bool {}
33
+ function ldap_close (LDAP \ LDAP $ ldap ): bool {}
30
34
31
- function ldap_bind (LDAP $ ldap , ?string $ dn = null , ?string $ password = null ): bool {}
35
+ function ldap_bind (LDAP \ LDAP $ ldap , ?string $ dn = null , ?string $ password = null ): bool {}
32
36
33
- function ldap_bind_ext (LDAP $ ldap , ?string $ dn = null , ?string $ password = null , ?array $ controls = null ): LDAPResult |false {}
37
+ function ldap_bind_ext (LDAP \ LDAP $ ldap , ?string $ dn = null , ?string $ password = null , ?array $ controls = null ): LDAP \ Result |false {}
34
38
35
39
#ifdef HAVE_LDAP_SASL
36
- function ldap_sasl_bind (LDAP $ ldap , ?string $ dn = null , ?string $ password = null , ?string $ mech = null , ?string $ realm = null , ?string $ authc_id = null , ?string $ authz_id = null , ?string $ props = null ): bool {}
40
+ function ldap_sasl_bind (LDAP \ LDAP $ ldap , ?string $ dn = null , ?string $ password = null , ?string $ mech = null , ?string $ realm = null , ?string $ authc_id = null , ?string $ authz_id = null , ?string $ props = null ): bool {}
37
41
#endif
38
42
39
- /** @param LDAP|array $ldap */
40
- function ldap_read ($ ldap , array |string $ base , array |string $ filter , array $ attributes = [], int $ attributes_only = 0 , int $ sizelimit = -1 , int $ timelimit = -1 , int $ deref = LDAP_DEREF_NEVER , ?array $ controls = null ): LDAPResult |array |false {}
43
+ /** @param LDAP\LDAP |array $ldap */
44
+ function ldap_read ($ ldap , array |string $ base , array |string $ filter , array $ attributes = [], int $ attributes_only = 0 , int $ sizelimit = -1 , int $ timelimit = -1 , int $ deref = LDAP_DEREF_NEVER , ?array $ controls = null ): LDAP \ Result |array |false {}
41
45
42
- /** @param LDAP|array $ldap */
43
- function ldap_list ($ ldap , array |string $ base , array |string $ filter , array $ attributes = [], int $ attributes_only = 0 , int $ sizelimit = -1 , int $ timelimit = -1 , int $ deref = LDAP_DEREF_NEVER , ?array $ controls = null ): LDAPResult |array |false {}
46
+ /** @param LDAP\LDAP |array $ldap */
47
+ function ldap_list ($ ldap , array |string $ base , array |string $ filter , array $ attributes = [], int $ attributes_only = 0 , int $ sizelimit = -1 , int $ timelimit = -1 , int $ deref = LDAP_DEREF_NEVER , ?array $ controls = null ): LDAP \ Result |array |false {}
44
48
45
- /** @param LDAP|array $ldap */
46
- function ldap_search ($ ldap , array |string $ base , array |string $ filter , array $ attributes = [], int $ attributes_only = 0 , int $ sizelimit = -1 , int $ timelimit = -1 , int $ deref = LDAP_DEREF_NEVER , ?array $ controls = null ): LDAPResult |array |false {}
49
+ /** @param LDAP\LDAP |array $ldap */
50
+ function ldap_search ($ ldap , array |string $ base , array |string $ filter , array $ attributes = [], int $ attributes_only = 0 , int $ sizelimit = -1 , int $ timelimit = -1 , int $ deref = LDAP_DEREF_NEVER , ?array $ controls = null ): LDAP \ Result |array |false {}
47
51
48
- function ldap_free_result (LDAPResult $ result ): bool {}
52
+ function ldap_free_result (LDAP \ Result $ result ): bool {}
49
53
50
- function ldap_count_entries (LDAP $ ldap , LDAPResult $ result ): int {}
54
+ function ldap_count_entries (LDAP \ LDAP $ ldap , LDAP \ Result $ result ): int {}
51
55
52
- function ldap_first_entry (LDAP $ ldap , LDAPResult $ result ): LDAPResultEntry |false {}
56
+ function ldap_first_entry (LDAP \ LDAP $ ldap , LDAP \ Result $ result ): LDAP \ ResultEntry |false {}
53
57
54
- function ldap_next_entry (LDAP $ ldap , LDAPResultEntry $ entry ): LDAPResultEntry |false {}
58
+ function ldap_next_entry (LDAP \ LDAP $ ldap , LDAP \ ResultEntry $ entry ): LDAP \ ResultEntry |false {}
55
59
56
- function ldap_get_entries (LDAP $ ldap , LDAPResult $ result ): array |false {}
60
+ function ldap_get_entries (LDAP \ LDAP $ ldap , LDAP \ Result $ result ): array |false {}
57
61
58
- function ldap_first_attribute (LDAP $ ldap , LDAPResultEntry $ entry ): string |false {}
62
+ function ldap_first_attribute (LDAP \ LDAP $ ldap , LDAP \ ResultEntry $ entry ): string |false {}
59
63
60
- function ldap_next_attribute (LDAP $ ldap , LDAPResultEntry $ entry ): string |false {}
64
+ function ldap_next_attribute (LDAP \ LDAP $ ldap , LDAP \ ResultEntry $ entry ): string |false {}
61
65
62
- function ldap_get_attributes (LDAP $ ldap , LDAPResultEntry $ entry ): array {}
66
+ function ldap_get_attributes (LDAP \ LDAP $ ldap , LDAP \ ResultEntry $ entry ): array {}
63
67
64
- function ldap_get_values_len (LDAP $ ldap , LDAPResultEntry $ entry , string $ attribute ): array |false {}
68
+ function ldap_get_values_len (LDAP \ LDAP $ ldap , LDAP \ ResultEntry $ entry , string $ attribute ): array |false {}
65
69
66
70
/** @alias ldap_get_values_len */
67
- function ldap_get_values (LDAP $ ldap , LDAPResultEntry $ entry , string $ attribute ): array |false {}
71
+ function ldap_get_values (LDAP \ LDAP $ ldap , LDAP \ ResultEntry $ entry , string $ attribute ): array |false {}
68
72
69
- function ldap_get_dn (LDAP $ ldap , LDAPResultEntry $ entry ): string |false {}
73
+ function ldap_get_dn (LDAP \ LDAP $ ldap , LDAP \ ResultEntry $ entry ): string |false {}
70
74
71
75
function ldap_explode_dn (string $ dn , int $ with_attrib ): array |false {}
72
76
73
77
function ldap_dn2ufn (string $ dn ): string |false {}
74
78
75
- function ldap_add (LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): bool {}
79
+ function ldap_add (LDAP \ LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): bool {}
76
80
77
- function ldap_add_ext (LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): LDAPResult |false {}
81
+ function ldap_add_ext (LDAP \ LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): LDAP \ Result |false {}
78
82
79
- function ldap_delete (LDAP $ ldap , string $ dn , ?array $ controls = null ): bool {}
83
+ function ldap_delete (LDAP \ LDAP $ ldap , string $ dn , ?array $ controls = null ): bool {}
80
84
81
- function ldap_delete_ext (LDAP $ ldap , string $ dn , ?array $ controls = null ): LDAPResult |false {}
85
+ function ldap_delete_ext (LDAP \ LDAP $ ldap , string $ dn , ?array $ controls = null ): LDAP \ Result |false {}
82
86
83
- function ldap_modify_batch (LDAP $ ldap , string $ dn , array $ modifications_info , ?array $ controls = null ): bool {}
87
+ function ldap_modify_batch (LDAP \ LDAP $ ldap , string $ dn , array $ modifications_info , ?array $ controls = null ): bool {}
84
88
85
- function ldap_mod_add (LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): bool {}
89
+ function ldap_mod_add (LDAP \ LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): bool {}
86
90
87
- function ldap_mod_add_ext (LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): LDAPResult |false {}
91
+ function ldap_mod_add_ext (LDAP \ LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): LDAP \ Result |false {}
88
92
89
- function ldap_mod_replace (LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): bool {}
93
+ function ldap_mod_replace (LDAP \ LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): bool {}
90
94
91
95
/** @alias ldap_mod_replace */
92
- function ldap_modify (LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): bool {}
96
+ function ldap_modify (LDAP \ LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): bool {}
93
97
94
- function ldap_mod_replace_ext (LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): LDAPResult |false {}
98
+ function ldap_mod_replace_ext (LDAP \ LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): LDAP \ Result |false {}
95
99
96
- function ldap_mod_del (LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): bool {}
100
+ function ldap_mod_del (LDAP \ LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): bool {}
97
101
98
- function ldap_mod_del_ext (LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): LDAPResult |false {}
102
+ function ldap_mod_del_ext (LDAP \ LDAP $ ldap , string $ dn , array $ entry , ?array $ controls = null ): LDAP \ Result |false {}
99
103
100
- function ldap_errno (LDAP $ ldap ): int {}
104
+ function ldap_errno (LDAP \ LDAP $ ldap ): int {}
101
105
102
- function ldap_error (LDAP $ ldap ): string {}
106
+ function ldap_error (LDAP \ LDAP $ ldap ): string {}
103
107
104
108
function ldap_err2str (int $ errno ): string {}
105
109
106
- function ldap_compare (LDAP $ ldap , string $ dn , string $ attribute , string $ value , ?array $ controls = null ): bool |int {}
110
+ function ldap_compare (LDAP \ LDAP $ ldap , string $ dn , string $ attribute , string $ value , ?array $ controls = null ): bool |int {}
107
111
108
112
#if (LDAP_API_VERSION > 2000) || defined(HAVE_ORALDAP)
109
- function ldap_rename (LDAP $ ldap , string $ dn , string $ new_rdn , string $ new_parent , bool $ delete_old_rdn , ?array $ controls = null ): bool {}
113
+ function ldap_rename (LDAP \ LDAP $ ldap , string $ dn , string $ new_rdn , string $ new_parent , bool $ delete_old_rdn , ?array $ controls = null ): bool {}
110
114
111
- function ldap_rename_ext (LDAP $ ldap , string $ dn , string $ new_rdn , string $ new_parent , bool $ delete_old_rdn , ?array $ controls = null ): LDAPResult |false {}
115
+ function ldap_rename_ext (LDAP \ LDAP $ ldap , string $ dn , string $ new_rdn , string $ new_parent , bool $ delete_old_rdn , ?array $ controls = null ): LDAP \ Result |false {}
112
116
113
117
/**
114
118
* @param array|string|int $value
115
119
*/
116
- function ldap_get_option (LDAP $ ldap , int $ option , &$ value = null ): bool {}
120
+ function ldap_get_option (LDAP \ LDAP $ ldap , int $ option , &$ value = null ): bool {}
117
121
118
122
/** @param array|string|int|bool $value */
119
- function ldap_set_option (?LDAP $ ldap , int $ option , $ value ): bool {}
123
+ function ldap_set_option (?LDAP \ LDAP $ ldap , int $ option , $ value ): bool {}
120
124
121
- function ldap_count_references (LDAP $ ldap , LDAPResult $ result ): int {}
125
+ function ldap_count_references (LDAP \ LDAP $ ldap , LDAP \ Result $ result ): int {}
122
126
123
- function ldap_first_reference (LDAP $ ldap , LDAPResult $ result ): LDAPResultEntry |false {}
127
+ function ldap_first_reference (LDAP \ LDAP $ ldap , LDAP \ Result $ result ): LDAP \ ResultEntry |false {}
124
128
125
- function ldap_next_reference (LDAP $ ldap , LDAPResultEntry $ entry ): LDAPResultEntry |false {}
129
+ function ldap_next_reference (LDAP \ LDAP $ ldap , LDAP \ ResultEntry $ entry ): LDAP \ ResultEntry |false {}
126
130
127
131
#ifdef HAVE_LDAP_PARSE_REFERENCE
128
132
/** @param array $referrals */
129
- function ldap_parse_reference (LDAP $ ldap , LDAPResultEntry $ entry , &$ referrals ): bool {}
133
+ function ldap_parse_reference (LDAP \ LDAP $ ldap , LDAP \ ResultEntry $ entry , &$ referrals ): bool {}
130
134
#endif
131
135
132
136
#ifdef HAVE_LDAP_PARSE_RESULT
@@ -137,16 +141,16 @@ function ldap_parse_reference(LDAP $ldap, LDAPResultEntry $entry, &$referrals):
137
141
* @param array $referrals
138
142
* @param array $controls
139
143
*/
140
- function ldap_parse_result (LDAP $ ldap , LDAPResult $ result , &$ error_code , &$ matched_dn = null , &$ error_message = null , &$ referrals = null , &$ controls = null ): bool {}
144
+ function ldap_parse_result (LDAP \ LDAP $ ldap , LDAP \ Result $ result , &$ error_code , &$ matched_dn = null , &$ error_message = null , &$ referrals = null , &$ controls = null ): bool {}
141
145
#endif
142
146
#endif
143
147
144
148
#if defined(LDAP_API_FEATURE_X_OPENLDAP) && defined(HAVE_3ARG_SETREBINDPROC)
145
- function ldap_set_rebind_proc (LDAP $ ldap , ?callable $ callback ): bool {}
149
+ function ldap_set_rebind_proc (LDAP \ LDAP $ ldap , ?callable $ callback ): bool {}
146
150
#endif
147
151
148
152
#ifdef HAVE_LDAP_START_TLS_S
149
- function ldap_start_tls (LDAP $ ldap ): bool {}
153
+ function ldap_start_tls (LDAP \ LDAP $ ldap ): bool {}
150
154
#endif
151
155
152
156
function ldap_escape (string $ value , string $ ignore = "" , int $ flags = 0 ): string {}
@@ -163,29 +167,31 @@ function ldap_8859_to_t61(string $value): string|false {}
163
167
* @param string $response_data
164
168
* @param string $response_oid
165
169
*/
166
- function ldap_exop (LDAP $ ldap , string $ request_oid , ?string $ request_data = null , ?array $ controls = NULL , &$ response_data = UNKNOWN , &$ response_oid = null ): LDAPResult |bool {}
170
+ function ldap_exop (LDAP \ LDAP $ ldap , string $ request_oid , ?string $ request_data = null , ?array $ controls = NULL , &$ response_data = UNKNOWN , &$ response_oid = null ): LDAP \ Result |bool {}
167
171
#endif
168
172
169
173
#ifdef HAVE_LDAP_PASSWD
170
174
/**
171
175
* @param array $controls
172
176
*/
173
- function ldap_exop_passwd (LDAP $ ldap , string $ user = "" , string $ old_password = "" , string $ new_password = "" , &$ controls = null ): string |bool {}
177
+ function ldap_exop_passwd (LDAP \ LDAP $ ldap , string $ user = "" , string $ old_password = "" , string $ new_password = "" , &$ controls = null ): string |bool {}
174
178
#endif
175
179
176
180
177
181
#ifdef HAVE_LDAP_WHOAMI_S
178
- function ldap_exop_whoami (LDAP $ ldap ): string |false {}
182
+ function ldap_exop_whoami (LDAP \ LDAP $ ldap ): string |false {}
179
183
#endif
180
184
181
185
#ifdef HAVE_LDAP_REFRESH_S
182
- function ldap_exop_refresh (LDAP $ ldap , string $ dn , int $ ttl ): int |false {}
186
+ function ldap_exop_refresh (LDAP \ LDAP $ ldap , string $ dn , int $ ttl ): int |false {}
183
187
#endif
184
188
185
189
#ifdef HAVE_LDAP_PARSE_EXTENDED_RESULT
186
190
/**
187
191
* @param string $response_data
188
192
* @param string $response_oid
189
193
*/
190
- function ldap_parse_exop (LDAP $ ldap , LDAPResult $ result , &$ response_data = null , &$ response_oid = null ): bool {}
194
+ function ldap_parse_exop (LDAP \ LDAP $ ldap , LDAP \ Result $ result , &$ response_data = null , &$ response_oid = null ): bool {}
191
195
#endif
196
+
197
+ }
0 commit comments