diff options
author | Nicolas Lœuillet <nicolas.loeuillet@gmail.com> | 2013-08-06 14:18:03 +0200 |
---|---|---|
committer | Nicolas Lœuillet <nicolas.loeuillet@gmail.com> | 2013-08-06 14:18:03 +0200 |
commit | 7ce7ec4c942e0a3567858ad0ec8e654000b49a3f (patch) | |
tree | 8de9df7ff2ddfe980f8247e2305ad4b1b27194fa /inc/poche/User.class.php | |
parent | 17a9cb96088d4634deca29c8be9f90d94c0f6473 (diff) | |
download | wallabag-7ce7ec4c942e0a3567858ad0ec8e654000b49a3f.tar.gz wallabag-7ce7ec4c942e0a3567858ad0ec8e654000b49a3f.tar.zst wallabag-7ce7ec4c942e0a3567858ad0ec8e654000b49a3f.zip |
prepare to multi users
Diffstat (limited to 'inc/poche/User.class.php')
-rw-r--r-- | inc/poche/User.class.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/inc/poche/User.class.php b/inc/poche/User.class.php new file mode 100644 index 00000000..ef47730f --- /dev/null +++ b/inc/poche/User.class.php | |||
@@ -0,0 +1,33 @@ | |||
1 | <?php | ||
2 | /** | ||
3 | * poche, a read it later open source system | ||
4 | * | ||
5 | * @category poche | ||
6 | * @author Nicolas Lœuillet <support@inthepoche.com> | ||
7 | * @copyright 2013 | ||
8 | * @license http://www.wtfpl.net/ see COPYING file | ||
9 | */ | ||
10 | |||
11 | class User | ||
12 | { | ||
13 | public $id; | ||
14 | public $username; | ||
15 | public $name; | ||
16 | public $password; | ||
17 | public $email; | ||
18 | public $config; | ||
19 | |||
20 | function __construct($user) | ||
21 | { | ||
22 | $this->id = $user['id']; | ||
23 | $this->username = $user['username']; | ||
24 | $this->name = $user['name']; | ||
25 | $this->password = $user['password']; | ||
26 | $this->email = $user['email']; | ||
27 | $this->config = $user['config']; | ||
28 | } | ||
29 | |||
30 | function getConfigValue($name) { | ||
31 | return (isset($this->config[$name])) ? $this->config[$name] : FALSE; | ||
32 | } | ||
33 | } \ No newline at end of file | ||