]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - inc/poche/User.class.php
3 * poche, a read it later open source system
6 * @author Nicolas LÅ“uillet <support@inthepoche.com>
8 * @license http://www.wtfpl.net/ see COPYING file
20 function __construct($user = array())
22 if ($user != array()) {
23 $this->id
= $user['id'];
24 $this->username
= $user['username'];
25 $this->name
= $user['name'];
26 $this->password
= $user['password'];
27 $this->email
= $user['email'];
28 $this->config
= $user['config'];
32 public function getId()
37 public function getUsername()
39 return $this->username
;
42 public function setConfig($config)
44 $this->config
= $config;
47 public function getConfigValue($name) {
48 return (isset($this->config
[$name])) ? $this->config
[$name] : FALSE;