|
Zookeeper::getAclGets the acl associated with a node synchronously. Beschreibung
public
array Zookeeper::getAcl
( string
$path
)Parameter-Liste
RückgabewerteReturn acl array on success and false on failure. Fehler/ExceptionsThis method emits PHP error/warning when parameters count or types are wrong or fail to get ACL of a node. BeispieleBeispiel #1 Zookeeper::getAcl example Get ACL of a node.
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
array(1) {
[0]=>
array(3) {
["perms"]=>
int(31)
["scheme"]=>
string(5) "world"
["id"]=>
string(6) "anyone"
}
}
Siehe auch
|