PHP » GoLang |
login |
register |
about
|
GoLang Zookeeper::getAcl
request it (641)
GoLang replacement for PHP's Zookeeper::getAcl
[edit | history]
Zookeeper::getAcl(PECL zookeeper >= 0.1.0) Zookeeper::getAcl — Gets 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.
<?phpThe above example will output:
array(1) {
[0]=>
array(3) {
["perms"]=>
int(31)
["scheme"]=>
string(5) "world"
["id"]=>
string(6) "anyone"
}
}
See Also
|
more
Most requested
more
Last requests
|