« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 3 of about 3 for aclArray (0.002 sec.)
Zookeeper::getAcl — Gets the acl associated with a node synchronously | PHP 8.3 11570
Zookeeper::getAcl (PECL zookeeper >= 0.1.0) Zookeeper::getAcl — Gets the acl associated with a node synchronously 説明 public function Zookeeper::getAcl ( string $path ): array パラメータ path The name of the node. Expressed as a file name ... with slashes separating ancestors of the node. 戻り値 Return acl array on success and false on failure. エラー / 例外 This method emits PHP error/warning when parameters count or types are wro ... derivatives. 例 例1 Zookeeper::getAcl() example Get ACL of a node. <?php $zookeeper = new Zookeeper ( 'localhost:2181' ); $aclArray = array( array( 'perms' => Zookeeper :: PERM_ALL , 'scheme' => 'world' , 'id' => 'anyone' , ) ); $path = '/path/to/newnode ... ' ; $zookeeper -> setAcl ( $path , $aclArray ); $r = $zookeeper -> getAcl ( $path ); if ( $r ) var_dump ( $r ); else echo 'ERR' ; ?> 上の例の出力は以下となります。 arr ...
https://man.mtool.work/php/8.3/zookeeper.getacl.html
Zookeeper::setAcl — Sets the acl associated with a node synchronously | PHP 8.3 9301
Zookeeper::setAcl (PECL zookeeper >= 0.1.0) Zookeeper::setAcl — Sets the acl associated with a node synchronously 説明 public function Zookeeper::setAcl ( string $path , int $version , array $acl ): bool パラメータ path The name of the node ... erivatives. 例 例1 Zookeeper::setAcl() example Set ACL for a node. <?php $zookeeper = new Zookeeper ( 'localhost:2181' ); $aclArray = array( array( 'perms' => Zookeeper :: PERM_ALL , 'scheme' => 'world' , 'id' => 'anyone' , ) ); $path = '/path/to/newnode ... ' ; $zookeeper -> setAcl ( $path , $aclArray ); $r = $zookeeper -> getAcl ( $path ); if ( $r ) var_dump ( $r ); else echo 'ERR' ; ?> 上の例の出力は以下となります。 arr ...
https://man.mtool.work/php/8.3/zookeeper.setacl.html
Zookeeper::create — Create a node synchronously | PHP 8.3 7013
Zookeeper::create (PECL zookeeper >= 0.1.0) Zookeeper::create — Create a node synchronously 説明 public function Zookeeper::create ( string $path , string $value , array $acls , int $flags = null ): string This method will create a node in ... derivatives. 例 例1 Zookeeper::create() example Create a new node. <?php $zookeeper = new Zookeeper ( 'localhost:2181' ); $aclArray = array( array( 'perms' => Zookeeper :: PERM_ALL , 'scheme' => 'world' , 'id' => 'anyone' , ) ); $path = '/path/to/newnode ... ' ; $realPath = $zookeeper -> create ( $path , null , $aclArray ); if ( $realPath ) echo $realPath ; else echo 'ERR' ; ?> 上の例の出力は以下となります。 /path/to/newnode 参考 Zookeeper:: ...
https://man.mtool.work/php/8.3/zookeeper.create.html
PREV 1 NEXT