User: add access to raw info array
This commit is contained in:
parent
3d9decdafd
commit
a343cfa9c7
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,8 @@ class User {
|
||||||
return $this -> username;
|
return $this -> username;
|
||||||
case 'backend':
|
case 'backend':
|
||||||
return $this -> backend;
|
return $this -> backend;
|
||||||
|
case 'info':
|
||||||
|
return $this -> info;
|
||||||
default:
|
default:
|
||||||
if (array_key_exists($key, $this -> info))
|
if (array_key_exists($key, $this -> info))
|
||||||
return $this -> info[$key];
|
return $this -> info[$key];
|
||||||
|
@ -65,6 +67,7 @@ class User {
|
||||||
switch ($key) {
|
switch ($key) {
|
||||||
case 'username':
|
case 'username':
|
||||||
case 'backend':
|
case 'backend':
|
||||||
|
case 'info':
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return array_key_exists($key, $this -> info);
|
return array_key_exists($key, $this -> info);
|
||||||
|
|
Loading…
Reference in a new issue