|
Zookeeper::getAclGets the acl associated with a node synchronously Description
public
array Zookeeper::getAcl(string
$path )Parameters
Return ValuesReturn acl array on success and false on failure. Errors/ExceptionsThis method emits PHP error/warning when parameters count or types are wrong or fail to get ACL of a node. Caution
Since version 0.3.0, this method emits ZookeeperException and it's derivatives. ExamplesExample #1 Zookeeper::getAcl example Get ACL of a node.
The above example will output: array(1) { [0]=> array(3) { ["perms"]=> int(31) ["scheme"]=> string(5) "world" ["id"]=> string(6) "anyone" } } See Also
|