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