PMA\libraries\DatabaseInterface::getCurrentUserAndHost PHP Méthode

getCurrentUserAndHost() public méthode

Get the current user and host
public getCurrentUserAndHost ( ) : array
Résultat array array of username and hostname
    public function getCurrentUserAndHost()
    {
        if (count($this->_current_user) == 0) {
            $user = $this->fetchValue("SELECT CURRENT_USER();");
            $this->_current_user = explode("@", $user);
        }
        return $this->_current_user;
    }