As of Version 8.0.17 the Session::listClients() method has not been implemented yet.(No version information available, might only be in Git)
Session::listClients — Ruft eine Liste der Clients ab
Ruft eine Liste der Clients ab, die mit dem MySQL-Server der Session verbunden sind.
Diese Funktion besitzt keine Parameter.
Gibt ein Array mit den aktuell angemeldeten Clients zurück. Die Array-Elemente sind "client_id", "user", "host", und "sql_session".
Beispiel #1 mysql_xdevapi\Session::listClients()-Beispiel
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$ids = $session->listClients();
var_dump($ids);
?>Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
array(1) {
[0]=>
array(4) {
["client_id"]=>
int(61)
["user"]=>
string(4) "root"
["host"]=>
string(9) "localhost"
["sql_session"]=>
int(72)
}
}
As of Version 8.0.17 the Session::listClients() method has not been implemented yet.