|
Zookeeper::setAclSets the acl associated with a node synchronously Description
public
bool Zookeeper::setAcl(string
$path, int $version, array $acl)Parameters
Return Values
Returns Errors/ExceptionsThis method emits PHP error/warning when parameters count or types are wrong or fail to set ACL for a node. Caution
Since version 0.3.0, this method emits ZookeeperException and it's derivatives. ExamplesExample #1 Zookeeper::setAcl example Set ACL for 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
|