From 6ad93dff69d7c2beb2196e73f641e6484fccbeb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 20 Jan 2015 07:40:39 +0100 Subject: new folders --- inc/poche/User.class.php | 57 ------------------------------------------------ 1 file changed, 57 deletions(-) delete mode 100644 inc/poche/User.class.php (limited to 'inc/poche/User.class.php') diff --git a/inc/poche/User.class.php b/inc/poche/User.class.php deleted file mode 100644 index eaadd3e5..00000000 --- a/inc/poche/User.class.php +++ /dev/null @@ -1,57 +0,0 @@ - - * @copyright 2013 - * @license http://opensource.org/licenses/MIT see COPYING file - */ - -class User -{ - public $id; - public $username; - public $name; - public $password; - public $email; - public $config; - - function __construct($user = array()) - { - if ($user != array()) { - $this->id = $user['id']; - $this->username = $user['username']; - $this->name = $user['name']; - $this->password = $user['password']; - $this->email = $user['email']; - $this->config = $user['config']; - } - } - - public function getId() - { - return $this->id; - } - - public function getUsername() - { - return $this->username; - } - - public function setConfig($config) - { - $this->config = $config; - } - - /** - * Returns configuration entry for a user - * - * @param $name - * @return bool - */ - public function getConfigValue($name) - { - return (isset($this->config[$name])) ? $this->config[$name] : FALSE; - } -} \ No newline at end of file -- cgit v1.2.3