public getCurrentUserAndHost ( ) : array | ||
Результат | 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;
}