|
Zookeeper::setAclSets the acl associated with a node synchronously. Beschreibung
public
bool Zookeeper::setAcl
( string
$path
, int $version
, array $acl
)Parameter-Liste
Rückgabewerte
Gibt bei Erfolg Fehler/ExceptionsThis method emits PHP error/warning when parameters count or types are wrong or fail to set ACL for a node. BeispieleBeispiel #1 Zookeeper::setAcl example Set ACL for a node.
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
array(1) {
[0]=>
array(3) {
["perms"]=>
int(31)
["scheme"]=>
string(5) "world"
["id"]=>
string(6) "anyone"
}
}
Siehe auch
|