Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
ffd05eb4
Unverified
Commit
ffd05eb4
authored
Apr 18, 2022
by
Helmo
Browse files
Extend example to show Lookup by pattern
parent
5bbec2b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
remoting_client/examples/mail_user_get.php
View file @
ffd05eb4
...
...
@@ -17,9 +17,13 @@ try {
//* Set the function parameters.
$mailuser_id
=
1
;
$app
=
$client
->
mail_user_get
(
$session_id
,
$mailuser_id
);
// Lookup by primary key, gets back a single record.
$mail_user
=
$client
->
mail_user_get
(
$session_id
,
$mailuser_id
);
print_r
(
$mail_user
);
print_r
(
$app
);
// Lookup by pattern gives an array of records.
$mail_users_array
=
$client
->
mail_user_get
(
$session_id
,
array
(
'email'
=>
'%@example.com'
));
print_r
(
$mail_user_array
);
if
(
$client
->
logout
(
$session_id
))
{
echo
'Logged out.<br />'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment