]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/Wallabag/User.php
3 * wallabag, self hostable application allowing you to not miss any content anymore
6 * @author Nicolas LÅ“uillet <nicolas@loeuillet.org>
8 * @license http://opensource.org/licenses/MIT see COPYING file
11 namespace Wallabag\Wallabag
;
22 function __construct($user = array())
24 if ($user != array()) {
25 $this->id
= $user['id'];
26 $this->username
= $user['username'];
27 $this->name
= $user['name'];
28 $this->password
= $user['password'];
29 $this->email
= $user['email'];
30 $this->config
= $user['config'];
34 public function getId()
39 public function getUsername()
41 return $this->username
;
44 public function setConfig($config)
46 $this->config
= $config;
50 * Returns configuration entry for a user
55 public function getConfigValue($name)
57 return (isset($this->config
[$name])) ? $this->config
[$name] : FALSE;