|
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. ExamplesExample #1 Zookeeper::setAcl example Set ACL for a node.
<?php The above example will output: array(1) { [0]=> array(3) { ["perms"]=> int(31) ["scheme"]=> string(5) "world" ["id"]=> string(6) "anyone" } } See Also
|