array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'zookeeper.getclientid.php', 1 => 'Zookeeper::getClientId', 2 => 'Return the client session id, only valid if the connections is currently connected (ie. last watcher state is ZOO_CONNECTED_STATE)', ), 'up' => array ( 0 => 'class.zookeeper.php', 1 => 'Zookeeper', ), 'prev' => array ( 0 => 'zookeeper.getchildren.php', 1 => 'Zookeeper::getChildren', ), 'next' => array ( 0 => 'zookeeper.getconfig.php', 1 => 'Zookeeper::getConfig', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/zookeeper/zookeeper/getclientid.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL zookeeper >= 0.1.0)
Zookeeper::getClientId — Return the client session id, only valid if the connections is currently connected (ie. last watcher state is ZOO_CONNECTED_STATE)
この関数にはパラメータはありません。
Returns the client session id on success, and false on failure.
This method emits PHP error/warning when it could not get client session id.
Since version 0.3.0, this method emits ZookeeperException and it's derivatives.