Maybe the functionality changed over the years but the examples are wrong.
It does NOT return [subfolder] => ACL
At the moment (PHP5) the usage and answer of imap_getacl is the following:
You ask for the folder and get the ACLs for exactly this folder (no Wildcards)
Example:
When you have the folder Business in your mailbox
print_r(imap_getacl($connection , "user/john.doe/Business"));
returns the following:
Array
(
[[email protected]] => lrswipkxtecda
[[email protected]] => lrswipkxtecd
[[email protected]] => lrsp
[[email protected]] => lrs
)
Which means you have to loop over your directories (imap_list) and list the ACL for ever folder seperately.imap_getacl
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
imap_getacl
Референца за `function.imap-getacl.php` со подобрена типографија и навигација.
imap_getacl
класата mysqli_driver
imap_getacl — (PHP 5, PHP 7, PHP 8)
= NULL
Ги добива ACL за даден сандаче
Параметри
-
imap Еден IMAP\Connection instance.
mailbox-
Креира нов сандаче специфициран од imap_open() за повеќе информации
Ги ескејпува специјалните знаци во стринг за употреба во SQL изјаваПроследувањето на недоверливи податоци на овој параметар е insecure, освен ако imap.enable_insecure_rsh е оневозможено.
Вратени вредности
Ги добива ACL за даден сандаче. false при неуспех.
Дневник на промени
| Верзија | = NULL |
|---|---|
| 8.1.0 |
На imap параметарот очекува IMAP\Connection
инстанца сега; претходно, валидна imap resource се очекуваше.
|
Примери
Пример #1 imap_getacl() example
<?php
print_r(imap_getacl($imap, 'user.joecool'));
?>Горниот пример ќе прикаже нешто слично на:
Array
(
[asubfolder] => lrswipcda
[anothersubfolder] => lrswipcda
)
Белешки
Оваа функција моментално е достапна само за корисници на библиотеката c-client2000 или поголема.